### Receive Reference Data .JSON The following is the reference payload used for receiving new eReferrals from an eReferral server (e.g., from an eReferral system to an EMR or case management system). All recipient systems should be able to process this payload successfully. This is sent via a /Bundle POST to an endpoint hosted by the recipient system. This payload matches the [Submit Reference JSON](https://simplifier.net/guide/eRefferaldraftiGuide/SubmitReferenceJSON) data, with the following exceptions: * A **Task** resource has been added to track the status of the eReferral * **An appointment resource may be added** (currently omitted - coming soon!!) --- ``` Content-Type: application/fhir+json;charset=utf-8 { "resourceType": "Bundle", "type": "message", "timestamp": "2018-03-09T15:21:51.2112Z", "entry": [ { "resource": { "resourceType": "MessageHeader", "id": "uuid-000000", "eventCoding": { "code": "add-service-request" }, "destination": [ { "name": "Caredove", "endpoint": "https://www.caredove.com/api/FHIR4_v1" } ], "source": { "name": "Referrer Agency Incorporated", "software": "EMR X", "version": "3.1.45", "contact": { "system": "email", "value": "support@referreragencyinc.com", "use": "work" }, "endpoint": "www.referreragencyinc.com/endpoint" }, "focus": { "reference": "ServiceRequest/uuid-0" } }, "request": { "method": "POST", "url": "MessageHeader" } }, { "resource": { "resourceType": "ServiceRequest", "id": "uuid-0", "text": { "status": "generated", "div": "Human readable HTML narrative of entire ServiceRequest and related resources goes here. For brevity sake, it is omitted here, but can be included in an actual transmission." }, "identifier": [ { "type" : { "text" : "XYZ Source System Referral ID" }, "value": "7654321" }, { "type" : { "text" : "ABC Relay System Tracking ID" }, "value": "1234567" } ], "status": "active", "intent": "proposal", "priority": "routine", "subject": { "reference": "Patient/uuid-1" }, "authoredOn": "2018-03-09T15:21:51Z", "requester": { "reference": "PractitionerRole/uuid-2a" }, "performer": { "reference": "https://www.caredove.com/FHIR4/HealthcareService/8654" }, "reasonCode": [ { "text": "Reason for referral narrative goes here" } ], "note": [ { "text": "Allergies: Penicillin \nFood Allergies: Peanuts" }, { "text": "Social History: History of family conflict \nlow social interaction" } ] }, "request": { "method": "POST", "url": "ServiceRequest" } }, { "resource": { "resourceType": "Patient", "id": "uuid-1", "identifier": [ { "type": { "coding": [ { "code": "JHN", "system": "http://hl7.org/fhir/v2/0203" } ], "text": "Ontario PHN" }, "value": "4455 044 033", "system": "http://ehealthontario.ca/API/FHIR/NamingSystem/ca-on-patient-hcn", "extension": [ { "url": "https://www.caredove.com/FHIR3/StructureDefinition/caredove-healthcardversion", "valueString": "H" } ] }, { "type" : { "text" : "Student Card #" }, "value": "3699098" } ], "name": [ { "given": [ "Patty", "Atient" ], "family": "O'Subject" } ], "telecom": [ { "system": "phone", "value": "(555) 111-1111 x1ARY", "use": "mobile", "rank": 1 }, { "system": "phone", "value": "(555) 222-2222 x2ARY", "rank": 2 }, { "system": "email", "value": "testpatient@caredove.com" } ], "gender": "male", "birthDate": "1928-06-29", "address": [ { "use": "home", "type": "physical", "line": [ "Unit 2", "50 Albert St." ], "city": "Waterloo", "state": "ON", "postalCode": "K8N 1N1", "country": "Can" } ], "maritalStatus": { "coding": [ { "code": "M", "display": "Married" } ], "text": "Married" }, "contact": [ { "relationship": [ { "text": "Emergency Contact" } ], "name": { "given": [ "Shemergency", "David" ], "family": "McContact" }, "telecom": [ { "system": "phone", "value": "(555) 111-1111 xEM1ARY", "use": "mobile", "rank": 1 }, { "system": "phone", "value": "(555) 222-2222 xEM2ARY", "rank": 2 }, { "system": "email", "value": "testcontact@caredove.com" } ], "address": { "use": "home", "type": "physical", "line": [ "Unit 2", "50 Albert St." ], "city": "Waterloo", "state": "ON", "postalCode": "32819", "country": "Can" }, "gender": "female" } ], "communication": [ { "language": { "coding": [ { "code": "en", "display": "English" } ], "text": "English" }, "preferred": true } ], "generalPractitioner": [ { "reference": "PractitionerRole/uuid-3a" } ] }, "request": { "method": "POST", "url": "Patient" } }, { "resource": { "resourceType": "PractitionerRole", "id": "uuid-2a", "practitioner": { "reference": "Practitioner/uuid-2b", "display" : "Requesty McSenderson" }, "organization": { "reference": "Organization/uuid-2c", "display": "North Sender Clinic" }, "code" : { "text" : "Community Case Manager" }, "location": [ { "reference": "Location/uuid-2d", "display" : "Suite 11, 11 King st. West, Kitchener, ON, Can" } ], "telecom": [ { "system": "phone", "value": "(555) 111-1111", "use": "work" }, { "system": "email", "value": "testsender@caredove.com", "use": "work" } ] }, "request": { "method": "POST", "url": "PractitionerRole" } }, { "resource": { "resourceType": "Practitioner", "id": "uuid-2b", "name": [ { "given": [ "Requesty" ], "family": "McSenderson" } ] }, "request": { "method": "POST", "url": "Practitioner" } }, { "resource": { "resourceType": "Organization", "id": "uuid-2c", "type" : { "coding" : { "system" : "http://hl7.org/fhir/ValueSet/organization-type", "version" : "3.5.0", "code" : "prov", "display" : "Healthcare Provider" } }, "name": "North Sender Clinic" }, "request": { "method": "POST", "url": "Organization" } }, { "resource": { "resourceType": "Location", "id": "uuid-2d", "name": "Downtown Sender Hub", "address": { "use": "work", "type": "physical", "line": [ "Suite 11", "11 King st. West" ], "city": "Kitchener", "state": "ON", "postalCode": "N2L 1T1", "country": "Can" } }, "request": { "method": "POST", "url": "Location" } }, { "resource": { "resourceType": "PractitionerRole", "id": "uuid-3a", "practitioner": { "reference": "Practitioner/uuid-3b", "display" : "Dr. Prim Caredove" }, "organization": { "reference": "Organization/uuid-3c", "display" : "Star Family Health Team" }, "specialty" : { "coding" : { "system" : "http://hl7.org/fhir/ValueSet/c80-practice-codes", "version" : "20091109", "code" : "419772000", "display" : "Family practice" } }, "location": [ { "reference": "Location/uuid-3d", "display" : "22 Weber st. East, Kitchener ON, Can" } ], "telecom": [ { "system": "phone", "value": "(555) 222-2222", "use": "work" }, { "system": "email", "value": "familydoc@caredove.com", "use": "work" } ] }, "request": { "method": "POST", "url": "PractitionerRole" } }, { "resource": { "resourceType": "Practitioner", "id": "uuid-3b", "name": [ { "given": [ "Dr. Prim" ], "family": "Caredoc" } ] }, "request": { "method": "POST", "url": "Practitioner" } }, { "resource": { "resourceType": "Organization", "id": "uuid-3c", "type" : { "coding" : { "system" : "http://hl7.org/fhir/ValueSet/organization-type", "version" : "3.5.0", "code" : "prov", "display" : "Healthcare Provider" } }, "name": "Star Family Health Team" }, "request": { "method": "POST", "url": "Organization" } }, { "resource": { "resourceType": "Location", "id": "uuid-3d", "name": "West Side GP Office", "address": { "use": "work", "type": "physical", "line": [ "22 Weber st. East" ], "city": "Kitchener", "state": "ON", "postalCode": "N2L 2T2", "country": "Can" } }, "request": { "method": "POST", "url": "Location" } } { "resource": { "resourceType": "Task", "id": "uuid-3, "basedOn" : { "reference" : "ServiceRequest/uuid-0" }, "status" : "requested", "businessStatus " : { "text" : "Waiting for preliminary review" }, "intent" : "proposal", "code" : { "text" : "Process Request" }, "description" : "Process and close this referral request", "authoredOn" : "2018-03-09T15:21:51Z", "lastModified" : "2018-03-09T15:21:51Z" }, "request": { "method": "POST", "url": "Task" } } ] } ```