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 was not found for 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 ---
    },
    "identifier":  [
        {
            "system": "urn:sadie:patient:odsp",
            "value": "2342342342342342"
        },
        {
            "system": "urn:sadie:request:odsp",
            "value": "2342342342342342"
        }
    ],
    "status": "draft",
    "intent": "order",
    "category":  [
        {
            "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"
            }
        ]
    },
    "orderDetail":  [
        {
            "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",
    "requester": {
        "reference": "PractitionerRole/cdb3fa96-507b-48ac-8983-cac710085c0c"
    },
    "performer":  [
        {
            "reference": "PractitionerRole/cdb3fa96-507b-48ac-8983-cac710085c0c/_history/2"
        }
    ],
    "locationCode":  [
        {
            "coding":  [
                {
                    "system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
                    "code": "LOCATION-CONFIRMED"
                }
            ]
        }
    ],
    "locationReference":  [
        {
            "reference": "Location/cfda55ca-cf33-4fe1-8239-a4d28c0dbd7e"
        }
    ],
    "reasonCode":  [
        {
            "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 was not found for 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 ---
    },
    "identifier":  [
        {
            "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",
    "category":  [
        {
            "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",
    "requester": {
        "reference": "PractitionerRole/cdb3fa96-507b-48ac-8983-cac710085c0c"
    },
    "performer":  [
        {
            "reference": "PractitionerRole/cdb3fa96-507b-48ac-8983-cac710085c0c/_history/2"
        }
    ],
    "reasonCode":  [
        {
            "coding":  [
                {
                    "system": "https://health.gov.on.ca/sadie/fhir/CodeSystem/FlexForms-Internal-Complete",
                    "code": "ODSP-ADDITIONAL"
                }
            ]
        }
    ]
}


Submitted Request

Requirements

Profile - Request

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
requestCreatedUserI0..1Extension(Reference(FlexFormsRole))
requestCreatedDateI0..1Extension(dateTime)
requestSubmittedUserI0..1Extension(Reference(FlexFormsRole))
requestSubmittedDateI1..1Extension(dateTime)
requestCompletedDateI0..1Extension(dateTime)
requestCompletedDateStringI0..1Extension(string)
requestSubmittedDateStringI0..1Extension(string)
requestClientStatusI0..1Extension(string)
submissionConsentI0..1Extension(Reference(TermsOfUseConsent))
practitionerNameI0..1Extension(string)
clientCodeOneI0..1Extension(string)
clientCodeTwoI0..1Extension(string)
applicantNameI0..1Extension(string)
searchableStringI0..1Extension(string)
modifierExtension?! I0..*Extension
id0..1string
extensionI0..*Extension
useΣ ?!0..0codeBinding
systemΣ1..1uriBinding
valueΣ1..1string
periodΣ I0..0Period
assignerΣ I0..0Reference(Organization)
instantiatesCanonicalΣ0..0canonical(ActivityDefinition | PlanDefinition)
instantiatesUriΣ0..0uri
basedOnΣ I0..1Reference(ServiceRequest)
replacesΣ I0..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Σ I0..2CodeableConcept
subjectΣ I1..1Reference(Applicant)
encounterΣ I0..0Reference(Encounter)
authoredOnΣ1..1dateTime
requesterΣ I1..1Reference(FlexFormsRole)
performerTypeΣ0..0CodeableConcept
performerΣ I1..1Reference(FlexFormsRole)
id0..1string
extensionI0..*Extension
id0..1string
extensionI0..*Extension
systemΣ0..1uriFixed Value
versionΣ0..0string
codeΣ0..1code
displayΣ0..0string
userSelectedΣ0..0boolean
textΣ0..0string
locationReferenceΣ I1..1Reference(RequestorLocation)
reasonCodeΣ0..1CodeableConcept
reasonReferenceΣ I0..0Reference(Condition | Observation | DiagnosticReport | DocumentReference)
insuranceI0..0Reference(Coverage | ClaimResponse)
supportingInfoI1..1Reference(Request PDF)
specimenΣ I0..0Reference(Specimen)
bodySiteΣ0..0CodeableConcept
note0..0Annotation
patientInstructionΣ0..0string
relevantHistoryI0..0Reference(Provenance)

Example - that passed validation To be done