From 0c95c8061615b46147ee192443fe6d595ff949cc Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 13 Nov 2023 15:00:36 +1100 Subject: [PATCH] Add test cases for CCDA .hasTemplateIdOf(canonical) --- r5/ccda.xml | 705 ++++++++++++++++++++++++++++++++++ r5/fhirpath/tests-fhir-r5.xml | 5 + 2 files changed, 710 insertions(+) create mode 100644 r5/ccda.xml diff --git a/r5/ccda.xml b/r5/ccda.xml new file mode 100644 index 00000000..2fc5de68 --- /dev/null +++ b/r5/ccda.xml @@ -0,0 +1,705 @@ + + + + + + + + + + DCI Continuity of Care Document + + + + + + + + + CA + OROVILLE + 21014 + 302 Cumming Ave RR 2 + US + + + + + BARBARA + DCI + + + + + + + + + + + + + + + + + + + + + + + 8333 Clairemont Blvd + Bel Air + MD + 21014 + US + + + + + + + +
+ + + + Problems + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConditionEffective DateResolved DateStatus
Burn Of Third Degree Of Unspecified Thigh, Subsequent Encounter06/25/2015 + Active
Burn Of Second Degree Of Female Genital Region, Initial Encounter06/25/2015 + Active
Burns on lower body06/18/201506/25/2015Resolved
Cerebral Palsy, Unspecified08/29/1982 + Active
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + + + Medications + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MedicationInstructionsDate RangeStatuscomments
SENOKOT 187 MG | 2 Tablet(s) | PO | QHS (06/01/2015 - present)187 MG | 2 Tablet(s) | PO | QHS06/01/2015-CompletedTaken in clinic |
CLOTRIMAZOLE 1 % | 1 GM | VA | BID (06/01/2015 - present)1 % | 1 GM | VA | BID06/01/2015-CompletedTaken in clinic |
TYLENOL WITH CODEINE #3 300-30 MG | 1 Tablet(s) | PO | QD-PRN (06/25/2015 - present)300-30 MG | 1 Tablet(s) | PO | QD-PRN06/25/2015-CompletedTaken in clinic |
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + + + Medications Administered + + + + + + + + + + + + + + + + +
MedicationStart DateEnd DateStatus
No Known Medication Administrations + + +
+
+ + + + + + + + + + + + + + +
+
+ +
+ + + + IMMUNIZATIONS + + + + + + + + + + + + + + + + + + +
DateVaccinationAppointmentStatus/EventComments
No Known Immunizations + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + + + Allergies/Adverse Reactions + + + + + + + + + + + + + + + + + + + +
SubstanceReactionEffective DateResolved DateSeverityStatusNotes
No Known Allergies + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + + + VITAL SIGNS + No Information +
+
+ + +
+ + + + Social History + + + + + + + + + + + + + + + + +
Social History ElementDescriptionEffective Date
+ Smoking + Never as of 06/18/201520150618000000
+
+ + + + + + + + + + + + + + + + + + +
+
+ +
+ + + Reason for Visit/Chief Complaint + + Pain and Blistering on legs + +
+
+
+
+
\ No newline at end of file diff --git a/r5/fhirpath/tests-fhir-r5.xml b/r5/fhirpath/tests-fhir-r5.xml index 22469f4e..2cccc30a 100644 --- a/r5/fhirpath/tests-fhir-r5.xml +++ b/r5/fhirpath/tests-fhir-r5.xml @@ -1426,4 +1426,9 @@ Any text enclosed within is ignored composition.exists() implies (composition.resolve().section.entry.reference.where(resolve() is Observation) in (result.reference | result.reference.resolve().hasMember.reference))true + + hasTemplateIdOf('http://hl7.org/cda/us/ccda/StructureDefinition/ContinuityofCareDocumentCCD')true + ClinicalDocument.hasTemplateIdOf('http://hl7.org/cda/us/ccda/StructureDefinition/ContinuityofCareDocumentCCD')true + recordTarget.patientRole.hasTemplateIdOf('http://hl7.org/cda/us/ccda/StructureDefinition/ContinuityofCareDocumentCCD')false +