{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2022-08-02T09:26:21.327+00:00"
  },
  "url": "https://medico-emr.net/medico/r4/sd/Organization_Unit_1",
  "name": "Organization_Unit_1",
  "status": "draft",
  "description": "Represents either a ward or an outpatience facility (=ambulance) that serves people coming there from the outside.\r\nThis is different from service facilities (Leistungsstelle) - to which patients must be referred once the patients are already in the hospitals as either inpatient or outpatient.\r\nIn outpatient facility is often at the same time also a service facility - but many service facilities are not outpatient facilities",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "https://medico-emr.net/medico/r4/sd/Organization_Base_1",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Organization",
        "path": "Organization",
        "definition": "Represents an outpatience facility (=ambulance) that serves people coming there from the outside.\r\nThis is different from service facilities (Leistungsstelle) - to which patients must be referred once the patients are already in the hospitals as either inpatient or outpatient.\r\nIn outpatient facility is often at the same time also a service facility - but many service facilities are not outpatient facilities"
      },
      {
        "id": "Organization.id",
        "path": "Organization.id",
        "definition": "Format: Ward-####\r\n(where x8103wds.wds maps to ####)"
      },
      {
        "id": "Organization.meta",
        "path": "Organization.meta"
      },
      {
        "id": "Organization.meta.lastUpdated",
        "path": "Organization.meta.lastUpdated",
        "mustSupport": true
      },
      {
        "id": "Organization.meta.profile",
        "path": "Organization.meta.profile",
        "fixedCanonical": "https://medico-emr.net/medico/r4/sd/Organization_Unit_1"
      },
      {
        "id": "Organization.identifier",
        "path": "Organization.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "max": "1"
      },
      {
        "id": "Organization.identifier:medicoResourceId",
        "path": "Organization.identifier",
        "sliceName": "medicoResourceId"
      },
      {
        "id": "Organization.identifier:medicoResourceId.system",
        "path": "Organization.identifier.system",
        "definition": "maps to https://medico-emr.net/medico/%KUNDE%/sid1/Ward",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=https://medico-emr.net/medico/%KUNDE%/sid1/Ward"
      },
      {
        "id": "Organization.type",
        "path": "Organization.type",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.code"
            }
          ],
          "rules": "open"
        },
        "max": "2"
      },
      {
        "id": "Organization.type:OutpatientFacility",
        "path": "Organization.type",
        "sliceName": "OutpatientFacility",
        "max": "1"
      },
      {
        "id": "Organization.type:OutpatientFacility.coding.system",
        "path": "Organization.type.coding.system",
        "fixedUri": "https://medico-emr.net/medico/cs/cs1"
      },
      {
        "id": "Organization.type:OutpatientFacility.coding.code",
        "path": "Organization.type.coding.code",
        "fixedCode": "OutpatientFacility"
      },
      {
        "id": "Organization.type:FacilityForEmergencies",
        "path": "Organization.type",
        "sliceName": "FacilityForEmergencies",
        "max": "1"
      },
      {
        "id": "Organization.type:FacilityForEmergencies.coding.system",
        "path": "Organization.type.coding.system",
        "fixedUri": "https://medico-emr.net/medico/cs/cs1"
      },
      {
        "id": "Organization.type:FacilityForEmergencies.coding.code",
        "path": "Organization.type.coding.code",
        "fixedCode": "FacilityForEmergencies"
      },
      {
        "id": "Organization.type:PatientWard",
        "path": "Organization.type",
        "sliceName": "PatientWard",
        "max": "1"
      },
      {
        "id": "Organization.type:PatientWard.coding",
        "path": "Organization.type.coding",
        "fixedCoding": {
          "system": "https://medico-emr.net/medico/cs/cs1",
          "code": "PatWard"
        }
      },
      {
        "id": "Organization.type:PatientWard.coding.system",
        "path": "Organization.type.coding.system",
        "fixedUri": "https://medico-emr.net/medico/cs/cs1"
      },
      {
        "id": "Organization.type:PatientWard.coding.code",
        "path": "Organization.type.coding.code",
        "fixedCode": "PatWard"
      },
      {
        "id": "Organization.type:NonPatientWard",
        "path": "Organization.type",
        "sliceName": "NonPatientWard",
        "max": "1"
      },
      {
        "id": "Organization.type:NonPatientWard.coding.system",
        "path": "Organization.type.coding.system",
        "fixedUri": "https://medico-emr.net/medico/cs/cs1"
      },
      {
        "id": "Organization.type:NonPatientWard.coding.code",
        "path": "Organization.type.coding.code",
        "fixedCode": "NonPatWard"
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "definition": "The name of the outpatient facility"
      },
      {
        "id": "Organization.telecom",
        "path": "Organization.telecom",
        "max": "0"
      },
      {
        "id": "Organization.address",
        "path": "Organization.address",
        "max": "0"
      },
      {
        "id": "Organization.partOf",
        "path": "Organization.partOf",
        "definition": "Will at a later stage point to an Organization representing the tenant (\"small tenants\" in medico) - i.e. the organizational parts of a hospital",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      }
    ]
  }
}