profiles / StructureDefinition

OMOP-Convertible Observation → observation

Observation observation edge mapspec

An Observation whose code routes to the OMOP `observation` table (qualitative findings, social history, etc.). Same FHIR resource as OmopObservationMeasurement — the difference is only the `code` binding. Try OmopObservationMeasurement first; if its binding fails, validate against this one.

Routing key — code binding
omop-observation-codes OMOP domain: Observation

If Observation.code resolves to a concept in this ValueSet, the resource converts to observation.

Path Card Type Binding / Fixed Comment
Observation.status fhir/observation-status required
Observation.code 1..* MS omop-observation-codes required
Observation.subject 1..* Reference
Observation.effective[x] 1..* MS
Raw JSON
{
  "resourceType": "StructureDefinition",
  "id": "omop-observation-observation",
  "url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-observation-observation",
  "version": "0.1.0",
  "name": "OmopObservationObservation",
  "title": "OMOP-Convertible Observation → observation",
  "status": "draft",
  "experimental": true,
  "description": "An Observation whose code routes to the OMOP `observation` table (qualitative findings, social history, etc.). Same FHIR resource as OmopObservationMeasurement — the difference is only the `code` binding. Try OmopObservationMeasurement first; if its binding fails, validate against this one.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "extension": [
    {
      "url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-target-table",
      "valueString": "observation"
    },
    {
      "url": "https://fhir2omop.health-samurai.io/StructureDefinition/omop-edge",
      "valueString": "Observation__observation"
    }
  ],
  "differential": {
    "element": [
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/observation-status",
          "description": "final | amended | corrected"
        }
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir2omop.health-samurai.io/ValueSet/omop-observation-codes",
          "description": "Code must be in the OMOP Observation domain. This binding is the routing key."
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1,
        "mustSupport": true
      }
    ]
  },
  "targetTable": "observation",
  "edgeKey": "Observation__observation"
}