0.4.4 - ci-build
StandardPatientHealthRecordIG - Local Development build (v0.4.4). See the Directory of published versions
Draft as of 2023-03-03 |
{
"resourceType" : "StructureMap",
"id" : "HKCategorySamplePregnancyToObservation",
"text" : {
"status" : "additional",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre>map "https://open-health-manager.github.io/standard-patient-health-record-ig/StructureMap/HKCategorySamplePregnancyToObservation" = "HKCategorySamplePregnancyToObservation"\n\nuses "https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-healthkit-sample" alias HKCategorySamplePregnancy as source\n\nuses "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancystatus" alias UsCoreObservationPregnancyStatus as target\n\ngroup HKCategorySamplePregnancyToObservation ( \n source sample : HKCategorySamplePregnancy\n target observation : UsCoreObservationPregnancyStatus\n) {\n sample -> observation.status = "final" "set status";\n sample -> observation.category as category, category.coding as coding then {\n sample -> coding.system = "http://terminology.hl7.org/CodeSystem/observation-category" "set category code system";\n sample -> coding.code = "social-history" "set category code";\n } "set category";\n sample -> observation.code as code, code.coding as coding then {\n sample -> coding.system = "http://loinc.org" "set code system";\n sample -> coding.code = "82810-3" "set code";\n } "set code";\n sample.startDate as startDate -> observation.effectiveDateTime = startDate "startDate to effectiveDateTime";\n sample -> observation.valueCodeableConcept as value, value.coding as coding then {\n sample -> coding.system = "http://snomed.info/sct" "set value system";\n sample -> coding.code = "77386006" "set value";\n } "set valueCodeableConcept";\n}</pre></div>"
},
"url" : "https://open-health-manager.github.io/standard-patient-health-record-ig/StructureMap/HKCategorySamplePregnancyToObservation",
"version" : "0.4.4",
"name" : "HKCategorySamplePregnancyToObservation",
"status" : "draft",
"date" : "2023-03-03T21:03:08+00:00",
"publisher" : "MITRE",
"contact" : [
{
"name" : "MITRE",
"telecom" : [
{
"system" : "url",
"value" : "https://open-health-manager.github.io/standard-patient-health-record-ig"
}
]
}
],
"structure" : [
{
"url" : "https://open-health-manager.github.io/standard-patient-health-record-ig/StructureDefinition/apple-healthkit-sample",
"mode" : "source",
"alias" : "HKCategorySamplePregnancy"
},
{
"url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancystatus",
"mode" : "target",
"alias" : "UsCoreObservationPregnancyStatus"
}
],
"group" : [
{
"name" : "HKCategorySamplePregnancyToObservation",
"typeMode" : "none",
"input" : [
{
"name" : "sample",
"type" : "HKCategorySamplePregnancy",
"mode" : "source"
},
{
"name" : "observation",
"type" : "UsCoreObservationPregnancyStatus",
"mode" : "target"
}
],
"rule" : [
{
"name" : "set status",
"source" : [
{
"context" : "sample"
}
],
"target" : [
{
"context" : "observation",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
},
{
"name" : "set category",
"source" : [
{
"context" : "sample"
}
],
"target" : [
{
"context" : "observation",
"contextType" : "variable",
"element" : "category",
"variable" : "category"
},
{
"context" : "category",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding"
}
],
"rule" : [
{
"name" : "set category code system",
"source" : [
{
"context" : "sample"
}
],
"target" : [
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://terminology.hl7.org/CodeSystem/observation-category"
}
]
}
]
},
{
"name" : "set category code",
"source" : [
{
"context" : "sample"
}
],
"target" : [
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "social-history"
}
]
}
]
}
]
},
{
"name" : "set code",
"source" : [
{
"context" : "sample"
}
],
"target" : [
{
"context" : "observation",
"contextType" : "variable",
"element" : "code",
"variable" : "code"
},
{
"context" : "code",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding"
}
],
"rule" : [
{
"name" : "set code system",
"source" : [
{
"context" : "sample"
}
],
"target" : [
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://loinc.org"
}
]
}
]
},
{
"name" : "set code",
"source" : [
{
"context" : "sample"
}
],
"target" : [
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "82810-3"
}
]
}
]
}
]
},
{
"name" : "startDate to effectiveDateTime",
"source" : [
{
"context" : "sample",
"element" : "startDate",
"variable" : "startDate"
}
],
"target" : [
{
"context" : "observation",
"contextType" : "variable",
"element" : "effectiveDateTime",
"transform" : "copy",
"parameter" : [
{
"valueId" : "startDate"
}
]
}
]
},
{
"name" : "set valueCodeableConcept",
"source" : [
{
"context" : "sample"
}
],
"target" : [
{
"context" : "observation",
"contextType" : "variable",
"element" : "valueCodeableConcept",
"variable" : "value"
},
{
"context" : "value",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding"
}
],
"rule" : [
{
"name" : "set value system",
"source" : [
{
"context" : "sample"
}
],
"target" : [
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://snomed.info/sct"
}
]
}
]
},
{
"name" : "set value",
"source" : [
{
"context" : "sample"
}
],
"target" : [
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "77386006"
}
]
}
]
}
]
}
]
}
]
}
IG © 2022+ MITRE. Package StandardPatientHealthRecordIG#0.4.4 based on FHIR 4.0.1. Generated 2023-03-03
Links: Table of Contents |
QA Report