FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packageethiopia.fhir.hiv
Resource TypeStructureMap
IdStructureMap-ObservationPropietaryValueToStandardCodingValue.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/jembi/ethiopia-hiv/StructureMap-ObservationPropietaryValueToStandardCodingValue.html
URLhttp://moh.gov.et/fhir/hiv/StructureMap/ObservationPropietaryValueToStandardCodingValue
Version1.0.1
Statusdraft
Date2026-02-09T05:22:58+00:00
NameObservationPropietaryValueToStandardCodingValue

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureMap ObservationPropietaryValueToStandardCodingValue

map "http://moh.gov.et/fhir/hiv/StructureMap/ObservationPropietaryValueToStandardCodingValue" = "ObservationPropietaryValueToStandardCodingValue"

uses "http://hl7.org/fhir/StructureDefinition/ConceptMap" as source
uses "http://hl7.org/fhir/StructureDefinition/Observation" as source
uses "http://hl7.org/fhir/StructureDefinition/Observation" as target

group ObservationPropietaryValueToStandardCodingValue(source obsSrc : Observation, source conceptMapSrc : ConceptMap, target obsTgt : Observation) {
  obsSrc.value : CodeableConcept as vs -> obsTgt.value = create('CodeableConcept') as vt then {
    vs.coding as coding then {
      conceptMapSrc.url as url then {
        coding -> vt = translate(coding, url, 'code') "SetObservationCode";
      };
    } "SetObservationCoding";
  } "SetObservationValue";
}


Source1

{
  "resourceType": "StructureMap",
  "id": "ObservationPropietaryValueToStandardCodingValue",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://moh.gov.et/fhir/hiv/StructureMap/ObservationPropietaryValueToStandardCodingValue",
  "version": "1.0.1",
  "name": "ObservationPropietaryValueToStandardCodingValue",
  "status": "draft",
  "date": "2026-02-09T05:22:58+00:00",
  "publisher": "Jembi Health Systems",
  "contact": [
    {
      "name": "Jembi Health Systems",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.jembi.org"
        },
        {
          "system": "email",
          "value": "info@jembi.org"
        }
      ]
    },
    {
      "name": "Jembi Health Systems",
      "telecom": [
        {
          "system": "email",
          "value": "info@jembi.org",
          "use": "work"
        }
      ]
    }
  ],
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "ET",
          "display": "Ethiopia"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/ConceptMap",
      "mode": "source"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Observation",
      "mode": "source"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Observation",
      "mode": "target"
    }
  ],
  "group": [
    {
      "name": "ObservationPropietaryValueToStandardCodingValue",
      "typeMode": "none",
      "input": [
        {
          "name": "obsSrc",
          "type": "Observation",
          "mode": "source"
        },
        {
          "name": "conceptMapSrc",
          "type": "ConceptMap",
          "mode": "source"
        },
        {
          "name": "obsTgt",
          "type": "Observation",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "SetObservationValue",
          "source": [
            {
              "context": "obsSrc",
              "type": "CodeableConcept",
              "element": "value",
              "variable": "vs"
            }
          ],
          "target": [
            {
              "context": "obsTgt",
              "contextType": "variable",
              "element": "value",
              "variable": "vt",
              "transform": "create",
              "parameter": [
                {
                  "valueString": "CodeableConcept"
                }
              ]
            }
          ],
          "rule": [
            {
              "name": "SetObservationCoding",
              "source": [
                {
                  "context": "vs",
                  "element": "coding",
                  "variable": "coding"
                }
              ],
              "rule": [
                {
                  "name": "url",
                  "source": [
                    {
                      "context": "conceptMapSrc",
                      "element": "url",
                      "variable": "url"
                    }
                  ],
                  "rule": [
                    {
                      "name": "SetObservationCode",
                      "source": [
                        {
                          "context": "coding"
                        }
                      ],
                      "target": [
                        {
                          "context": "vt",
                          "contextType": "variable",
                          "transform": "translate",
                          "parameter": [
                            {
                              "valueId": "coding"
                            },
                            {
                              "valueId": "url"
                            },
                            {
                              "valueString": "code"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}