{
  "resourceType": "StructureDefinition",
  "url": "https://www.pacmed.nl/fhir/StructureDefinition/ZIB2020_based_lab_results_pacmed_critical",
  "name": "ZIB2020_based_lab_results_pacmed_critical",
  "status": "draft",
  "description": "FHIR profile based on LaboratoryTestResult Zib (2020)\r\nUsage: to specify what Lab test results are needed and with what context",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://nictiz.nl/fhir/StructureDefinition/zib-LaboratoryTestResult",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.id",
        "path": "Observation.id",
        "min": 1
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "short": "Part of procedure (if applicable)",
        "definition": "A larger event of which this particular Observation is a component or step.  For example, an observation as part of a procedure.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Procedure"
            ]
          }
        ]
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "min": 1
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "min": 1,
        "binding": {
          "strength": "extensible",
          "valueSet": "https://www.pacmed.nl/fhir/ValueSet/lab-results"
        }
      },
      {
        "id": "Observation.code.coding.display",
        "path": "Observation.code.coding.display",
        "min": 1
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "min": 1
      },
      {
        "id": "Observation.encounter.reference",
        "path": "Observation.encounter.reference",
        "min": 1
      },
      {
        "id": "Observation.effective[x]:effectiveDateTime",
        "path": "Observation.effective[x]",
        "sliceName": "effectiveDateTime",
        "min": 1
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "min": 1
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          },
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.value[x]",
        "sliceName": "valueQuantity",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueString",
        "path": "Observation.value[x]",
        "sliceName": "valueString",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.specimen.display",
        "path": "Observation.specimen.display",
        "binding": {
          "strength": "required",
          "valueSet": "https://www.pacmed.nl/fhir/ValueSet/blood_gas_origin_text_ValueSet"
        }
      }
    ]
  }
}