x-api-key: ********************
curl --location --request POST 'https://staging.onyeone.com/api/hie/transform/ccda-fhir/' \
--header 'x-api-key;' \
--form 'template="ConsultationNote"' \
--form 'data="<section> <!-- Notes Section --> <templateId root=\"2.16.840.1.113883.10.20.22.2.65\" extension=\"2016-11-01\"/> <!-- This Notes Section is not intended to replace a C-CDA Consultation Note Document --> <!-- If your system captures Consultation Note information in Discrete sections it'\''s not recommended to lump all the text together here. --> <!-- This Notes Section could be included in a Consultation Note Document with other discrete sections (Results, Vitals etc.)--> <!-- This Notes Section is most appropriate for an encounter specific document --> <!-- If this Notes section were included in a CCD, each Note Activity entry should be linked to an appropriate Encounter entry in the Encounters section --> <code code=\"11488-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Consult note\"/> <title>Consultation Notes</title> <text> <list> <item ID=\"ConsultNote1\"> <paragraph>Dr. Specialist - September 8, 2016</paragraph> <paragraph> Dear Dr. Henry Leven: Thank you for referring Ms. Everywoman for evaluation. As you know, she is a 40-year-old woman who has had chronic gastrointestinal symptoms. Approximately 18 years ago, she was hospitalized with a bleeding ulcer. She had a CT scan of the abdomen, which revealed findings consistent with focal nodular hyperplasia (FNH). She has had epigastric abdominal pain as well as a significant change in her bowel movements from baseline constipation to frequent diarrhea. The past medical history is otherwise negative. She takes no prescription medications. The remainder of the history is not contributory. </paragraph> <paragraph>Physical examination revealed a well-appearing woman. The vital signs were normal. The head and neck were unremarkable. The lung fields were clear. The heart exam was normal. The abdomen was obese with normal bowel sounds. There was no tenderness, mass, or hepatosplenomegaly. </paragraph> <paragraph>Endoscopic evaluation revealed a normal colonoscopy. Biopsies taken throughout the colon were essentially unremarkable. Stool tests for pathogenic organisms were negative. Of note, on the upper endoscopy examination, no significant abnormalities were seen; however, upon biopsy, features of celiac disease were noted.</paragraph> <paragraph> In summary, this 40-year-old woman has evidence of celiac disease. We discussed the diagnosis in detail in the office. She was advised to undertake a lifelong gluten-free diet. Followup laboratories in my office were notable for a low serum iron with a low-normal ferritin. The bone density was normal. Repeat triple-phase CT scan of the liver revealed no change in the right hepatic lobe lesion, which is consistent with FNH. I advised periodic reevaluation of the liver with imaging, as well as followup for any potential development of nutritional deficiencies. She should take an iron supplement and continue on a lifelong gluten-free diet. </paragraph> <paragraph>Thank you for the courtesy of this referral. I would be pleased to see Ms. Everywoman in followup.</paragraph> </item> </list> </text> <!-- Note Activity entry --> <entry> <act classCode=\"ACT\" moodCode=\"EVN\"> <templateId root=\"2.16.840.1.113883.10.20.22.4.202\" extension=\"2016-11-01\"/> <code code=\"34109-9\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Note\"> <!-- Code must match or be equivalent to section code --> <translation code=\"11488-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Consult note\"/> </code> <text> <reference value=\"#ConsultNote1\"/> </text> <statusCode code=\"completed\"/> <!-- Clinically-relevant time of the note --> <effectiveTime value=\"20160908\"/> <!-- Author Participation --> <author> <templateId root=\"2.16.840.1.113883.10.20.22.4.119\"/> <!-- Time note was actually written --> <time value=\"20160908083215-0500\"/> <assignedAuthor> <!-- Full author information is elsewhere in the document . --> <id root=\"20cf14fb-b65c-4c8c-a54d-b0cca834c18c\"/> <assignedPerson> <name> <prefix>Dr.</prefix> <family>Specialist</family> </name> </assignedPerson> </assignedAuthor> </author> </act> </entry></section>"'
{
"messageType": "ReferralNote",
"data": {
"resourceType": "Bundle",
"type": "batch",
"entry": [
{
"fullUrl": "urn:uuid:c252b4dd-7869-28f3-ff53-fe8263e3cd5e",
"resource": {
"resourceType": "Composition",
"id": "c252b4dd-7869-28f3-ff53-fe8263e3cd5e",
"identifier": {
"use": "official",
"value": "2.16.840.1.113883.19.5.99999.1"
},
"status": "final",
"type": {
"coding": [
{
"code": "11488-4",
"display": "Consult note",
"system": "http://loinc.org"
}
]
},
"date": "2018-06-23T09:00:00-08:00",
"title": "Community Health Consult Note",
"confidentiality": "N",
"subject": {
"reference": "Patient/75d72dd1-7f86-8a14-d4db-94b59ddc3627"
},
"encounter": {
"reference": "Encounter/bad87531-1d3e-59f3-cfb0-95201b0e21c2"
},
"custodian": {
"reference": "Organization/d9b17f7a-c973-98ba-d798-05a68eafe519"
},
"author": [
{
"reference": "Practitioner/08161958-acd8-1ccb-1416-a6a3b9a2c973"
}
]
},
"request": {
"method": "PUT",
"url": "Composition/c252b4dd-7869-28f3-ff53-fe8263e3cd5e"
}
},
{
"fullUrl": "urn:uuid:bad87531-1d3e-59f3-cfb0-95201b0e21c2",
"resource": {
"resourceType": "Encounter",
"id": "bad87531-1d3e-59f3-cfb0-95201b0e21c2",
"status": "unknown",
"class": {
"code": "99213",
"display": "Office or other outpatient visit for the evaluation and management of an established patient, which requires a medically appropriate history and/or examination and low level of medical decision making. When using time for code selection, 20-29 minutes of total time is spent on the date of the encounter.",
"system": "http://www.ama-assn.org/go/cpt"
},
"identifier": [
{
"system": "urn:oid:2.16.840.1.113883.19",
"value": "9937012"
}
],
"location": [
{
"location": {
"reference": "Location/6dfdc7c6-e225-71eb-cec1-75870e529061"
}
}
]
},
"request": {
"method": "PUT",
"url": "Encounter/bad87531-1d3e-59f3-cfb0-95201b0e21c2"
}
},
{
"fullUrl": "urn:uuid:6dfdc7c6-e225-71eb-cec1-75870e529061",
"resource": {
"resourceType": "Location",
"id": "6dfdc7c6-e225-71eb-cec1-75870e529061"
},
"request": {
"method": "PUT",
"url": "Location/6dfdc7c6-e225-71eb-cec1-75870e529061"
}
},
{
"fullUrl": "urn:uuid:d9b17f7a-c973-98ba-d798-05a68eafe519",
"resource": {
"resourceType": "Organization",
"id": "d9b17f7a-c973-98ba-d798-05a68eafe519",
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "321CX"
}
],
"name": "Good Health HIE",
"address": [
{
"use": "work",
"line": [
"1009 Healthcare Drive "
],
"city": "Portland",
"state": "OR",
"country": "US",
"postalCode": "99123"
}
],
"telecom": [
{
"system": "phone",
"value": "+1(555)-1009",
"use": "work"
}
]
},
"request": {
"method": "PUT",
"url": "Organization/d9b17f7a-c973-98ba-d798-05a68eafe519"
}
},
{
"fullUrl": "urn:uuid:08161958-acd8-1ccb-1416-a6a3b9a2c973",
"resource": {
"resourceType": "Practitioner",
"id": "08161958-acd8-1ccb-1416-a6a3b9a2c973",
"meta": {
"profile": [
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner"
]
},
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "555555555"
}
],
"name": [
{
"family": "Primary",
"given": [
"Patricia",
"Patty"
],
"suffix": [
"M.D."
]
}
],
"address": [
{
"line": [
"1004 Healthcare Drive "
],
"city": "Portland",
"state": "OR",
"country": "US",
"postalCode": "99123"
}
],
"telecom": [
{
"system": "phone",
"value": "+1(555)-1004",
"use": "work"
}
],
"qualification": [
{
"code": {
"coding": [
{
"code": "207QA0505X",
"display": "Allopathic & Osteopathic Physicians; Family Medicine, Adult Medicine",
"system": "http://nucc.org/provider-taxonomy"
}
]
}
}
]
},
"request": {
"method": "PUT",
"url": "Practitioner/08161958-acd8-1ccb-1416-a6a3b9a2c973"
}
},
{
"fullUrl": "urn:uuid:75d72dd1-7f86-8a14-d4db-94b59ddc3627",
"resource": {
"resourceType": "Patient",
"id": "75d72dd1-7f86-8a14-d4db-94b59ddc3627",
"meta": {
"profile": [
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"
]
},
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-ssn",
"value": "000-00-0000"
}
],
"name": [
{
"use": "usual",
"family": "Betterhalf",
"given": [
"Eve"
]
},
{
"family": "Everywoman",
"given": [
"Eve"
]
}
],
"birthDate": "1975-05-01",
"gender": "female",
"extension": [
{
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race",
"extension": [
{
"url": "ombCategory",
"valueCoding": {
"code": "2106-3",
"display": "White"
}
},
{
"url": "ombCategory",
"valueCoding": {
"code": "2076-8",
"display": "Native Hawaiian or Other Pacific Islander"
}
},
{
"url": "text",
"valueString": "Mixed"
}
]
},
{
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity",
"extension": [
{
"url": "ombCategory",
"valueCoding": {
"code": "2186-5",
"display": "Not Hispanic or Latino"
}
},
{
"url": "text",
"valueString": "Not Hispanic or Latino"
}
]
}
],
"address": [
{
"use": "home",
"line": [
"2222 Home Street"
],
"city": "Beaverton",
"state": "OR",
"country": "US",
"postalCode": "97867"
}
],
"telecom": [
{
"system": "phone",
"value": "+1(555)555-2003",
"use": "home"
}
],
"communication": [
{
"language": {
"coding": [
{
"system": "urn:ietf:bcp:47",
"code": "en",
"display": "English"
}
]
},
"preferred": true
}
]
},
"request": {
"method": "PUT",
"url": "Patient/75d72dd1-7f86-8a14-d4db-94b59ddc3627"
}
},
{
"fullUrl": "urn:uuid:1e516bfc-532c-65a4-45e2-e8536f0eb630",
"resource": {
"resourceType": "RelatedPerson",
"id": "1e516bfc-532c-65a4-45e2-e8536f0eb630",
"relationship": [
{
"coding": [
{
"code": "POWATT",
"display": "Power of Attorney",
"system": "urn:oid:2.16.840.1.113883.1.11.19830"
}
]
}
],
"name": [
{
"family": "Betterhalf",
"given": [
"Boris",
"Bo"
]
}
],
"telecom": [
{
"system": "phone",
"value": "+1(555)555-2008",
"use": "mobile"
}
],
"address": [
{
"use": "home",
"line": [
"2222 Home Street"
],
"city": "Beaverton",
"state": "OR",
"country": "US",
"postalCode": "97867"
}
],
"patient": {
"reference": "Patient/75d72dd1-7f86-8a14-d4db-94b59ddc3627"
}
},
"request": {
"method": "PUT",
"url": "RelatedPerson/1e516bfc-532c-65a4-45e2-e8536f0eb630"
}
},
{
"fullUrl": "urn:uuid:4fb8809d-9d4d-4728-185c-9ad4db3f7213",
"resource": {
"resourceType": "DocumentReference",
"id": "4fb8809d-9d4d-4728-185c-9ad4db3f7213",
"type": {
"coding": [
{
"code": "11488-4",
"display": "Consult note",
"system": "http://loinc.org"
}
]
},
"date": "2024-12-06T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