{ "description": null, "_filename": "StructureMap-SDOHCC-StructureMapPRAPARE.json", "package_name": "hl7.fhir.us.sdoh-clinicalcare", "date": "2021-08-05T20:07:39+00:00", "group": [ { "name": "sdohMapping", "rule": [ { "name": "rule-1", "source": [ { "context": "src" } ], "target": [ { "context": "bundle", "element": "id", "parameter": [ { "valueString": "SDOHCC-BundlePRAPAREExample" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-2", "source": [ { "context": "src" } ], "target": [ { "context": "bundle", "element": "type", "parameter": [ { "valueString": "transaction" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-3", "source": [ { "context": "src", "element": "item", "variable": "rootItem" } ], "target": [ { "context": "bundle", "element": "entry", "variable": "entry", "contextType": "variable" } ], "dependent": [ { "name": "rootContent", "variable": [ "src", "rootItem", "bundle" ] } ] }, { "name": "rule-4", "source": [ { "context": "src" } ], "target": [ { "context": "bundle", "element": "entry", "variable": "entry", "contextType": "variable" }, { "context": "entry", "element": "resource", "variable": "groupObservation", "parameter": [ { "valueString": "sdohccObservation" } ], "transform": "create", "contextType": "variable" } ], "dependent": [ { "name": "TransformGroupObservation", "variable": [ "src", "bundle", "groupObservation", "entry" ] } ] } ], "input": [ { "mode": "source", "name": "src", "type": "questionnaireResponse" }, { "mode": "target", "name": "bundle", "type": "Bundle" } ], "typeMode": "none" }, { "name": "rootContent", "rule": [ { "name": "rule-5", "source": [ { "context": "rootItem", "element": "item", "variable": "groupItem" } ], "target": [ { "context": "bundle", "element": "entry", "variable": "entry", "contextType": "variable" } ], "dependent": [ { "name": "groupContent", "variable": [ "qResponse", "groupItem", "bundle" ] } ] } ], "input": [ { "mode": "source", "name": "qResponse", "type": "questionnaireResponse" }, { "mode": "source", "name": "rootItem", "type": "Any" }, { "mode": "target", "name": "bundle", "type": "Any" } ], "typeMode": "none" }, { "name": "groupContent", "rule": [ { "name": "rule-6", "source": [ { "context": "groupItem", "element": "item", "variable": "questionItem" } ], "target": [ { "context": "bundle", "element": "entry", "variable": "entry", "contextType": "variable" }, { "context": "entry", "element": "resource", "variable": "observation", "parameter": [ { "valueString": "sdohccObservation" } ], "transform": "create", "contextType": "variable" } ], "dependent": [ { "name": "TransformObservation", "variable": [ "qResponse", "questionItem", "bundle", "observation", "entry", "bundle" ] } ] } ], "input": [ { "mode": "source", "name": "qResponse", "type": "questionnaireResponse" }, { "mode": "source", "name": "groupItem", "type": "Any" }, { "mode": "target", "name": "bundle", "type": "Any" } ], "typeMode": "none" }, { "name": "TransformObservation", "rule": [ { "name": "rule-7", "source": [ { "context": "src" } ], "target": [ { "context": "observation", "element": "id", "transform": "uuid", "contextType": "variable" } ], "dependent": [ { "name": "SetObservationFullUrl", "variable": [ "observation", "entry" ] } ] }, { "name": "rule-8", "source": [ { "context": "src" } ], "target": [ { "context": "observation", "element": "status", "parameter": [ { "valueString": "final" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-9", "source": [ { "context": "src" } ], "target": [ { "context": "observation", "element": "category", "parameter": [ { "valueString": "http://terminology.hl7.org/CodeSystem/observation-category" }, { "valueString": "social-history" }, { "valueString": "Social History" } ], "transform": "cc", "contextType": "variable" } ] }, { "name": "rule-10", "source": [ { "context": "src" } ], "target": [ { "context": "observation", "element": "category", "parameter": [ { "valueString": "http://terminology.hl7.org/CodeSystem/observation-category" }, { "valueString": "survey" }, { "valueString": "Survey" } ], "transform": "cc", "contextType": "variable" } ] }, { "name": "rule-11", "rule": [ { "name": "rule-12", "source": [ { "context": "src" } ], "target": [ { "context": "newMeta", "element": "profile", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "observation", "element": "meta", "variable": "newMeta", "parameter": [ { "valueString": "Meta" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-13", "source": [ { "context": "src", "element": "authored", "variable": "authored" } ], "target": [ { "context": "observation", "element": "issued", "parameter": [ { "valueId": "authored" } ], "transform": "copy", "contextType": "variable" }, { "context": "observation", "element": "effective", "parameter": [ { "valueId": "authored" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-14", "rule": [ { "name": "rule-15", "source": [ { "context": "qSubject", "element": "reference", "variable": "qReference" } ], "target": [ { "context": "newReference", "element": "reference", "parameter": [ { "valueId": "qReference" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-16", "source": [ { "context": "qSubject", "element": "display", "variable": "qDisplay" } ], "target": [ { "context": "newReference", "element": "display", "parameter": [ { "valueId": "qDisplay" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src", "element": "subject", "variable": "qSubject" } ], "target": [ { "context": "observation", "element": "subject", "variable": "newReference", "parameter": [ { "valueString": "Reference" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-17", "rule": [ { "name": "rule-18", "source": [ { "context": "qSubject", "element": "reference", "variable": "qReference" } ], "target": [ { "context": "newReference", "element": "reference", "parameter": [ { "valueId": "qReference" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-19", "source": [ { "context": "qSubject", "element": "display", "variable": "qDisplay" } ], "target": [ { "context": "newReference", "element": "display", "parameter": [ { "valueId": "qDisplay" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src", "element": "subject", "variable": "qSubject" } ], "target": [ { "context": "observation", "element": "performer", "variable": "newReference", "parameter": [ { "valueString": "Reference" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-20", "rule": [ { "name": "rule-21", "source": [ { "context": "id" } ], "target": [ { "context": "newReference", "element": "reference", "parameter": [ { "valueString": "QuestionnaireResponse/" }, { "valueId": "id" } ], "transform": "append", "contextType": "variable" } ] } ], "source": [ { "context": "src", "element": "id", "variable": "id" } ], "target": [ { "context": "observation", "element": "derivedFrom", "variable": "newReference", "parameter": [ { "valueString": "Reference" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-22", "source": [ { "context": "answerItem", "condition": "linkId = '/93043-8/56051-6'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "56051-6" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-23", "source": [ { "context": "answerItem", "condition": "linkId = '/93043-8/32624-9'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "32624-9" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValuesToComponents", "variable": [ "answerItem", "observation", "observation" ] } ] }, { "name": "rule-24", "source": [ { "context": "answerItem", "condition": "linkId = '/93043-8/93035-4'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "93035-4" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-25", "rule": [ { "name": "rule-26", "rule": [ { "name": "rule-27", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-28", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "sdoh-category-unspecified" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-29", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "SDOH Category Unspecified" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93043-8/93035-4'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-30", "source": [ { "context": "answerItem", "condition": "linkId = '/93043-8/93034-7'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "93034-7" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-31", "rule": [ { "name": "rule-32", "rule": [ { "name": "rule-33", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-34", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "veteran-status" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-35", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Veteran Status" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93043-8/93034-7'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-36", "source": [ { "context": "answerItem", "condition": "linkId = '/93043-8/54899-0'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "54899-0" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-37", "rule": [ { "name": "rule-38", "rule": [ { "name": "rule-39", "source": [ { "context": "answer", "element": "value", "variable": "vs" } ], "target": [ { "context": "newQty", "element": "value", "parameter": [ { "valueId": "vs" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-40", "source": [ { "context": "src" } ], "target": [ { "context": "newQty", "element": "unit", "parameter": [ { "valueString": "{#}" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-41", "source": [ { "context": "src" } ], "target": [ { "context": "newQty", "element": "system", "parameter": [ { "valueString": "http://unitsofmeasure.org" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-42", "source": [ { "context": "src" } ], "target": [ { "context": "newQty", "element": "code", "parameter": [ { "valueString": "{#}" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "element": "answer", "variable": "answer" } ], "target": [ { "context": "observation", "element": "value", "variable": "newQty", "parameter": [ { "valueString": "Quantity" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93042-0/63512-8'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "63512-8" } ], "transform": "cc", "contextType": "variable" } ] }, { "name": "rule-43", "source": [ { "context": "answerItem", "condition": "linkId = '/93042-0/71802-3'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "71802-3" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-44", "rule": [ { "name": "rule-45", "rule": [ { "name": "rule-46", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-47", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "homelessness" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-48", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Homelessness" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93042-0/71802-3'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-49", "source": [ { "context": "answerItem", "condition": "linkId = '/93042-0/93033-9'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "93033-9" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-50", "rule": [ { "name": "rule-51", "rule": [ { "name": "rule-52", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-53", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "housing-instability" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-54", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Housing Instability" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93042-0/93033-9'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-55", "source": [ { "context": "answerItem", "condition": "linkId = '/93042-0/56799-0'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "56799-0" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValue", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-56", "source": [ { "context": "answerItem", "condition": "linkId = '/93041-2/82589-3'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "82589-3" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-57", "rule": [ { "name": "rule-58", "rule": [ { "name": "rule-59", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-60", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "educational-attainment" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-61", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Educational Attainment" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93041-2/82589-3'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-62", "source": [ { "context": "answerItem", "condition": "linkId = '/93041-2/67875-5'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "67875-5" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-63", "rule": [ { "name": "rule-64", "rule": [ { "name": "rule-65", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-66", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "employment-status" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-67", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Employment Status" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93041-2/67875-5'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-68", "source": [ { "context": "answerItem", "condition": "linkId = '/93041-2/76437-3'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "76437-3" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-69", "rule": [ { "name": "rule-70", "rule": [ { "name": "rule-71", "source": [ { "context": "answer", "element": "value", "variable": "vs" } ], "target": [ { "context": "newQty", "element": "value", "parameter": [ { "valueId": "vs" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-72", "source": [ { "context": "src" } ], "target": [ { "context": "newQty", "element": "unit", "parameter": [ { "valueString": "/a" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-73", "source": [ { "context": "src" } ], "target": [ { "context": "newQty", "element": "system", "parameter": [ { "valueString": "http://unitsofmeasure.org" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-74", "source": [ { "context": "src" } ], "target": [ { "context": "newQty", "element": "code", "parameter": [ { "valueString": "/a" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "element": "answer", "variable": "answer" } ], "target": [ { "context": "observation", "element": "value", "variable": "newQty", "parameter": [ { "valueString": "Quantity" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93041-2/63586-2'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "63586-2" } ], "transform": "cc", "contextType": "variable" } ] }, { "name": "rule-75", "source": [ { "context": "answerItem", "condition": "linkId = '/93041-2/93031-3'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "93031-3" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValuesToComponents", "variable": [ "answerItem", "observation", "observation" ] } ] }, { "name": "rule-76", "rule": [ { "name": "rule-77", "rule": [ { "name": "rule-78", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-79", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "sdoh-category-unspecified" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-80", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "SDOH Category Unspecified" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93041-2/93031-3'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-81", "source": [ { "context": "answerItem", "condition": "linkId = '/93041-2/93030-5'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "93030-5" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-82", "rule": [ { "name": "rule-83", "rule": [ { "name": "rule-84", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-85", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "transportation-insecurity" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-86", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Transportation Insecurity" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93041-2/93030-5'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-87", "source": [ { "context": "answerItem", "condition": "linkId = '/93040-4/93029-7'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "93029-7" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-88", "rule": [ { "name": "rule-89", "rule": [ { "name": "rule-90", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-91", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "sdoh-category-unspecified" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-92", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "SDOH Category Unspecified" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93040-4/93029-7'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-93", "source": [ { "context": "answerItem", "condition": "linkId = '/93040-4/93038-8'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "93038-8" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-94", "rule": [ { "name": "rule-95", "rule": [ { "name": "rule-96", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-97", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "stress" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-98", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Stress" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93040-4/93038-8'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-99", "source": [ { "context": "answerItem", "condition": "linkId = '/93039-6/93028-9'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "93028-9" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-100", "rule": [ { "name": "rule-101", "rule": [ { "name": "rule-102", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-103", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "sdoh-category-unspecified" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-104", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "SDOH Category Unspecified" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93039-6/93028-9'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-105", "source": [ { "context": "answerItem", "condition": "linkId = '/93039-6/93027-1'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "93027-1" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-106", "rule": [ { "name": "rule-107", "rule": [ { "name": "rule-108", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-109", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "sdoh-category-unspecified" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-110", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "SDOH Category Unspecified" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93039-6/93027-1'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-111", "source": [ { "context": "answerItem", "condition": "linkId = '/93039-6/93026-3'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "93026-3" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-112", "source": [ { "context": "answerItem", "condition": "linkId = '/93039-6/76501-6'" } ], "target": [ { "context": "observation", "element": "code", "variable": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "76501-6" } ], "transform": "cc", "contextType": "variable" } ], "dependent": [ { "name": "SetValueCodeableConcept", "variable": [ "answerItem", "observation" ] } ] }, { "name": "rule-113", "rule": [ { "name": "rule-114", "rule": [ { "name": "rule-115", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-116", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "sdoh-category-unspecified" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-117", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "SDOH Category Unspecified" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "condition": "linkId = '/93039-6/76501-6'" } ], "target": [ { "context": "observation", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-118", "source": [ { "context": "answerItem", "condition": "linkId = '/93042-0/71802-3' and answer.valueCoding.code ='LA30190-5'" } ], "target": [ { "context": "bundle", "element": "entry", "variable": "entry", "contextType": "variable" }, { "context": "entry", "element": "resource", "variable": "condition", "parameter": [ { "valueString": "sdohccCondition" } ], "transform": "create", "contextType": "variable" } ], "dependent": [ { "name": "TransformCondition", "variable": [ "src", "bundle", "condition", "entry" ] }, { "name": "SetConditionCodeAndEvidence1", "variable": [ "src", "bundle", "condition" ] } ] }, { "name": "rule-119", "source": [ { "context": "answerItem", "condition": "linkId = '/93041-2/67875-5' and answer.valueCoding.code ='LA17956-6'" } ], "target": [ { "context": "bundle", "element": "entry", "variable": "entry", "contextType": "variable" }, { "context": "entry", "element": "resource", "variable": "condition", "parameter": [ { "valueString": "sdohccCondition" } ], "transform": "create", "contextType": "variable" } ], "dependent": [ { "name": "TransformCondition", "variable": [ "src", "bundle", "condition", "entry" ] }, { "name": "SetConditionCodeAndEvidence2", "variable": [ "src", "bundle", "condition" ] } ] } ], "input": [ { "mode": "source", "name": "src", "type": "questionnaireResponse" }, { "mode": "source", "name": "answerItem", "type": "Any" }, { "mode": "source", "name": "bundle", "type": "Any" }, { "mode": "target", "name": "observation", "type": "sdohccObservation" }, { "mode": "target", "name": "entry", "type": "Any" }, { "mode": "target", "name": "bundle", "type": "Any" } ], "typeMode": "none" }, { "name": "SetValue", "rule": [ { "name": "rule-120", "rule": [ { "name": "rule-121", "source": [ { "context": "answer", "element": "value", "variable": "vs" } ], "target": [ { "context": "observation", "element": "value", "parameter": [ { "valueId": "vs" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "element": "answer", "variable": "answer" } ], "target": [ { "context": "observation", "element": "id", "variable": "id", "contextType": "variable" } ] } ], "input": [ { "mode": "source", "name": "answerItem", "type": "Any" }, { "mode": "target", "name": "observation", "type": "Any" } ], "typeMode": "none" }, { "name": "SetValueCodeableConcept", "rule": [ { "name": "rule-122", "rule": [ { "name": "rule-123", "source": [ { "context": "answer", "element": "valueCoding", "variable": "coding" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueId": "coding" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src", "element": "answer", "variable": "answer" } ], "target": [ { "context": "observation", "element": "value", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] } ], "input": [ { "mode": "source", "name": "src", "type": "Any" }, { "mode": "target", "name": "observation", "type": "Any" } ], "typeMode": "none" }, { "name": "SetValuesToComponents", "rule": [ { "name": "rule-124", "rule": [ { "name": "rule-125", "source": [ { "context": "answer", "element": "valueCoding", "variable": "coding" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueId": "coding" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-126", "source": [ { "context": "srcObservation", "element": "code", "variable": "code" } ], "target": [ { "context": "newComponent", "element": "code", "parameter": [ { "valueId": "code" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "answerItem", "element": "answer", "variable": "answer" } ], "target": [ { "context": "observation", "element": "component", "variable": "newComponent", "contextType": "variable" }, { "context": "newComponent", "element": "value", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] } ], "input": [ { "mode": "source", "name": "answerItem", "type": "Any" }, { "mode": "source", "name": "srcObservation", "type": "Any" }, { "mode": "target", "name": "observation", "type": "Any" } ], "typeMode": "none" }, { "name": "SetObservationFullUrl", "rule": [ { "name": "rule-127", "source": [ { "context": "observation", "element": "id", "variable": "id" } ], "target": [ { "context": "entry", "element": "fullUrl", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/Observation/" }, { "valueId": "id" } ], "transform": "append", "contextType": "variable" } ] } ], "input": [ { "mode": "source", "name": "observation", "type": "Observation" }, { "mode": "target", "name": "entry", "type": "Any" } ], "typeMode": "none" }, { "name": "TransformCondition", "rule": [ { "name": "rule-128", "source": [ { "context": "src" } ], "target": [ { "context": "condition", "element": "id", "transform": "uuid", "contextType": "variable" } ], "dependent": [ { "name": "SetConditionFullUrl", "variable": [ "condition", "entry" ] } ] }, { "name": "rule-129", "source": [ { "context": "src" } ], "target": [ { "context": "condition", "element": "id", "transform": "uuid", "contextType": "variable" } ], "dependent": [ { "name": "SetConditionFullUrl", "variable": [ "condition", "entry" ] } ] }, { "name": "rule-130", "rule": [ { "name": "rule-131", "source": [ { "context": "src" } ], "target": [ { "context": "newMeta", "element": "profile", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-Condition" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "condition", "element": "meta", "variable": "newMeta", "parameter": [ { "valueString": "Meta" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-132", "source": [ { "context": "src" } ], "target": [ { "context": "condition", "element": "clinicalStatus", "parameter": [ { "valueString": "http://terminology.hl7.org/CodeSystem/condition-clinical" }, { "valueString": "active" }, { "valueString": "Active" } ], "transform": "cc", "contextType": "variable" } ] }, { "name": "rule-133", "source": [ { "context": "src" } ], "target": [ { "context": "condition", "element": "verificationStatus", "parameter": [ { "valueString": "http://terminology.hl7.org/CodeSystem/condition-ver-status" }, { "valueString": "unconfirmed" }, { "valueString": "Unconfirmed" } ], "transform": "cc", "contextType": "variable" } ] }, { "name": "rule-134", "rule": [ { "name": "rule-135", "rule": [ { "name": "rule-136", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/core/CodeSystem/condition-category" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-137", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "health-concern" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-138", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Health Concern" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "condition", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-139", "source": [ { "context": "src", "element": "authored", "variable": "authored" } ], "target": [ { "context": "condition", "element": "onset", "variable": "period", "parameter": [ { "valueString": "Period" } ], "transform": "create", "contextType": "variable" }, { "context": "period", "element": "start", "parameter": [ { "valueId": "authored" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-140", "rule": [ { "name": "rule-141", "source": [ { "context": "qSubject", "element": "reference", "variable": "qReference" } ], "target": [ { "context": "newReference", "element": "reference", "parameter": [ { "valueId": "qReference" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-142", "source": [ { "context": "qSubject", "element": "display", "variable": "qDisplay" } ], "target": [ { "context": "newReference", "element": "display", "parameter": [ { "valueId": "qDisplay" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src", "element": "subject", "variable": "qSubject" } ], "target": [ { "context": "condition", "element": "subject", "variable": "newReference", "parameter": [ { "valueString": "Reference" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-143", "rule": [ { "name": "rule-144", "source": [ { "context": "qSubject", "element": "reference", "variable": "qReference" } ], "target": [ { "context": "newReference", "element": "reference", "parameter": [ { "valueId": "qReference" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-145", "source": [ { "context": "qSubject", "element": "display", "variable": "qDisplay" } ], "target": [ { "context": "newReference", "element": "display", "parameter": [ { "valueId": "qDisplay" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src", "element": "subject", "variable": "qSubject" } ], "target": [ { "context": "condition", "element": "asserter", "variable": "newReference", "parameter": [ { "valueString": "Reference" } ], "transform": "create", "contextType": "variable" } ] } ], "input": [ { "mode": "source", "name": "src", "type": "questionnaireResponse" }, { "mode": "source", "name": "bundle", "type": "Any" }, { "mode": "target", "name": "condition", "type": "sdohccCondition" }, { "mode": "target", "name": "entry", "type": "Any" } ], "typeMode": "none" }, { "name": "SetConditionFullUrl", "rule": [ { "name": "rule-146", "source": [ { "context": "condition", "element": "id", "variable": "id" } ], "target": [ { "context": "entry", "element": "fullUrl", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/Condition/" }, { "valueId": "id" } ], "transform": "append", "contextType": "variable" } ] } ], "input": [ { "mode": "source", "name": "condition", "type": "sdohccCondition" }, { "mode": "target", "name": "entry", "type": "Any" } ], "typeMode": "none" }, { "name": "SetConditionCodeAndEvidence1", "rule": [ { "name": "rule-147", "rule": [ { "name": "rule-148", "rule": [ { "name": "rule-149", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://snomed.info/sct" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-150", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "32911000" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-151", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Homeless" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCodeCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-152", "rule": [ { "name": "rule-153", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding2", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/sid/icd-10-cm" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-154", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding2", "element": "code", "parameter": [ { "valueString": "Z59.0" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-155", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding2", "element": "display", "parameter": [ { "valueString": "Homelessness" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCodeCC", "element": "coding", "variable": "newCoding2", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "condition", "element": "code", "variable": "newCodeCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-156", "rule": [ { "name": "rule-157", "rule": [ { "name": "rule-158", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-159", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "homelessness" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-160", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Homelessness" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "condition", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-161", "rule": [ { "name": "rule-162", "source": [ { "context": "entries", "element": "resource", "variable": "obs", "condition": "code.coding.code = '71802-3'" } ], "target": [ { "context": "detailReference", "element": "reference", "parameter": [ { "valueId": "obs" } ], "transform": "reference", "contextType": "variable" } ] } ], "source": [ { "context": "bundle", "element": "entry", "variable": "entries" } ], "target": [ { "context": "condition", "element": "evidence", "variable": "evidence", "contextType": "variable" }, { "context": "evidence", "element": "detail", "variable": "detailReference", "parameter": [ { "valueString": "Reference" } ], "transform": "create", "contextType": "variable" } ] } ], "input": [ { "mode": "source", "name": "src", "type": "questionnaireResponse" }, { "mode": "source", "name": "bundle", "type": "Any" }, { "mode": "target", "name": "condition", "type": "Any" } ], "typeMode": "none" }, { "name": "SetConditionCodeAndEvidence2", "rule": [ { "name": "rule-163", "rule": [ { "name": "rule-164", "rule": [ { "name": "rule-165", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://snomed.info/sct" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-166", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "73438004" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-167", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Unemployed" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCodeCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-168", "rule": [ { "name": "rule-169", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding2", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/sid/icd-10-cm" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-170", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding2", "element": "code", "parameter": [ { "valueString": "Z56.0" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-171", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding2", "element": "display", "parameter": [ { "valueString": "Unemployment, unspecified" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCodeCC", "element": "coding", "variable": "newCoding2", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "condition", "element": "code", "variable": "newCodeCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-172", "rule": [ { "name": "rule-173", "rule": [ { "name": "rule-174", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "system", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-175", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "code", "parameter": [ { "valueString": "employment-status" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-176", "source": [ { "context": "src" } ], "target": [ { "context": "newCoding", "element": "display", "parameter": [ { "valueString": "Employment Status" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "newCC", "element": "coding", "variable": "newCoding", "parameter": [ { "valueString": "Coding" } ], "transform": "create", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "condition", "element": "category", "variable": "newCC", "parameter": [ { "valueString": "CodeableConcept" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-177", "rule": [ { "name": "rule-178", "source": [ { "context": "entries", "element": "resource", "variable": "obs", "condition": "code.coding.code = '67875-5'" } ], "target": [ { "context": "detailReference", "element": "reference", "parameter": [ { "valueId": "obs" } ], "transform": "reference", "contextType": "variable" } ] } ], "source": [ { "context": "bundle", "element": "entry", "variable": "entries" } ], "target": [ { "context": "condition", "element": "evidence", "variable": "evidence", "contextType": "variable" }, { "context": "evidence", "element": "detail", "variable": "detailReference", "parameter": [ { "valueString": "Reference" } ], "transform": "create", "contextType": "variable" } ] } ], "input": [ { "mode": "source", "name": "src", "type": "questionnaireResponse" }, { "mode": "source", "name": "bundle", "type": "Any" }, { "mode": "target", "name": "condition", "type": "Any" } ], "typeMode": "none" }, { "name": "TransformGroupObservation", "rule": [ { "name": "rule-179", "source": [ { "context": "src" } ], "target": [ { "context": "groupObservation", "element": "id", "transform": "uuid", "contextType": "variable" } ], "dependent": [ { "name": "SetObservationFullUrl", "variable": [ "groupObservation", "entry" ] } ] }, { "name": "rule-180", "source": [ { "context": "src" } ], "target": [ { "context": "groupObservation", "element": "status", "parameter": [ { "valueString": "final" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-181", "source": [ { "context": "src" } ], "target": [ { "context": "groupObservation", "element": "category", "parameter": [ { "valueString": "http://terminology.hl7.org/CodeSystem/observation-category" }, { "valueString": "social-history" }, { "valueString": "Social History" } ], "transform": "cc", "contextType": "variable" } ] }, { "name": "rule-182", "source": [ { "context": "src" } ], "target": [ { "context": "groupObservation", "element": "category", "parameter": [ { "valueString": "http://terminology.hl7.org/CodeSystem/observation-category" }, { "valueString": "survey" }, { "valueString": "Survey" } ], "transform": "cc", "contextType": "variable" } ] }, { "name": "rule-183", "rule": [ { "name": "rule-184", "source": [ { "context": "src" } ], "target": [ { "context": "newMeta", "element": "profile", "parameter": [ { "valueString": "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src" } ], "target": [ { "context": "groupObservation", "element": "meta", "variable": "newMeta", "parameter": [ { "valueString": "Meta" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-185", "source": [ { "context": "src", "element": "authored", "variable": "authored" } ], "target": [ { "context": "groupObservation", "element": "effective", "parameter": [ { "valueId": "authored" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-186", "rule": [ { "name": "rule-187", "source": [ { "context": "qSubject", "element": "reference", "variable": "qReference" } ], "target": [ { "context": "newReference", "element": "reference", "parameter": [ { "valueId": "qReference" } ], "transform": "copy", "contextType": "variable" } ] }, { "name": "rule-188", "source": [ { "context": "qSubject", "element": "display", "variable": "qDisplay" } ], "target": [ { "context": "newReference", "element": "display", "parameter": [ { "valueId": "qDisplay" } ], "transform": "copy", "contextType": "variable" } ] } ], "source": [ { "context": "src", "element": "subject", "variable": "qSubject" } ], "target": [ { "context": "groupObservation", "element": "subject", "variable": "newReference", "parameter": [ { "valueString": "Reference" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-189", "source": [ { "context": "src" } ], "target": [ { "context": "groupObservation", "element": "code", "parameter": [ { "valueString": "http://loinc.org" }, { "valueString": "93025-5" } ], "transform": "cc", "contextType": "variable" } ] }, { "name": "rule-190", "rule": [ { "name": "rule-191", "source": [ { "context": "entries", "element": "resource", "variable": "obs", "condition": "status.exists() and hasMember.exists().not()" } ], "target": [ { "context": "df", "element": "reference", "parameter": [ { "valueId": "obs" } ], "transform": "reference", "contextType": "variable" } ] } ], "source": [ { "context": "bundle", "element": "entry", "variable": "entries" } ], "target": [ { "context": "groupObservation", "element": "hasMember", "variable": "df", "parameter": [ { "valueString": "Reference" } ], "transform": "create", "contextType": "variable" } ] }, { "name": "rule-192", "rule": [ { "name": "rule-193", "source": [ { "context": "id" } ], "target": [ { "context": "newReference", "element": "reference", "parameter": [ { "valueString": "QuestionnaireResponse/" }, { "valueId": "id" } ], "transform": "append", "contextType": "variable" } ] } ], "source": [ { "context": "src", "element": "id", "variable": "id" } ], "target": [ { "context": "groupObservation", "element": "derivedFrom", "variable": "newReference", "parameter": [ { "valueString": "Reference" } ], "transform": "create", "contextType": "variable" } ] } ], "input": [ { "mode": "source", "name": "src", "type": "questionnaireResponse" }, { "mode": "source", "name": "bundle", "type": "Bundle" }, { "mode": "target", "name": "groupObservation", "type": "Observation" }, { "mode": "target", "name": "entry", "type": "Any" } ], "typeMode": "none" } ], "meta": { "source": "#FLTN6h4LHljBb9Hk", "versionId": "2", "lastUpdated": "2021-06-28T17:12:24.937+00:00" }, "publisher": "HL7 International - Patient Care WG", "jurisdiction": [ { "coding": [ { "code": "US", "system": "urn:iso:std:iso:3166" } ] } ], "name": "SDOHCCStructureMapPRAPARE", "type": null, "experimental": "false", "resourceType": "StructureMap", "title": "SDOHCC StructureMap PRAPARE", "package_version": "1.0.0", "structure": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse", "mode": "source", "alias": "questionnaireResponse" }, { "url": "http://hl7.org/fhir/StructureDefinition/Bundle", "mode": "target" }, { "url": "http://hl7.org/fhir/StructureDefinition/Observation", "mode": "target" }, { "url": "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-Condition", "mode": "target", "alias": "sdohccCondition" }, { "url": "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationAssessment", "mode": "target", "alias": "sdohccObservation" } ], "status": "draft", "id": "f8fbb6d7-f7e2-489c-8635-96fd02dacf6d", "kind": null, "url": "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureMap/SDOHCC-StructureMapPRAPARE", "version": "1.0.0", "contact": [ { "name": "HL7 International - Patient Care", "telecom": [ { "value": "http://www.hl7.org/Special/committees/patientcare", "system": "url" } ] } ] }