ServiceRequest

The ServiceRequest resource stores the following types of information:

  • Request
  • Request for Additional Information
  • Submitted Request

Request

Requirements

  • Reference to the who and what role updated the record.
  • Reference to the who and what role owns the request (Requestor).
  • Reference to the applicant
  • Reference to the Requestor's location and the status of that location
  • Optionally 1 or 2 columns the client wants to see on their WIP list
  • Status of the request
  • Optionally client business identifiers to reference the request
  • A reference to the PDF version of the request once it is submitted

Profile - Request

There is a strange bug that doesn't allow Location.code to have a binding to http://health.gov.on.ca/sadie/fhir/ValueSet/FlexForms-LocationConfirmationStatuses. If the binding is added then validation will return a Null pointer error.

Command 'tree' could not render: File not found for 'subject=specialauthorizationdigitalinformationexchange2/request-duplicate-3'

Example - that passes validation

{
"resourceType": "ServiceRequest",
"id": "11111111111111111111111",
"meta": {
"versionId": "52",
"lastUpdated": "2021-11-17T19:50:56.248+00:00",
"source": "#mRkuGLBMbhNcBsx5",
"profile": [
"http://health.gov.on.ca/sadie/fhir/StructureDefinition/Request"
]
},
"text": {
"status": "empty",
--- We have skipped the narrative for better readability of the resource ---
},
{
"system": "urn:sadie:patient:odsp",
"value": "2342342342342342"
},
{
"system": "urn:sadie:request:odsp",
"value": "2342342342342342"
}
],
"status": "draft",
"intent": "order",
{
"coding": [
{
"system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
"code": "NEW-REQUEST"
}
]
}
],
"code": {
"coding": [
{
"system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
"code": "ODSP"
}
]
},
{
"coding": [
{
"system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
"code": "DetailColumnOneID"
}
],
"text": "Health Status Report"
},
{
"coding": [
{
"system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
"code": "DetailColumnTwoID"
}
],
"text": "Referral ID: 2342342342342342"
}
],
"subject": {
"reference": "Patient/7d0e2f8a-a46b-498a-a808-de81020b1d9d"
},
"authoredOn": "2021-09-27T17:36:56Z",
"reference": "PractitionerRole/cdb3fa96-507b-48ac-8983-cac710085c0c"
},
{
"reference": "PractitionerRole/cdb3fa96-507b-48ac-8983-cac710085c0c/_history/2"
}
],
{
"coding": [
{
"system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
"code": "LOCATION-CONFIRMED"
}
]
}
],
{
"reference": "Location/cfda55ca-cf33-4fe1-8239-a4d28c0dbd7e"
}
],
{
"coding": [
{
"system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
"code": "HSR"
}
]
}
]
}


Request for Additional Information

Requirements

  • The client may want to record their own reference number. (See urn:sadie:childRequest:odsp in the example)

Profile - Request

Command 'tree' could not render: File not found for 'subject=specialauthorizationdigitalinformationexchange2/request-duplicate-3'

Example - that passed validation

{
"resourceType": "ServiceRequest",
"id": "222222222222222222222",
"meta": {
"versionId": "9",
"lastUpdated": "2021-11-18T13:08:57.864+00:00",
"source": "#rRSVJV86nvad3m1r",
"profile": [
"http://health.gov.on.ca/sadie/fhir/StructureDefinition/Request"
]
},
"text": {
"status": "empty",
--- We have skipped the narrative for better readability of the resource ---
},
{
"system": "urn:sadie:patient:odsp",
"value": "2342342342342342"
},
{
"system": "urn:sadie:request:odsp",
"value": "2342342342342342"
},
{
"system": "urn:sadie:childRequest:odsp",
"value": "111111111"
}
],
"basedOn": [
{
"reference": "ServiceRequest/11111111111111111111111"
}
],
"status": "draft",
"intent": "order",
{
"coding": [
{
"system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
"code": "ADDITIONAL-INFORMATION"
}
]
}
],
"code": {
"coding": [
{
"system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
"code": "ODSP"
}
]
},
"subject": {
"reference": "Patient/7d0e2f8a-a46b-498a-a808-de81020b1d9d"
},
"authoredOn": "2021-09-27T17:36:56Z",
"reference": "PractitionerRole/cdb3fa96-507b-48ac-8983-cac710085c0c"
},
{
"reference": "PractitionerRole/cdb3fa96-507b-48ac-8983-cac710085c0c/_history/2"
}
],
{
"coding": [
{
"system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
"code": "ODSP-ADDITIONAL"
}
]
}
]
}


Submitted Request

Requirements

Profile - Request

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
requestCreatedUserC0..1Extension(Reference(FlexFormsRole))
requestCreatedDateC0..1Extension(dateTime)
requestSubmittedUserC0..1Extension(Reference(FlexFormsRole))
requestSubmittedDateC1..1Extension(dateTime)
requestCompletedDateC0..1Extension(dateTime)
requestCompletedDateStringC0..1Extension(string)
requestSubmittedDateStringC0..1Extension(string)
requestClientStatusC0..1Extension(string)
submissionConsentC0..1Extension(Reference(TermsOfUseConsent))
practitionerNameC0..1Extension(string)
clientCodeOneC0..1Extension(string)
clientCodeTwoC0..1Extension(string)
applicantNameC0..1Extension(string)
searchableStringC0..1Extension(string)
modifierExtension?! C0..*Extension
id0..1string
extensionC0..*Extension
useΣ ?!0..0codeBinding
systemΣ1..1uriBinding
valueΣ1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
instantiatesCanonicalΣ0..0canonical(ActivityDefinition | PlanDefinition)
instantiatesUriΣ0..0uri
basedOnΣ C0..1Reference(ServiceRequest)
replacesΣ C0..0Reference(ServiceRequest)
requisitionΣ0..0Identifier
statusΣ ?!1..1codeBinding
intentΣ ?!1..1codeBindingFixed Value
categoryΣ1..1CodeableConceptBinding
priorityΣ0..0codeBinding
doNotPerformΣ ?!0..0boolean
codeΣ0..1CodeableConcept
orderDetailΣ C0..2CodeableConcept
subjectΣ C1..1Reference(Applicant)
encounterΣ C0..0Reference(Encounter)
authoredOnΣ1..1dateTime
requesterΣ C1..1Reference(FlexFormsRole)
performerTypeΣ0..0CodeableConcept
performerΣ C1..1Reference(FlexFormsRole)
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ0..1uriFixed Value
versionΣ0..0string
codeΣ0..1code
displayΣ0..0string
userSelectedΣ0..0boolean
textΣ0..0string
locationReferenceΣ C1..1Reference(RequestorLocation)
reasonCodeΣ0..1CodeableConcept
reasonReferenceΣ C0..0Reference(Condition | DiagnosticReport | DocumentReference | Observation)
insuranceC0..0Reference(ClaimResponse | Coverage)
supportingInfoC1..1Reference(Request PDF)
specimenΣ C0..0Reference(Specimen)
bodySiteΣ0..0CodeableConcept
note0..0Annotation
patientInstructionΣ0..0string
relevantHistoryC0..0Reference(Provenance)

Example - that passed validation To be done