This page is part of the Structured Data Capture FHIR IG (v4.0.0-ballot: STU 4 Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions
Page standards status: Trial-use | Maturity Level: 4 |
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- a fhir:StructureMap ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "SDOHCCHungerVitalSignMap"] ; # fhir:text [ fhir:status [ fhir:v "additional" ] ; fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <pre>/// url = "http://hl7.org/fhir/uv/sdc/StructureMap/SDOHCCHungerVitalSignMap"\n/// name = "SDOHCCHungerVitalSignMap"\n/// status = "active"\n/// title = "SDOHCC StructureMap HungerVitalSign"\n/// description = "A StructureMap instance that represents the resource that transforms a specific question and answer from the LOINC Hunger Vital Sign [HVS] questionnaire (LOINC code 88121-9) into a corresponding Observation (SDOHCC Observation response Hunger Vital Sign Q3 Example) and derived Condition (SDOHCC Condition Food Insecurity Example)."\n/// experimental = "true"\n\nmap "http://hl7.org/fhir/uv/sdc/StructureMap/SDOHCCHungerVitalSignMap" = "SDOHCCHungerVitalSignMap"\n\nuses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias questionnaireResponse as source\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias bundle as target\nuses "http://hl7.org/fhir/StructureDefinition/Observation" alias observation as target\nuses "http://hl7.org/fhir/StructureDefinition/Condition" alias sdohccCondition as target\nuses "http://hl7.org/fhir/StructureDefinition/Observation" alias sdohccObservation as target\n\ngroup sdohMapping(source src : questionnaireResponse, target bundle : Bundle) {\n //temporarily set id to human-readable id as example\n //src -> bundle.id = uuid();\n src -> bundle.id = 'SDOHCC-BundleHungerVitalSignExample' "bundleId";\n src -> bundle.type = 'transaction' "bundleType";\n\n //for each 'key' answer item in the questionnareResponse, create an Observation\n src.item as answerItem3 where linkId = '/88124-3' -> bundle.entry as entry, entry.resource = create('Observation') as observation3 then \n TransformObservation(src, answerItem3, observation3, entry); \n\n //create condition if answer to third question is "At Risk"\n src.item as answerItem4 where linkId = '/88124-3' and answer.value.code ='LA19952-3' -> bundle.entry as entry, entry.resource = create('Condition') as condition then\n TransformCondition(src, bundle, condition, entry);\n}\n\ngroup TransformObservation(source src: questionnaireResponse, source answerItem, target observation: Observation, target entry)\n{\n src -> entry.request as request then {\n src -> request.method = 'POST' "obsnRequestMethod";\n src -> request.url = 'Observation' "obsnRequestUrl";\n } "obsnEntryRequest";\n\n //temporarily set id to human-readable id as example\n //src -> observation.id = uuid() then\n // SetObservationFullUrl(observation, entry);\n src -> observation.id = 'SDOHCC-ObservationResponseHungerVitalSignQuestion3Example' then\n SetObservationFullUrl(observation, entry) "obsn3Id";\n\n src -> observation.meta = create('Meta') as newMeta then {\n src -> newMeta.profile = 'http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse' "obsnMetaProfile";\n } "obsnMeta";\n\n src -> observation.status = 'final' "obsnStatus";\n\n src -> observation.category = cc('http://terminology.hl7.org/CodeSystem/observation-category', 'social-history', 'Social History') "obsnCatSocialHist";\n src -> observation.category = cc('http://terminology.hl7.org/CodeSystem/observation-category', 'survey', 'Survey') "obsnCatSurvey";\n src -> observation.category = cc('http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes', 'food-insecurity', 'Food Insecurity') "obsnCatFoodInsecurity"; \n\n answerItem as i -> observation.code = cc('http://loinc.org', '88124-3') as code "obsn3Code";\n\n src.subject as qSubject -> observation.subject = create('Reference') as newReference then {\n qSubject.reference as qReference -> newReference.reference = qReference;\n qSubject.display as qDisplay -> newReference.display = qDisplay;\n };\n\n src.authored as authored -> observation.effective = authored, observation.issued = authored;\n\n answerItem.answer as answer -> observation.value = create('CodeableConcept') as newCC then {\n answer.value as coding -> newCC.coding = coding as newCoding;\n };\n\n src -> observation.derivedFrom = create('Reference') as newReference then {\n src.id as id -> newReference.reference = append('QuestionnaireResponse/', id);\n } "obsnDerivation";\n}\n\ngroup SetObservationFullUrl(source observation: Observation, target entry)\n{\n observation.id as id -> entry.fullUrl = append('http://hl7.org/fhir/us/sdoh-clinicalcare/Observation/', id);\n}\n\ngroup TransformCondition(source src: QuestionnaireResponse, source bundle: Bundle, target condition: Condition, target entry)\n{\n //temporarily set id to human-readable id as example\n //src -> condition.id = uuid() then\n src -> condition.id = 'SDOHCC-ConditionFoodInsecurityExample' then\n SetConditionFullUrl(condition, entry) "conditionId";\n \n src -> condition.meta = create('Meta') as newMeta then {\n src -> newMeta.profile = 'http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-Condition' "conditionMetaProfile";\n } "conditionMeta";\n\n src -> condition.clinicalStatus = cc('http://terminology.hl7.org/CodeSystem/condition-clinical', 'active', 'Active') "conditionClinicalStatus";\n src -> condition.verificationStatus = cc('http://terminology.hl7.org/CodeSystem/condition-ver-status', 'unconfirmed', 'Unconfirmed') "conditionVeriStatus";\n src -> condition.category = create('CodeableConcept') as newCC then {\n src -> newCC.coding = create('Coding') as newCoding then {\n src -> newCoding.system = 'http://hl7.org/fhir/us/core/CodeSystem/condition-category' "conditionCatCodingSystemHealthConcern";\n src -> newCoding.code = 'health-concern' "conditionCatCodingCodeHealthConcern";\n src -> newCoding.display = 'Health Concern' "conditionCatCodingDisplayHealthConcern";\n } "conditionCatCodingHealthConcern";\n } "conditionCatHealthConcern";\n\n //Add sdoh category\n src -> condition.category = cc('http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes', 'food-insecurity', 'Food Insecurity') "conditionCatFoodInsecurity";\n\n src -> condition.code = create('CodeableConcept') as newCodeCC then {\n src -> newCodeCC.coding = create('Coding') as newCoding then {\n src -> newCoding.system = 'http://snomed.info/sct' "conditionCodeCodingSystemFoodInsecurity";\n src -> newCoding.code = '733423003' "conditionCodeCodingCodeFoodInsecurity";\n src -> newCoding.display = 'Food insecurity' "conditionCodeCodingDisplayFoodInsecurity";\n } "conditionCodeCodingFoodInsecurity";\n src -> newCodeCC.coding = create('Coding') as newCoding2 then {\n src -> newCoding2.system = 'http://hl7.org/fhir/sid/icd-10-cm' "conditionCodeCodingSystemLackOfFood";\n src -> newCoding2.code = 'Z59.4' "conditionCodeCodingCodeLackOfFood";\n src -> newCoding2.display = 'Lack of adequate food' "conditionCodeCodingDisplayLackOfFood";\n } "conditionCodeCodingLackOfFood";\n } "conditionCode";\n \n src.authored as authored -> condition.onset = create('Period') as period,\n period.start = authored;\n\n bundle.entry as entries -> condition.evidence as evidence, evidence.detail = create('Reference') as detailReference then {\n entries.resource as obs3 where code.coding.code = '88124-3'-> detailReference.reference = reference(obs3); \n };\n\n src.subject as qSubject -> condition.subject = create('Reference') as newReference then {\n qSubject.reference as qReference -> newReference.reference = qReference;\n qSubject.display as qDisplay -> newReference.display = qDisplay;\n };\n\n src -> entry.request as request then {\n src -> request.method = 'POST' "conditionRequestMethod";\n src -> request.url = 'Condition' "conditionRequestUrl";\n } "conditionEntryRequest"; \n}\n\ngroup SetConditionFullUrl(source condition: Condition, target entry)\n{\n condition.id as id -> entry.fullUrl = append('http://hl7.org/fhir/us/sdoh-clinicalcare/Condition/', id);\n}</pre>\n </div>" ] ; # fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ; fhir:value [ fhir:v "fhir" ] ] ) ; # fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureMap/SDOHCCHungerVitalSignMap"^^xsd:anyURI] ; # fhir:identifier ( [ fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ; fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.40.17.43.5" ] ] ) ; # fhir:version [ fhir:v "4.0.0-ballot"] ; # fhir:name [ fhir:v "SDOHCCHungerVitalSignMap"] ; # fhir:status [ fhir:v "draft"] ; # fhir:date [ fhir:v "2024-12-17T01:55:34+00:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; # fhir:contact ( [ fhir:name [ fhir:v "HL7 International / FHIR Infrastructure" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ] ] ) ] [ ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ] ] ) ] ) ; # fhir:jurisdiction ( [ ( fhir:coding [ fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ; fhir:code [ fhir:v "001" ] ; fhir:display [ fhir:v "World" ] ] ) ] ) ; # fhir:structure ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse> ] ; fhir:mode [ fhir:v "source" ] ; fhir:alias [ fhir:v "questionnaireResponse" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ; fhir:mode [ fhir:v "target" ] ; fhir:alias [ fhir:v "bundle" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:mode [ fhir:v "target" ] ; fhir:alias [ fhir:v "observation" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Condition> ] ; fhir:mode [ fhir:v "target" ] ; fhir:alias [ fhir:v "sdohccCondition" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:mode [ fhir:v "target" ] ; fhir:alias [ fhir:v "sdohccObservation" ] ] ) ; # fhir:group ( [ fhir:name [ fhir:v "sdohMapping" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:type [ fhir:v "questionnaireResponse" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "bundle" ] ; fhir:type [ fhir:v "Bundle" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "bundleId" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SDOHCC-BundleHungerVitalSignExample" ] ] ) ] ) ] [ fhir:name [ fhir:v "bundleType" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "type" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "transaction" ] ] ) ] ) ] [ fhir:name [ fhir:v "item" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "answerItem3" ] ; fhir:condition [ fhir:v "linkId = '/88124-3'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "observation3" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "TransformObservation" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "answerItem3" ] [ fhir:v "observation3" ] [ fhir:v "entry" ] ) ] ) ] [ fhir:name [ fhir:v "item" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "answerItem4" ] ; fhir:condition [ fhir:v "(linkId = '/88124-3') and (answer.value.code = 'LA19952-3')" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "condition" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Condition" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "TransformCondition" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "bundle" ] [ fhir:v "condition" ] [ fhir:v "entry" ] ) ] ) ] ) ] [ fhir:name [ fhir:v "TransformObservation" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:type [ fhir:v "questionnaireResponse" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "answerItem" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "observation" ] ; fhir:type [ fhir:v "Observation" ] ; fhir:mode [ fhir:v "target" ] ] [ fhir:name [ fhir:v "entry" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "obsnEntryRequest" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "obsnRequestMethod" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] ) ] [ fhir:name [ fhir:v "obsnRequestUrl" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "obsn3Id" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SDOHCC-ObservationResponseHungerVitalSignQuestion3Example" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "SetObservationFullUrl" ] ; ( fhir:variable [ fhir:v "observation" ] [ fhir:v "entry" ] ) ] ) ] [ fhir:name [ fhir:v "obsnMeta" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "obsnMetaProfile" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "obsnStatus" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "final" ] ] ) ] ) ] [ fhir:name [ fhir:v "obsnCatSocialHist" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "category" ] ; fhir:transform [ fhir:v "cc" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://terminology.hl7.org/CodeSystem/observation-category" ] ] [ fhir:value [ fhir:v "social-history" ] ] [ fhir:value [ fhir:v "Social History" ] ] ) ] ) ] [ fhir:name [ fhir:v "obsnCatSurvey" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "category" ] ; fhir:transform [ fhir:v "cc" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://terminology.hl7.org/CodeSystem/observation-category" ] ] [ fhir:value [ fhir:v "survey" ] ] [ fhir:value [ fhir:v "Survey" ] ] ) ] ) ] [ fhir:name [ fhir:v "obsnCatFoodInsecurity" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "category" ] ; fhir:transform [ fhir:v "cc" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" ] ] [ fhir:value [ fhir:v "food-insecurity" ] ] [ fhir:value [ fhir:v "Food Insecurity" ] ] ) ] ) ] [ fhir:name [ fhir:v "obsn3Code" ] ; ( fhir:source [ fhir:context [ fhir:v "answerItem" ] ; fhir:variable [ fhir:v "i" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "code" ] ; fhir:transform [ fhir:v "cc" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://loinc.org" ] ] [ fhir:value [ fhir:v "88124-3" ] ] ) ] ) ] [ fhir:name [ fhir:v "subject" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "qSubject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "newReference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "qSubject" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "qReference" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newReference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "qReference" ] ] ) ] ) ] [ fhir:name [ fhir:v "display" ] ; ( fhir:source [ fhir:context [ fhir:v "qSubject" ] ; fhir:element [ fhir:v "display" ] ; fhir:variable [ fhir:v "qDisplay" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newReference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "qDisplay" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "authored" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "authored" ] ; fhir:variable [ fhir:v "authored" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "effective" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "authored" ] ] ) ] [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "authored" ] ] ) ] ) ] [ fhir:name [ fhir:v "answer" ] ; ( fhir:source [ fhir:context [ fhir:v "answerItem" ] ; fhir:element [ fhir:v "answer" ] ; fhir:variable [ fhir:v "answer" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "newCC" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "value" ] ; ( fhir:source [ fhir:context [ fhir:v "answer" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "coding" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCC" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "newCoding" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "coding" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "obsnDerivation" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "observation" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "derivedFrom" ] ; fhir:variable [ fhir:v "newReference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newReference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "QuestionnaireResponse/" ] ] [ fhir:value [ fhir:v "id" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "SetObservationFullUrl" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "observation" ] ; fhir:type [ fhir:v "Observation" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "entry" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id" ] ; ( fhir:source [ fhir:context [ fhir:v "observation" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "fullUrl" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/Observation/" ] ] [ fhir:value [ fhir:v "id" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "TransformCondition" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:type [ fhir:v "QuestionnaireResponse" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "bundle" ] ; fhir:type [ fhir:v "Bundle" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "condition" ] ; fhir:type [ fhir:v "Condition" ] ; fhir:mode [ fhir:v "target" ] ] [ fhir:name [ fhir:v "entry" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "conditionId" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "SDOHCC-ConditionFoodInsecurityExample" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "SetConditionFullUrl" ] ; ( fhir:variable [ fhir:v "condition" ] [ fhir:v "entry" ] ) ] ) ] [ fhir:name [ fhir:v "conditionMeta" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "conditionMetaProfile" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-Condition" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "conditionClinicalStatus" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "clinicalStatus" ] ; fhir:transform [ fhir:v "cc" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical" ] ] [ fhir:value [ fhir:v "active" ] ] [ fhir:value [ fhir:v "Active" ] ] ) ] ) ] [ fhir:name [ fhir:v "conditionVeriStatus" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "verificationStatus" ] ; fhir:transform [ fhir:v "cc" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-ver-status" ] ] [ fhir:value [ fhir:v "unconfirmed" ] ] [ fhir:value [ fhir:v "Unconfirmed" ] ] ) ] ) ] [ fhir:name [ fhir:v "conditionCatHealthConcern" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "category" ] ; fhir:variable [ fhir:v "newCC" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "conditionCatCodingHealthConcern" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCC" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "newCoding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "conditionCatCodingSystemHealthConcern" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCoding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/us/core/CodeSystem/condition-category" ] ] ) ] ) ] [ fhir:name [ fhir:v "conditionCatCodingCodeHealthConcern" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCoding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "health-concern" ] ] ) ] ) ] [ fhir:name [ fhir:v "conditionCatCodingDisplayHealthConcern" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCoding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Health Concern" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "conditionCatFoodInsecurity" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "category" ] ; fhir:transform [ fhir:v "cc" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes" ] ] [ fhir:value [ fhir:v "food-insecurity" ] ] [ fhir:value [ fhir:v "Food Insecurity" ] ] ) ] ) ] [ fhir:name [ fhir:v "conditionCode" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "newCodeCC" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "conditionCodeCodingFoodInsecurity" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCodeCC" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "newCoding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "conditionCodeCodingSystemFoodInsecurity" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCoding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://snomed.info/sct" ] ] ) ] ) ] [ fhir:name [ fhir:v "conditionCodeCodingCodeFoodInsecurity" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCoding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "733423003" ] ] ) ] ) ] [ fhir:name [ fhir:v "conditionCodeCodingDisplayFoodInsecurity" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCoding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Food insecurity" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "conditionCodeCodingLackOfFood" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCodeCC" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "newCoding2" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "conditionCodeCodingSystemLackOfFood" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCoding2" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/sid/icd-10-cm" ] ] ) ] ) ] [ fhir:name [ fhir:v "conditionCodeCodingCodeLackOfFood" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCoding2" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Z59.4" ] ] ) ] ) ] [ fhir:name [ fhir:v "conditionCodeCodingDisplayLackOfFood" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newCoding2" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Lack of adequate food" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "authored" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "authored" ] ; fhir:variable [ fhir:v "authored" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "onset" ] ; fhir:variable [ fhir:v "period" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Period" ] ] ) ] [ fhir:context [ fhir:v "period" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "start" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "authored" ] ] ) ] ) ] [ fhir:name [ fhir:v "entry" ] ; ( fhir:source [ fhir:context [ fhir:v "bundle" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entries" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "evidence" ] ; fhir:variable [ fhir:v "evidence" ] ] [ fhir:context [ fhir:v "evidence" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "detail" ] ; fhir:variable [ fhir:v "detailReference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "resource" ] ; ( fhir:source [ fhir:context [ fhir:v "entries" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "obs3" ] ; fhir:condition [ fhir:v "code.coding.code = '88124-3'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "detailReference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "reference" ] ; ( fhir:parameter [ fhir:value [ fhir:v "obs3" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "subject" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "qSubject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "condition" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "newReference" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Reference" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "reference" ] ; ( fhir:source [ fhir:context [ fhir:v "qSubject" ] ; fhir:element [ fhir:v "reference" ] ; fhir:variable [ fhir:v "qReference" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newReference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "reference" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "qReference" ] ] ) ] ) ] [ fhir:name [ fhir:v "display" ] ; ( fhir:source [ fhir:context [ fhir:v "qSubject" ] ; fhir:element [ fhir:v "display" ] ; fhir:variable [ fhir:v "qDisplay" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "newReference" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "display" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "qDisplay" ] ] ) ] ) ] ) ] [ fhir:name [ fhir:v "conditionEntryRequest" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "conditionRequestMethod" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] ) ] [ fhir:name [ fhir:v "conditionRequestUrl" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Condition" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "SetConditionFullUrl" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "condition" ] ; fhir:type [ fhir:v "Condition" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "entry" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id" ] ; ( fhir:source [ fhir:context [ fhir:v "condition" ] ; fhir:element [ fhir:v "id" ] ; fhir:variable [ fhir:v "id" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "fullUrl" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/Condition/" ] ] [ fhir:value [ fhir:v "id" ] ] ) ] ) ] ) ] ) . #
IG © 2022+ HL7 International / FHIR Infrastructure. Package hl7.fhir.uv.sdc#4.0.0-ballot based on FHIR 4.0.1. Generated 2024-12-17
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change