Mappings for the nehta-shared-health-summary resource.
SharedHealthSummary | for src make thing as tgt = create(Composition), tgt.code = concept("LOINC", "60591-5") |
subjectofCare | for src.subjectofCare as x make tgt.subject = x |
documentAuthor | for src.documentAuthor as x make tgt.author = x
for src.documentAuthor as xa make tgt.attestor as y = x, y.party = xa |
documentType | for srcdocumentType make tgt.identifier then by type |
dateTimeAttested | for src.dateTimeAttested as x make tgt.date = x |
adverseReactions | for src.adverseReactions as ar make tgt.section as sct1, sct1.title = "Adverse Reactions", sct1.code= concept("nehta-sct" : "101.20113") |
exclusionStatementAdverseReactions | for ar.exclusionStatementAdverseReactions as arex then by vars |
globalStatement | for arex as x make sct1.emptyReason = x |
adverseReaction | for ar.adverseReasion make ai as ai = create("AllergyIntolerance"), sct1.entry = pointer(ai) |
substanceAgent | for ai.substanceAgent as x make ai.substance = x |
event | for ai.event as ev make ai.reaction as air then by vars |
manifestation | for ev.manifestation as x make air.manifestation = x |
reactionType | for ev.reactionType as x make ai.type as x {only-one} |
medicationOrders | for src.medicationOrders as mo make tgt.section as sct2, sct2.title = "Medication Orders", sct2.code= concept("nehta-sct" : "101.16146") |
exclusionStatementMedications | for mo.exclusionStatementMedications as moex then by vars |
globalStatement | for moex as x make sct2.emptyReason = x |
medicationInstruction | for mo.medicationInstruction as moi make ms as ms = create("MedicationStatement"), sct2.entry = pointer(ms) |
therapeuticGoodIdentification | for moi.therapeuticGoodIdentification as x make ms.medicationCodeableConcept = x |
directions | for moi.directions as moid make ms.dosage as msd, msd.text = moid |
clinicalIndication | for moi.clinicalIndication as moic make ms.reasonForUseCodeableConcept as ru, ru.text = moic |
comment | for moi.comment as x make ms.note = x |
medicalHistory | for src.medicalHistory as mh make tgt.section as sct3, sct3.title = "Medical History", sct3.code= concept("nehta-sct" : "101.16117") |
problemDiagnosis | for mh.problemDiagnosis as pd make cnd as cnd = create("Condition"), sct3.entry = pointer(cnd) |
identification | for pd.identitification as x make cnd.code = x |
dateofOnset | for pd.dateOfOnset as x make cnd.onsetDateTime = x |
dateofResolutionRemission | for pd.dateOfResolutionRemission as x make cnd.abatementDate = x |
comment | for pd.comment as x make cnd.notes = x |
exclusionStatementProblemsandDiagnoses | for pd.exclusionStatementProblemsandDiagnoses as pdex then by vars |
globalStatement | for pdex as x make sct3.emptyReason = x |
procedure | for mh.procedure as pr make cndp as cndp = create("Condition"), sct3.entry = pointer(cndp) |
name | for pd.name as x make cndp.code = x |
comment | for pd.comment as x make cndp.notes = x |
dateTime | for pr.dateTime as x make cndp.onsetDateTime = x |
exclusionStatementProcedures | for mh.exclusionStatementProcedures as prex then by vars |
globalStatement | for prex as x make sct3.emptyReason = x |
uncategorisedMedicalHistoryItem | for mh.uncategorisedMedicalHistoryItem as item make cndi as cndp = create("Condition"), sct3.entry = pointer(cndi) then by vars |
description | for item.description as x make cndi.code as y, y.text = x |
timeInterval | for item.timeInterval as ti then by vars
for ti.start as x make cndi.onsetDateTime = x
for ti.end as x make cndi.abatementDate = x |
comment | for item.comment as x make cndi.notes = x |
immunisations | for src.immunizations as imm make tgt.section as sct4, sct4.title = "Immunization", sct4.code= concept("nehta-sct", "101.16117) |
medicationAction | for imm.medicationAction as ima make im as im = create("Immunization"), sct4.entry = pointer(im) |
therapeuticGoodIdentification | for ima.therapeuticGoodIdentification as x make im.vaccineType = x |
sequenceNumber | for ima.sequenceNumber as x make im.vaccinationProtocol as vp, vp.doseSequence = x |
dateTime | for ima.dateTime as x make imm.date = x |
exclusionStatementMedications | for imm.exclusionStatementMedications as imex then by vars |
globalStatement | for imex as x make sct4.emptyReason = x |