{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-02-18T12:23:58.3745396+00:00"
  },
  "url": "https://medico-emr.net/medico/r4/sd/Observation_FluidExcretion_1",
  "name": "Observation_FluidExcretion_1",
  "status": "draft",
  "date": "2020-08-13",
  "description": "represents observations regarding fluid balance.\r\nFollowing components are available for the given codes.\r\nA resource of this type either represents an Excretion\r\nBased on this type - slicing is performed - i.e. slices starting with \"Excretion\" are used",
  "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.id",
        "path": "Observation.id",
        "definition": "FluidBalance.EXC-#####"
      },
      {
        "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_FluidExcretion_1"
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "max": "1"
      },
      {
        "id": "Observation.identifier:medicoResourceId",
        "path": "Observation.identifier",
        "sliceName": "medicoResourceId",
        "max": "1"
      },
      {
        "id": "Observation.identifier:medicoResourceId.system",
        "path": "Observation.identifier.system",
        "definition": "The resulting value will be https://medico-emr.net/medico/%KUNDE%/sid1/FluidBalance.EXC \r\n - where %KUNDE& is a tenant specific 2-3 character id\r\nfor automatic calculation the Code with the system \"https://medico-emr.net/medico/cs/customerdefinedsystem\" is used",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=https://medico-emr.net/medico/%KUNDE%/sid1/FluidBalance.EXC"
      },
      {
        "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"
      },
      {
        "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": "exam"
      },
      {
        "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",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "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",
        "min": 1,
        "fixedUri": "https://medico-emr.net/medico/cs/cs1"
      },
      {
        "id": "Observation.code.coding.version",
        "path": "Observation.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "min": 1,
        "fixedCode": "Excretion"
      },
      {
        "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.issued",
        "path": "Observation.issued",
        "max": "0"
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.performer.id",
        "path": "Observation.performer.id",
        "max": "0"
      },
      {
        "id": "Observation.performer.reference",
        "path": "Observation.performer.reference",
        "min": 1
      },
      {
        "id": "Observation.performer.identifier",
        "path": "Observation.performer.identifier",
        "max": "0"
      },
      {
        "id": "Observation.performer.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.performer.display",
        "max": "0"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "max": "0"
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "max": "0"
      },
      {
        "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",
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code.coding.code"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.component:Excretion_Type",
        "path": "Observation.component",
        "sliceName": "Excretion_Type",
        "short": "The type of an excretion",
        "definition": "This component defines what type of an excretion is futher described\r\nThis component appears in resources of type \"excretion\" (see also id)",
        "max": "1"
      },
      {
        "id": "Observation.component:Excretion_Type.id",
        "path": "Observation.component.id",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Type.code",
        "path": "Observation.component.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_MedicoCs1_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Type.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "Excretion-Type-1"
      },
      {
        "id": "Observation.component:Excretion_Type.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_CustomerDefined_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Type.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Type.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Type.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Amount",
        "path": "Observation.component",
        "sliceName": "Excretion_Amount",
        "definition": "This component defines the amount in ml of the excretion described.\r\nThis component appears in resources of type \"excretion\" (see also id)",
        "max": "1"
      },
      {
        "id": "Observation.component:Excretion_Amount.id",
        "path": "Observation.component.id",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Amount.code",
        "path": "Observation.component.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_LoincWithoutDisplay_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Amount.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "9257-7"
      },
      {
        "id": "Observation.component:Excretion_Amount.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Amount.value[x].id",
        "path": "Observation.component.value[x].id",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Amount.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1
      },
      {
        "id": "Observation.component:Excretion_Amount.value[x].comparator",
        "path": "Observation.component.value[x].comparator",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Amount.value[x].unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.value[x].unit",
        "min": 1,
        "fixedString": "ml"
      },
      {
        "id": "Observation.component:Excretion_Amount.value[x].system",
        "path": "Observation.component.value[x].system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:Excretion_Amount.value[x].code",
        "path": "Observation.component.value[x].code",
        "min": 1,
        "fixedCode": "ml"
      },
      {
        "id": "Observation.component:Excretion_Amount.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Amount.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Amount.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Color",
        "path": "Observation.component",
        "sliceName": "Excretion_Color",
        "short": "The excretion's color",
        "definition": "This component defines the color of the excretion described.\r\nThis component appears in resources of type \"excretion\" (see also id)",
        "max": "1"
      },
      {
        "id": "Observation.component:Excretion_Color.id",
        "path": "Observation.component.id",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Color.code",
        "path": "Observation.component.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_MedicoCs1_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Color.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "Excretion-Color-1"
      },
      {
        "id": "Observation.component:Excretion_Color.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_CustomerDefined_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Color.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Color.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Color.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Odor",
        "path": "Observation.component",
        "sliceName": "Excretion_Odor",
        "short": "The excretion's odor",
        "definition": "This component defines the odor of the excretion described.\r\nThis component appears in resources of type \"excretion\" (see also id)"
      },
      {
        "id": "Observation.component:Excretion_Odor.id",
        "path": "Observation.component.id",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Odor.code",
        "path": "Observation.component.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_MedicoCs1_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Odor.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "Excretion-Odor-1"
      },
      {
        "id": "Observation.component:Excretion_Odor.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_CustomerDefined_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Odor.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Odor.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Odor.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Appearance",
        "path": "Observation.component",
        "sliceName": "Excretion_Appearance",
        "short": "The excretion's appearance",
        "definition": "This component defines the appearance of the excretion described.\r\nThis component appears in resources of type \"excretion\" (see also id)"
      },
      {
        "id": "Observation.component:Excretion_Appearance.id",
        "path": "Observation.component.id",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Appearance.code",
        "path": "Observation.component.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_MedicoCs1_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Appearance.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "Excretion-Appearance-1"
      },
      {
        "id": "Observation.component:Excretion_Appearance.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_CustomerDefined_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Appearance.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Appearance.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Appearance.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Admixture",
        "path": "Observation.component",
        "sliceName": "Excretion_Admixture"
      },
      {
        "id": "Observation.component:Excretion_Admixture.id",
        "path": "Observation.component.id",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Admixture.code",
        "path": "Observation.component.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_MedicoCs1_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Admixture.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "Excretion-Admixture-1"
      },
      {
        "id": "Observation.component:Excretion_Admixture.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_CustomerDefined_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_Admixture.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Admixture.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_Admixture.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_SpecificWeight",
        "path": "Observation.component",
        "sliceName": "Excretion_SpecificWeight",
        "short": "The excretion's specific weight",
        "definition": "This component defines the specific weight (as free text) of the excretion described.\r\nThis component appears in resources of type \"excretion\" (see also id)"
      },
      {
        "id": "Observation.component:Excretion_SpecificWeight.id",
        "path": "Observation.component.id",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_SpecificWeight.code",
        "path": "Observation.component.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/CodeableConcept_MedicoCs1_1"
            ]
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_SpecificWeight.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "fixedCode": "Excretion-SpecificWeight-1"
      },
      {
        "id": "Observation.component:Excretion_SpecificWeight.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.component:Excretion_SpecificWeight.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_SpecificWeight.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component:Excretion_SpecificWeight.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      }
    ]
  }
}