{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-02-25T10:12:55.5495086+00:00"
  },
  "url": "https://medico-emr.net/medico/r4/sd/Observation_WardLab_1",
  "version": "1.0.0",
  "name": "Observation_WardLab_1",
  "status": "active",
  "date": "2019-02-25T10:12:55.4462227+00:00",
  "description": "An instance of this profile represents a lab value that was measured on a ward, e.g. a glucose value with a stick.\r\nOther that instances of Observation_CentralLab-# these instances can later be changed by the user.\r\nIt is the result from a WardLab, values can be changed by user the WardLab result is specified by following condition: x1350dme.doctyp == 'LABORSTAT'",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "https://medico-emr.net/medico/r4/sd/Observation_Base_1",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "definition": "represents a result from a WardLab, values can be changed by user\r\nthe WardLab result is specified by following condition: x1350dme.doctyp == 'LABORSTAT'"
      },
      {
        "id": "Observation.id",
        "path": "Observation.id",
        "definition": "LabResult.Ward-########"
      },
      {
        "id": "Observation.meta.lastUpdated",
        "path": "Observation.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile",
        "fixedCanonical": "https://medico-emr.net/medico/r4/sd/Observation_WardLab_1"
      },
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.extension:LabGroups",
        "path": "Observation.extension",
        "sliceName": "LabGroups",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/ext/Observation_LabGroups_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.extension:labStringUnit",
        "path": "Observation.extension",
        "sliceName": "labStringUnit",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/ext/Observation_LabStringUnit_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "max": "1"
      },
      {
        "id": "Observation.identifier:medicoResourceId",
        "path": "Observation.identifier",
        "sliceName": "medicoResourceId",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.identifier:medicoResourceId.system",
        "path": "Observation.identifier.system",
        "definition": "Must be a constant underneath https://medico-emr.net/medico/%KUNDE%/sid1/LabResult.Ward",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=https://medico-emr.net/medico/%KUNDE%/sid1/LabResult.Ward"
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString": "default: final"
          }
        ],
        "path": "Observation.status",
        "short": "final | cancelled",
        "definition": "medico: status is represented by the codesystem https://www.hl7.org/fhir/codesystem-observation-status.html \r\nIts values are mapped to x1580rps.sta as follows\r\n\r\ncodesystem-observation-status.html       |    x1580rps.sta\r\n---------------------------------------------|-----------------\r\nregistered                                                  |   I (\"Probe im Labor\")\r\npreliminary                                                |   P (\"Preliminary\") S (\"partial results\")  R (\"non validated\")\r\n---------------------------------------------|-----------------\r\nfinal                                                           |    F (\"Final\") , X (\"results cannot be obtained\"), U (\"status change to final\")\r\namended                                                   |    \r\n---------------------------------------------|-----------------\r\ncorrected                                                   |   C  (\"Correction\")\r\ncancelled                                                   |   D   (\"delete the OBX record\")\r\n---------------------------------------------|-----------------\r\nentered-in-error                                        |        ---\r\nunknown                                                   |        ----\r\n----------------------------------------------------------------"
      },
      {
        "id": "Observation.category.coding.system",
        "path": "Observation.category.coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/observation-category"
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "fixedCode": "laboratory"
      },
      {
        "id": "Observation.category.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.category.text",
        "max": "0"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "binding": {
          "strength": "preferred"
        }
      },
      {
        "id": "Observation.code.id",
        "path": "Observation.code.id",
        "max": "0"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding.id",
        "path": "Observation.code.coding.id",
        "max": "0"
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "definition": "https://medico-emr.net/medico/%KUNDE%/cs/WardLab",
        "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier\r\nDynamically resolved for validation\r\n--FixedValue=https://medico-emr.net/medico/%KUNDE%/cs/WardLab",
        "min": 1
      },
      {
        "id": "Observation.code.coding.version",
        "path": "Observation.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.code.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.code.coding.userSelected",
        "path": "Observation.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.code.text",
        "max": "0"
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "max": "0"
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/Reference_medicoEmployeeResourceReference_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer.identifier",
        "path": "Observation.performer.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.performer.identifier:medicoResourceId",
        "path": "Observation.performer.identifier",
        "sliceName": "medicoResourceId"
      },
      {
        "id": "Observation.performer.identifier:medicoResourceId.system",
        "path": "Observation.performer.identifier.system",
        "definition": "Must be a constant underneath https://medico-emr.net/medico/%KUNDE%/sid1/User",
        "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier\r\nDynamically resolved for validation\r\n--FixedValue=https://medico-emr.net/medico/%KUNDE%/sid1/User"
      },
      {
        "id": "Observation.performer.identifier:medicoResourceId2",
        "path": "Observation.performer.identifier",
        "sliceName": "medicoResourceId2",
        "definition": "medico: Specifies a generic resource in x8701res"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ]
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueString",
        "path": "Observation.value[x]",
        "sliceName": "valueString",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueString.id",
        "path": "Observation.value[x].id",
        "max": "0"
      },
      {
        "id": "Observation.interpretation.id",
        "path": "Observation.interpretation.id",
        "max": "0"
      },
      {
        "id": "Observation.interpretation.coding.id",
        "path": "Observation.interpretation.coding.id",
        "max": "0"
      },
      {
        "id": "Observation.interpretation.coding.system",
        "path": "Observation.interpretation.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/ValueSet/observation-interpretation"
      },
      {
        "id": "Observation.interpretation.coding.version",
        "path": "Observation.interpretation.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.interpretation.coding.code",
        "path": "Observation.interpretation.coding.code",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\n\r\nN     = Normal\r\nH     = High\r\nHU   = Very High\r\nL      = Low\r\nLU   = Very Low",
        "min": 1
      },
      {
        "id": "Observation.interpretation.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.interpretation.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.interpretation.coding.userSelected",
        "path": "Observation.interpretation.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.interpretation.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.interpretation.text",
        "definition": "Text from LabSystem."
      },
      {
        "id": "Observation.note.id",
        "path": "Observation.note.id",
        "max": "0"
      },
      {
        "id": "Observation.note.author[x]",
        "path": "Observation.note.author[x]",
        "max": "0"
      },
      {
        "id": "Observation.note.time",
        "path": "Observation.note.time",
        "max": "0"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.id",
        "path": "Observation.referenceRange.id",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.low",
        "path": "Observation.referenceRange.low",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.low.id",
        "path": "Observation.referenceRange.low.id",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.low.value",
        "path": "Observation.referenceRange.low.value",
        "min": 1
      },
      {
        "id": "Observation.referenceRange.high",
        "path": "Observation.referenceRange.high",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.high.id",
        "path": "Observation.referenceRange.high.id",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.high.value",
        "path": "Observation.referenceRange.high.value",
        "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.\r\nx1580rps.rpsrange",
        "min": 1
      },
      {
        "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",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}