{
  "resourceType": "StructureDefinition",
  "url": "https://cgm.com/fhir/his/medico/r4/sd/pip/Organization_PipDepartment_1",
  "name": "Organization_PiPDepartment_1",
  "status": "draft",
  "description": "This profile describes the department related data to be exchanged with Patient Portal.",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Organization.id",
        "path": "Organization.id",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.\r\nFormat will be Department-#####\r\nwhere #### is the department id (medico x8102dep.dep)",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.meta",
        "path": "Organization.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.meta.profile",
        "path": "Organization.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://cgm.com/fhir/his/medico/r4/sd/pip/Organization_PiPDepartment_1",
        "mustSupport": true
      },
      {
        "id": "Organization.extension",
        "path": "Organization.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Organization.extension:ward",
        "path": "Organization.extension",
        "sliceName": "ward",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://cgm.com/fhir/his/medico/r4/sd/pip/Organization_PiPWards_1"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Organization.identifier",
        "path": "Organization.identifier",
        "definition": "Identifier for the organization that is used to identify the organization across multiple disparate systems.\r\nrepresents the identifier within CGM MEDICO",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.identifier.system",
        "path": "Organization.identifier.system",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\nFormat will be Department-####\r\nwhere ### is the departments id (medico x8102dep.dep)",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=https://cgm.com/fhir/his/medico/%KUNDE%/sid1/Department",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.identifier.value",
        "path": "Organization.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}