PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.omop@1.0.0
    http://hl7.org/fhir/uv/omop/StructureMap/ImmunizationMap
{
  "description": "This mapping maps FHIR Immunization instances to OMOP Drug Exposure Table objects.",
  "_filename": "StructureMap-ImmunizationMap.json",
  "package_name": "hl7.fhir.uv.omop",
  "date": "2026-04-30T00:07:42+10:00",
  "group": [ {
    "name": "DrugExposure",
    "rule": [ {
      "name": "id",
      "source": [ {
        "context": "src",
        "element": "id"
      } ],
      "target": [ {
        "context": "tgt",
        "element": "drug_exposure_id",
        "parameter": [ {
          "valueString": "1"
        } ],
        "transform": "copy"
      } ],
      "documentation": "OMOP Drug Exposure ID would be a map from FHIR ID to an external key"
    }, {
      "name": "patient",
      "source": [ {
        "context": "src",
        "element": "patient"
      } ],
      "target": [ {
        "context": "tgt",
        "element": "person_id",
        "parameter": [ {
          "valueString": "1"
        } ],
        "transform": "copy"
      } ],
      "documentation": "OMOP Person ID would be a map from the FHIR Immunization Patient reference to an external key"
    }, {
      "name": "encounter",
      "source": [ {
        "context": "src",
        "element": "encounter"
      } ],
      "target": [ {
        "context": "tgt",
        "element": "visit_occurrence_id",
        "parameter": [ {
          "valueString": "1"
        } ],
        "transform": "copy"
      } ],
      "documentation": "OMOP Visit Occurrence ID would be a map from the FHIR Immunization Encounter reference to an external key"
    }, {
      "name": "vaccineCode",
      "rule": [ {
        "name": "coding",
        "rule": [ {
          "name": "code",
          "source": [ {
            "context": "sc",
            "element": "code",
            "variable": "c"
          } ],
          "target": [ {
            "context": "tgt",
            "element": "drug_concept_id",
            "parameter": [ {
              "valueId": "c"
            }, {
              "valueString": "http://hl7.org/fhir/uv/omop/ConceptMap/ImmunizationVaccine"
            }, {
              "valueString": "code"
            } ],
            "transform": "translate"
          }, {
            "context": "tgt",
            "element": "drug_source_value",
            "parameter": [ {
              "valueId": "c"
            } ],
            "transform": "copy"
          } ]
        } ],
        "source": [ {
          "context": "s",
          "element": "coding",
          "listMode": "first",
          "variable": "sc"
        } ],
        "target": [ {
          "parameter": [ {
            "valueId": "tgt"
          } ],
          "transform": "copy"
        } ]
      } ],
      "source": [ {
        "context": "src",
        "element": "vaccineCode",
        "variable": "s"
      } ],
      "target": [ {
        "parameter": [ {
          "valueId": "tgt"
        } ],
        "transform": "copy"
      } ]
    }, {
      "name": "doseQuantity",
      "rule": [ {
        "name": "value",
        "source": [ {
          "context": "s",
          "element": "value",
          "variable": "s"
        } ],
        "target": [ {
          "context": "tgt",
          "element": "quantity",
          "parameter": [ {
            "valueId": "s"
          } ],
          "transform": "copy"
        } ]
      } ],
      "source": [ {
        "context": "src",
        "element": "doseQuantity",
        "variable": "s"
      } ],
      "target": [ {
        "parameter": [ {
          "valueId": "tgt"
        } ],
        "transform": "copy"
      } ]
    }, {
      "name": "route",
      "rule": [ {
        "name": "coding",
        "rule": [ {
          "name": "code",
          "source": [ {
            "context": "sc",
            "element": "code",
            "variable": "c"
          } ],
          "target": [ {
            "context": "tgt",
            "element": "route_concept_id",
            "parameter": [ {
              "valueId": "c"
            }, {
              "valueString": "http://hl7.org/fhir/uv/omop/ConceptMap/ImmunizationRoute"
            }, {
              "valueString": "code"
            } ],
            "transform": "translate"
          }, {
            "context": "tgt",
            "element": "route_source_value",
            "parameter": [ {
              "valueId": "c"
            } ],
            "transform": "copy"
          } ]
        } ],
        "source": [ {
          "context": "s",
          "element": "coding",
          "variable": "sc"
        } ],
        "target": [ {
          "parameter": [ {
            "valueId": "tgt"
          } ],
          "transform": "copy"
        } ]
      } ],
      "source": [ {
        "context": "src",
        "element": "route",
        "variable": "s"
      } ],
      "target": [ {
        "parameter": [ {
          "valueId": "tgt"
        } ],
        "transform": "copy"
      } ]
    }, {
      "name": "emptysource",
      "source": [ {
        "context": "src",
        "condition": "(src.informationSource.empty())"
      } ],
      "target": [ {
        "context": "tgt",
        "element": "drug_type_concept_id",
        "parameter": [ {
          "valueString": "32818"
        } ],
        "transform": "copy"
      } ]
    }, {
      "name": "informationSource",
      "rule": [ {
        "name": "concept",
        "rule": [ {
          "name": "coding",
          "rule": [ {
            "name": "code",
            "source": [ {
              "context": "sc",
              "element": "code",
              "variable": "c"
            } ],
            "target": [ {
              "context": "tgt",
              "element": "drug_type_concept_id",
              "parameter": [ {
                "valueId": "c"
              }, {
                "valueString": "http://hl7.org/fhir/uv/omop/ConceptMap/ImmunizationSource"
              }, {
                "valueString": "code"
              } ],
              "transform": "translate"
            } ]
          } ],
          "source": [ {
            "context": "concept",
            "element": "coding",
            "variable": "sc"
          } ],
          "target": [ {
            "parameter": [ {
              "valueId": "tgt"
            } ],
            "transform": "copy"
          } ]
        } ],
        "source": [ {
          "context": "s",
          "element": "concept",
          "variable": "concept"
        } ],
        "target": [ {
          "parameter": [ {
            "valueId": "tgt"
          } ],
          "transform": "copy"
        } ]
      } ],
      "source": [ {
        "context": "src",
        "element": "informationSource",
        "variable": "s"
      } ],
      "target": [ {
        "parameter": [ {
          "valueId": "tgt"
        } ],
        "transform": "copy"
      } ]
    }, {
      "name": "occurrenceDateTime",
      "source": [ {
        "type": "dateTime",
        "context": "src",
        "element": "occurrence",
        "variable": "odt"
      } ],
      "target": [ {
        "context": "tgt",
        "element": "drug_exposure_start_date",
        "parameter": [ {
          "valueString": "src.occurrence.toString().substring(0, 10)"
        } ],
        "transform": "evaluate"
      }, {
        "context": "tgt",
        "element": "drug_exposure_start_datetime",
        "parameter": [ {
          "valueId": "odt"
        } ],
        "transform": "copy"
      }, {
        "context": "tgt",
        "element": "drug_exposure_end_date",
        "parameter": [ {
          "valueString": "src.occurrence.toString().substring(0, 10)"
        } ],
        "transform": "evaluate"
      }, {
        "context": "tgt",
        "element": "drug_exposure_end_datetime",
        "parameter": [ {
          "valueId": "odt"
        } ],
        "transform": "copy"
      } ]
    }, {
      "name": "lotNumber",
      "source": [ {
        "context": "src",
        "element": "lotNumber",
        "variable": "s"
      } ],
      "target": [ {
        "context": "tgt",
        "element": "lot_number"
      } ]
    } ],
    "input": [ {
      "mode": "source",
      "name": "src",
      "type": "Immunization"
    }, {
      "mode": "target",
      "name": "tgt",
      "type": "DrugExposureTable"
    } ]
  } ],
  "publisher": "HL7 International / Biomedical Research and Regulation",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "display": "World"
    } ]
  } ],
  "name": "ImmunizationMap",
  "type": null,
  "experimental": null,
  "resourceType": "StructureMap",
  "title": "Mapping Immunization resource to Drug Exposure OMOP Domain",
  "package_version": "1.0.0",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "brr"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 2,
    "_valueInteger": {
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical": "http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop"
      } ]
    }
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "informative",
    "_valueCode": {
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical": "http://hl7.org/fhir/uv/omop/ImplementationGuide/hl7.fhir.uv.omop"
      } ]
    }
  } ],
  "structure": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/Immunization",
    "mode": "source",
    "alias": "Immunization"
  }, {
    "url": "http://hl7.org/fhir/uv/omop/StructureDefinition/DrugExposure",
    "mode": "target",
    "alias": "DrugExposureTable"
  } ],
  "status": "draft",
  "id": "c65abd1d-4197-4e0b-a1e7-5f85a7205eeb",
  "kind": null,
  "url": "http://hl7.org/fhir/uv/omop/StructureMap/ImmunizationMap",
  "version": "1.0.0",
  "contact": [ {
    "name": "HL7 International / Biomedical Research and Regulation",
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/rcrim",
      "system": "url"
    } ]
  } ]
}