profiles / StructureDefinition

OMOP-Convertible DiagnosticReport → procedure_occurrence

DiagnosticReport procedure_occurrence edge mapspec

A DiagnosticReport whose LOINC code routes to the OMOP `procedure_occurrence` table — primarily imaging studies (radiology, nuclear medicine), pathology procedures, and clinical assessments whose LOINC codes are classified in the Procedure domain by the OMOP vocabulary. status must be finalized; code is required and is the routing key.

Routing key — code binding
omop-procedure-codes OMOP domain: Procedure

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

Path Card Type Binding / Fixed Comment
DiagnosticReport.status fhir/diagnostic-report-status required
DiagnosticReport.code 1..* MS omop-procedure-codes required
DiagnosticReport.subject 1..* Reference Required for procedure_occurrence.person_id.
DiagnosticReport.effective[x] 1..* MS Required for procedure_occurrence.procedure_date / procedure_datetime.
Raw JSON
{
  "resourceType": "StructureDefinition",
  "id": "omop-diagnosticreport-procedure-occurrence",
  "url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-diagnosticreport-procedure-occurrence",
  "version": "0.1.0",
  "name": "OmopDiagnosticReportProcedureOccurrence",
  "title": "OMOP-Convertible DiagnosticReport → procedure_occurrence",
  "status": "draft",
  "experimental": true,
  "description": "A DiagnosticReport whose LOINC code routes to the OMOP `procedure_occurrence` table — primarily imaging studies (radiology, nuclear medicine), pathology procedures, and clinical assessments whose LOINC codes are classified in the Procedure domain by the OMOP vocabulary. status must be finalized; code is required and is the routing key.",
  "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": "procedure_occurrence"
    },
    {
      "url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-edge",
      "valueString": "DiagnosticReport__procedure_occurrence"
    }
  ],
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "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-procedure-codes",
          "description": "LOINC code (or other code) must be in the OMOP Procedure domain. This binding is the routing key — if DiagnosticReport.code is not in this ValueSet, try OmopDiagnosticReportMeasurement or OmopDiagnosticReportObservation."
        }
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "comment": "Required for procedure_occurrence.person_id."
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "min": 1,
        "mustSupport": true,
        "comment": "Required for procedure_occurrence.procedure_date / procedure_datetime."
      }
    ]
  },
  "targetTable": "procedure_occurrence",
  "edgeKey": "DiagnosticReport__procedure_occurrence"
}