profiles / StructureDefinition

OMOP-Convertible DiagnosticReport → measurement

DiagnosticReport measurement edge mapspec

A DiagnosticReport whose LOINC code routes to the OMOP `measurement` table (lab panels, e.g. 24323-8 Comprehensive metabolic panel). status must be finalized; code is required and is the routing key. This is independent of the Observation result rows referenced by DiagnosticReport.result[].

Routing key — code binding
omop-measurement-codes OMOP domain: Measurement

If DiagnosticReport.code resolves to a concept in this ValueSet, the resource converts to measurement.

Path Card Type Binding / Fixed Comment
DiagnosticReport.status fhir/diagnostic-report-status required OMOP measurement requires a finalized report.
DiagnosticReport.code 1..* MS omop-measurement-codes required
DiagnosticReport.subject 1..* Reference Required for measurement.person_id.
DiagnosticReport.effective[x] 1..* MS Required for measurement.measurement_date / measurement_datetime.
Raw JSON
{
  "resourceType": "StructureDefinition",
  "id": "omop-diagnosticreport-measurement",
  "url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-diagnosticreport-measurement",
  "version": "0.1.0",
  "name": "OmopDiagnosticReportMeasurement",
  "title": "OMOP-Convertible DiagnosticReport → measurement",
  "status": "draft",
  "experimental": true,
  "description": "A DiagnosticReport whose LOINC code routes to the OMOP `measurement` table (lab panels, e.g. 24323-8 Comprehensive metabolic panel). status must be finalized; code is required and is the routing key. This is independent of the Observation result rows referenced by DiagnosticReport.result[].",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "extension": [
    {
      "url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-target-table",
      "valueString": "measurement"
    },
    {
      "url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-edge",
      "valueString": "DiagnosticReport__measurement"
    }
  ],
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "comment": "OMOP measurement requires a finalized report.",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/diagnostic-report-status",
          "description": "final | amended | corrected"
        }
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir2omop.health-samurai.io/ValueSet/omop-measurement-codes",
          "description": "LOINC code must be in the OMOP Measurement domain. This binding is the routing key — if DiagnosticReport.code is not in this ValueSet, try OmopDiagnosticReportObservation or OmopDiagnosticReportProcedureOccurrence."
        }
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "comment": "Required for measurement.person_id."
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "min": 1,
        "mustSupport": true,
        "comment": "Required for measurement.measurement_date / measurement_datetime."
      }
    ]
  },
  "targetTable": "measurement",
  "edgeKey": "DiagnosticReport__measurement"
}