...
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 / .