profiles / StructureDefinition

OMOP-Convertible MedicationStatement → drug_exposure

MedicationStatement drug_exposure edge mapspec

A FHIR MedicationStatement that can be converted to an OMOP `drug_exposure` row of type 44787730 (Patient Self-Reported Medication). Routing key: `medicationCodeableConcept` must be in the OMOP Drug domain (RxNorm / NDC / SNOMED CT product). Only active | completed statuses produce rows.

Routing key — code binding
omop-drug-codes OMOP domain: Drug

If MedicationStatement.code resolves to a concept in this ValueSet, the resource converts to drug_exposure.

Path Card Type Binding / Fixed Comment
MedicationStatement.status 1..* MS fhir/medication-statement-status required
MedicationStatement.medication[x] 1..* MS CodeableConcept omop-drug-codes required
MedicationStatement.subject 1..1 Reference Required for drug_exposure.person_id.
MedicationStatement.effective[x] 1..1 MS Required for drug_exposure.drug_exposure_start_date / _end_date. May be dateTime or Period.
Raw JSON
{
  "resourceType": "StructureDefinition",
  "id": "omop-medication-statement-drug-exposure",
  "url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-medication-statement-drug-exposure",
  "version": "0.1.0",
  "name": "OmopMedicationStatementDrugExposure",
  "title": "OMOP-Convertible MedicationStatement → drug_exposure",
  "status": "draft",
  "experimental": true,
  "description": "A FHIR MedicationStatement that can be converted to an OMOP `drug_exposure` row of type 44787730 (Patient Self-Reported Medication). Routing key: `medicationCodeableConcept` must be in the OMOP Drug domain (RxNorm / NDC / SNOMED CT product). Only active | completed statuses produce rows.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "extension": [
    {
      "url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-target-table",
      "valueString": "drug_exposure"
    },
    {
      "url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-edge",
      "valueString": "MedicationStatement__drug_exposure"
    }
  ],
  "differential": {
    "element": [
      {
        "id": "MedicationStatement.status",
        "path": "MedicationStatement.status",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/medication-statement-status",
          "description": "Must be active | completed. Other statuses (intended, entered-in-error, stopped, on-hold, unknown, not-taken) do not produce a drug_exposure row."
        }
      },
      {
        "id": "MedicationStatement.medication[x]",
        "path": "MedicationStatement.medication[x]",
        "min": 1,
        "mustSupport": true,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir2omop.health-samurai.io/ValueSet/omop-drug-codes",
          "description": "Routing key. Code must be in the OMOP Drug domain (RxNorm / NDC / SNOMED CT product). Bare Reference(Medication) is not accepted at the routing layer."
        }
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "comment": "Required for drug_exposure.person_id."
      },
      {
        "id": "MedicationStatement.effective[x]",
        "path": "MedicationStatement.effective[x]",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "comment": "Required for drug_exposure.drug_exposure_start_date / _end_date. May be dateTime or Period."
      }
    ]
  },
  "targetTable": "drug_exposure",
  "edgeKey": "MedicationStatement__drug_exposure"
}