{
  "resourceType": "StructureDefinition",
  "id": "MyObservationLabRes",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Clinical.Diagnostics"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    }
  ],
  "url": "http://example.org/StructureDefinition/MyObservationLabRes",
  "version": "1.0",
  "name": "MyObservationLabRes",
  "status": "active",
  "date": "2023-09-04T16:49:06.4289115+00:00",
  "fhirVersion": "4.3.0",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Observation.extension:endpoint",
        "path": "Observation.extension",
        "sliceName": "endpoint",
        "short": "Observation system origin",
        "definition": "Observation system origin",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://MyProject.pt/EndpointExt"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
            ]
          }
        ]
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "binding": {
          "strength": "required",
          "valueSet": "https://MyProject.pt/ObservationStatus"
        }
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "max": "0"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://example.org/StructureDefinition/MyPatient"
            ]
          }
        ]
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "max": "0"
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "min": 1
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1,
        "type": [
          {
            "code": "instant"
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "min": 1
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "max": "0"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Observation.value[x].extension",
        "path": "Observation.value[x].extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Observation.value[x].extension:valueExternalReference",
        "path": "Observation.value[x].extension",
        "sliceName": "valueExternalReference",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://MyProject.pt"
            ]
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.value[x]",
        "sliceName": "valueCodeableConcept",
        "max": "0",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueRange",
        "path": "Observation.value[x]",
        "sliceName": "valueRange",
        "max": "0",
        "type": [
          {
            "code": "Range"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueRatio",
        "path": "Observation.value[x]",
        "sliceName": "valueRatio",
        "max": "0",
        "type": [
          {
            "code": "Ratio"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueSampledData",
        "path": "Observation.value[x]",
        "sliceName": "valueSampledData",
        "max": "0",
        "type": [
          {
            "code": "SampledData"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueTime",
        "path": "Observation.value[x]",
        "sliceName": "valueTime",
        "max": "0",
        "type": [
          {
            "code": "time"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueDateTime",
        "path": "Observation.value[x]",
        "sliceName": "valueDateTime",
        "max": "0",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valuePeriod",
        "path": "Observation.value[x]",
        "sliceName": "valuePeriod",
        "max": "0",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.type",
        "path": "Observation.referenceRange.type",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.appliesTo",
        "path": "Observation.referenceRange.appliesTo",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.age",
        "path": "Observation.referenceRange.age",
        "max": "0"
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://example.org/StructureDefinition/MyObservationLabRes"
            ]
          }
        ]
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "max": "0"
      },
      {
        "id": "Observation.component.value[x]",
        "path": "Observation.component.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Observation.component.value[x]:valueRange",
        "path": "Observation.component.value[x]",
        "sliceName": "valueRange",
        "max": "0",
        "type": [
          {
            "code": "Range"
          }
        ]
      },
      {
        "id": "Observation.component.value[x]:valueRatio",
        "path": "Observation.component.value[x]",
        "sliceName": "valueRatio",
        "max": "0",
        "type": [
          {
            "code": "Ratio"
          }
        ]
      },
      {
        "id": "Observation.component.value[x]:valueSampledData",
        "path": "Observation.component.value[x]",
        "sliceName": "valueSampledData",
        "max": "0",
        "type": [
          {
            "code": "SampledData"
          }
        ]
      },
      {
        "id": "Observation.component.value[x]:valueTime",
        "path": "Observation.component.value[x]",
        "sliceName": "valueTime",
        "max": "0",
        "type": [
          {
            "code": "time"
          }
        ]
      },
      {
        "id": "Observation.component.value[x]:valueDateTime",
        "path": "Observation.component.value[x]",
        "sliceName": "valueDateTime",
        "max": "0",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.component.value[x]:valuePeriod",
        "path": "Observation.component.value[x]",
        "sliceName": "valuePeriod",
        "max": "0",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Observation.component.value[x]:valueCodeableConcept",
        "path": "Observation.component.value[x]",
        "sliceName": "valueCodeableConcept",
        "max": "0",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      }
    ]
  }
}