{
  "resourceType": "StructureDefinition",
  "url": "https://cgm.com/fhir/his/medico/r4/vs/pip/ValueSet_PiPUserPermissions_1",
  "name": "ValueSet_PiPUserPermissions_1",
  "status": "draft",
  "description": "ValueSet which contains permissions for the given user. Following permissions are included:\r\n- Entrypoints (system is https://cgm.com/fhir/his/medico/cs/EntryPoints)\r\n- access to a given combination of a department and ward (system is https://cgm.com/fhir/his/medico/cs/DepartmentWardPermission)\r\n\r\nThis ValueSet is not readeable/searchable/expandable. To retrieve the ValueSet it is required to call one of the following operations:\r\n-  $getpippermissions as defined at (https://cgm.com/fhir/his/medico/r4/od/pip/ValueSet_PiPUserPermissions_getpippermissions_1)",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "objimpl",
      "uri": "http://hl7.org/fhir/object-implementation",
      "name": "Object Implementation Information"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ValueSet",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ValueSet",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ValueSet.url",
        "path": "ValueSet.url",
        "min": 1,
        "fixedUri": "https://cgm.com/fhir/his/medico/r4/vs/pip/ValueSet_PiPUserPermissions_1"
      },
      {
        "id": "ValueSet.identifier",
        "path": "ValueSet.identifier",
        "max": "1"
      },
      {
        "id": "ValueSet.status",
        "path": "ValueSet.status",
        "fixedCode": "active"
      },
      {
        "id": "ValueSet.expansion.contains.system",
        "path": "ValueSet.expansion.contains.system",
        "definition": "An absolute URI which is the code system in which the code for this item in the expansion is defined.\r\nfor entrypoints: https://cgm.com/fhir/his/medico/cs/EntryPoints\r\nfor department ward permissions: https://cgm.com/fhir/his/medico/cs/DepartmentWardPermission",
        "min": 1
      },
      {
        "id": "ValueSet.expansion.contains.code",
        "path": "ValueSet.expansion.contains.code",
        "definition": "The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.\r\n\r\ndepending on the system either an entrypoint or a department ward permission. For department ward permissions the identifier for the department and the ward are delimited by ¿",
        "min": 1
      },
      {
        "id": "ValueSet.expansion.contains.designation",
        "path": "ValueSet.expansion.contains.designation",
        "max": "0",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/ValueSet#ValueSet.compose.include.concept.designation"
      },
      {
        "id": "ValueSet.expansion.contains.contains",
        "path": "ValueSet.expansion.contains.contains",
        "max": "0",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/ValueSet#ValueSet.expansion.contains"
      }
    ]
  }
}