// Instance: ContinuityCareDocument1
// InstanceOf: Composition
// Description: "John Doe - Composition - Continuity of Care Document"
// Usage: #example
// * meta.versionId = "1"
// * meta.lastUpdated = "2018-10-04T19:42:52.061-04:00"
// * meta.profile = "http://hl7.org/fhir/us/ccda/StructureDefinition/CCDA-on-FHIR-Continuity-of-Care-Document"
// * language = #en-US
// * identifier.system = "urn:ietf:rfc:3986"
// * identifier.value = "urn:uuid:7e63fe21-7285-46c6-b72f-e58a61341195"
// * status = #preliminary
// * type = http://loinc.org#34133-9 "Summary of episode note"
// * subject = Reference(Patient/john-doe) "John Doe"
// * date = "2016-02-28T09:10:14Z"
// * author = Reference(Practitioner/practitioner-1) "Ronald Boone, MD"
// * title = "Continuity of Care Document"
// * confidentiality = #N
// * attester.mode = #legal
// * attester.time = "2016-06-15T09:10:14Z"
// * attester.party = Reference(Practitioner/practitioner-1) "Ronald Boone, MD"
// * custodian = Reference(Organization/organization-1) "Community Health and Hospitals"
// * event.code = http://hl7.org/fhir/v3/ActClass#PCPR "Care Provision"
// * event.period.start = "2016-06-15"
// * event.period.end = "2016-08-20"
// * section[0].title = "Allergies and Intolerances Section"
// * section[=].code = http://loinc.org#48765-2 "Allergies and adverse reactions"
// * section[=].text.status = #generated
// * section[=].text.div = "
| Substance | Overall Severity | Reaction | Reaction Severity | Status |
| Cashew Nut | Severe | Anaphylactic reaction | Mild | Active |
"
// * section[=].mode = #snapshot
// * section[=].orderedBy = http://hl7.org/fhir/list-order#event-date "Sorted by Event Date"
// * section[=].entry = Reference(AllergyIntolerance/allergy-intolerance)
// * section[+].title = "Medication Section"
// * section[=].code = http://loinc.org#10160-0 "History of Medication Use"
// * section[=].text.status = #generated
// * section[=].text.div = "| Medication | Directions | Start Date | Status | Indications | Fill Instructions |
| Amoxicillin | Amoxicillin Powder, for Suspension 250mg/5ml | 2016/02/28 | Active | Pneumonia | Generic substitution allowed |
"
// * section[=].entry = Reference(MedicationStatement/medication-statement)
// * section[+].title = "Problem Section"
// * section[=].code = http://loinc.org#11450-4 "Problem list"
// * section[=].text.status = #generated
// * section[=].text.div = "| Problem Name | Type | Onset Date | Abatement Date | Status |
| Fever | Condition | 2016/02/28 | 2016/03/01 | Complete |
"
// * section[=].entry = Reference(Condition/condition-problem)
// * section[+].title = "Procedures Section"
// * section[=].code = http://loinc.org#47519-4 "History of procedures"
// * section[=].text.status = #generated
// * section[=].text.div = "| Procedure Name | Body Site | Performer | Date Performed | Reason |
| Appendectomy (Procedure) | Abdomen | Dr. Adam Everyman | 2016/06/15 | Generalized abdominal pain 24 hours. Localized in RIF with rebound and guarding |
"
// * section[=].entry = Reference(Procedure/procedure-rehab)
// * section[+].title = "Results Section"
// * section[=].code = http://loinc.org#30954-2 "Relevant diagnostic tests and laboratory data"
// * section[=].text.status = #generated
// * section[=].text.div = "| Result Type | Quantity Value | Date | Status |
| Glucose [Moles/volume] in Blood | 6.3 mmol/l | 2016/06/15 | Final |
"
// * section[=].entry = Reference(Observation/observation-lab-urine)
// * section[+].title = "Advance Directives Section"
// * section[=].code = http://loinc.org#42348-3 "Advance directives"
// * section[=].text.status = #generated
// * section[=].text.div = "| Name | Applies Period |
| Resuscitation | 2010/01/01 - 2025/01/01 |
"
// * section[+].title = "Encounters Section"
// * section[=].code = http://loinc.org#46240-8 "Encounters"
// * section[=].text.status = #generated
// * section[=].text.div = "| Encounter | Performer | Location | Date |
| Checkup Examination | Dr. S. Steene | Community Urgent Care Center | 2016/04/18 |
"
// * section[+].title = "Family History Section"
// * section[=].code = http://loinc.org#10157-6 "History of family member diseases"
// * section[=].text.status = #generated
// * section[=].text.div = "| Relationship | Diagnosis | Age at Onset |
| Father | Myocardial Infarction(cause of Death) | 57 |
| Father | Diabetes | 40 |
"
// * section[+].title = "Functional Status Section"
// * section[=].code = http://loinc.org#47420-5 "Functional status assessment"
// * section[=].text.status = #generated
// * section[=].text.div = "| Functional or Cognitive Finding | Observation | Observation Date | Condition Status |
| Ambulation (Dependent to Independent | Independently able | 2016/06/15 | Active |
| Finding of Functional Performance and Activity | Dyspnea | 2016/06/15 | Active |
| Cognitive Function Finding | Memory Impairment | 2010/04/17 | Active |
"
// * section[+].title = "Immunizations Section"
// * section[=].code = http://loinc.org#11369-6 "History of immunization"
// * section[=].text.status = #generated
// * section[=].text.div = "| Vaccine | Date | Status |
| Fluvax (Influenza) | 2014/05/29 | Completed |
"
// * section[=].entry = Reference(Immunization/immunization)
// * section[+].title = "Nutrition Section"
// * section[=].code = http://loinc.org#61144-2 "Diet and nutrition"
// * section[=].text.status = #generated
// * section[=].text.div = "| Date | Nutritional Status | Diet |
| 2016/06/15 | Well nourished | Low sodium diet, excessive carbohydrate |
| 2016/06/15 | Slight dehydration | High protein, low fibre |
"
// * section[+].title = "Mental Status Section"
// * section[=].code = http://loinc.org#10190-7 "Mental status"
// * section[=].text.status = #generated
// * section[=].text.div = "| Date | Mental Status | Support System |
| 2016/06/15 | Good | Not required |
| 2012/04/29 | Dimentia | Daily Home Care |
"
// * section[+].title = "Social History Section"
// * section[=].code = http://loinc.org#29762-2 "Social history"
// * section[=].text.status = #generated
// * section[=].text.div = "| Social History Element | Description | Effective Dates |
| Smoking | 1 pack tobacco per day | 2010/01/01 - 2016/06/15 |
"
// * section[=].entry = Reference(Observation/observation-smoker)
// * section[+].title = "Plan of Treatment Section"
// * section[=].code = http://loinc.org#18776-5 "Plan of treatment"
// * section[=].text.status = #generated
// * section[=].text.div = "| Planned Activity | Period | Status |
| Colonoscopy | 2016/06/15 - 2015/06/15 | Completed |
| Recommendation to Exercise | 2016/06/15 | Ongoing |
"
// * section[+].title = "Payers Section"
// * section[=].code = http://loinc.org#48768-6 "Payers"
// * section[=].text.status = #generated
// * section[=].text.div = "| Payer Name | Policy ID | Policy Holder |
| United Healthcare | 12341 | Self |
| Cigna | 53123 | Spouse |
"
// * section[+].title = "Medical Equipment Section"
// * section[=].code = http://loinc.org#46264-8 "Medical equipment"
// * section[=].text.status = #generated
// * section[=].text.div = "| Supply/Device | Date Supplied |
| Automatic Implantable cardioverter/defbrillator | 2015/05/29 |
| Wheelchair | 2016/06/15 |
"
// * section[+].title = "Vital Signs Section"
// * section[=].code = http://loinc.org#8716-3 "Vital signs"
// * section[=].text.status = #generated
// * section[=].text.div = "| Vital Sign | Date | Value |
| Temperature | 2016/06/15 | 39 Degrees Celcius |
"
// * section[=].entry = Reference(Observation/observation-vitals-temp)