...
Step two is to give information about the service request. This is done using a FHIR Bundle. The following describes a FHIR Bundle https://build.fhir.org/bundle.html .There will be two types of FHIR resources: the Service Request and the Observation. The following is an example of the Bundle.
Organization Id’s
For the requester and the performer of the Service Request a organization id will be needed. The CIE Hub is integrated with the MI211 Social Services and the organization id’s can be used to represent the requester and the performer. An extension can be used to use this MI211 social services organization id. This can be showed below.
Code Block |
---|
"performer": [
{
"display": "MISSION FOR AREA PEOPLE",
"extension" : [
{
"url" : "https://directory.mi-cie.org/or_org_id",
"valueString": "24828"
}
]
}
],
"resourceType": "ServiceRequest",
"requester": {
"display": "HACKLEY COMMUNITY CARE CENTER",
"extension" : [
{
"url" : "https://directory.mi-cie.org/or_org_id",
"valueString": "24571"
}
]
},
|
Code Block |
---|
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"request": {
"method": "POST",
"url": "ServiceRequest"
},
"fullUrl": "urn:uuid:ec11f683-8779-4fcf-a9b7-1ce1b0033968",
"resource": {
"resourceType": "ServiceRequest",
"id": "ec11f683-8779-4fcf-a9b7-1ce1b0033968", //PLEASE GENERATE YOUR OWN GUID
"subject": {
"reference": "Patient/a41d9169-0dc9-4645-bc85-fbd3fafc4fee",
"display": "TEST TESTER"
},
"requester": {
"reference": "Organization/288859cf-ed33-4a41-85f1-ceba72f029dc",
"type": "Organization",
"display": "YOUR ORG" //This information will be given when registering to the Hub
},
"code": {
"coding": [
{ // Represents why the service request is being made
"code": "CODE",
"display": "FRIENDLY DISPLAY NAME",
"system": "https://mi-cie.org/fhir/StructureDefinition"
}
]
},
"extension": [ //THESE ARE OPTIONAL
{
"url": "http://hl7.org/fhir/StructureDefinition/referringName",
"valueString": "REFERRERFISTNAME"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/referringEmail",
"valueString": "referrer@referrer.com"
}
],
"status": "active",
"intent": "original-order",
"category": [
{ // REPRESENTS MORE METADATA ABOUT THE REQUEST- THIS IS OPTIONAL
"coding": [
{
"system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes",
"code": "transportation-insecurity",
"display": "Transportation Insecurity"
}
]
}
],
"performer": [
{
"reference": "Organization/39649",
"type": "Organization",
"display": "PERFORMER ORGANIZATION"
}
],
"authoredOn": "2024-07-22T11:26:45-04:00"
}
},
{
"request": {
"method": "POST",
"url": "Observation"
},
"fullUrl": "urn:uuid:e7508fe8-a854-4a4d-a77a-6c89e6242f3f",
"resource": {
"resourceType": "Observation",
"basedOn": [
{
"reference": "ServiceRequest/ec11f683-8779-4fcf-a9b7-1ce1b0033968",
"type": "ServiceRequest"
}
],
"id": "a403eef1-df40-43ce-8d5c-8c10a7ca757b",
"status": "final",
"category": [
{ //Represents more meta data about the observation - This is optional
"coding": [
{
"system": "https://mi-cie.org/fhir/StructureDefinition",
"code": "CODE_v2",
"display": "FRIENDLY CODE NAME"
}
]
}
],
"code": {
"coding": [
{ // THIS REPRESENTS WHAT THE OBSERVATION IS
"system": "https://mi-cie.org/fhir/StructureDefinition/employmentEligibility",
"code": "employmentEligibility_v2",
"display": "Employment Eligibility"
}
]
},
"subject": {
"reference": "Patient/a41d9169-0dc9-4645-bc85-fbd3fafc4fee",
"display": "PUTFIRSTNAME PUTLASTNAME"
},
"valueString": "Job searching",
"effectiveDateTime": "2024-07-22T11:26:45-04:00"
}
},
{
"request": {
"method": "POST",
"url": "Observation"
},
"fullUrl": "urn:uuid:1d6d50dc-8e2e-418a-999f-dc3a9382ae5a",
"resource": {
"resourceType": "Observation",
"basedOn": [
{
"reference": "ServiceRequest/ec11f683-8779-4fcf-a9b7-1ce1b0033968",
"type": "ServiceRequest"
}
],
"id": "78a9b719-7087-4305-9fc6-c2c56c796e85",
"status": "final",
"category": [
{ //Represents more meta data about the observation - This is optional
"coding": [
{
"system": "https://mi-cie.org/fhir/StructureDefinition",
"code": "CODE_v2",
"display": "FRIENDLY CODE NAME"
}
]
}
],
"code": {
"coding": [
{ // THIS REPRESENTS WHAT THE OBSERVATION IS
"system": "https://mi-cie.org/fhir/StructureDefinition/clientSituation",
"code": "clientSituation_v2",
"display": "Client Situation"
}
]
},
"subject": {
"reference": "Patient/a41d9169-0dc9-4645-bc85-fbd3fafc4fee",
"display": "PUTFIRSTNAME PUTLASTNAME"
},
"valueString": "Test",
"effectiveDateTime": "2024-07-22T11:26:45-04:00"
}
}
]
} |
The following describes how to make this call POST / .
...