<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://cgm.com/fhir/his/medico/r4/vs/pip/ValueSet_PiPUserPermissions_1" />
  <name value="ValueSet_PiPUserPermissions_1" />
  <status value="draft" />
  <description value="ValueSet which contains permissions for the given user. Following permissions are included:&#xD;&#xA;- Entrypoints (system is https://cgm.com/fhir/his/medico/cs/EntryPoints)&#xD;&#xA;- access to a given combination of a department and ward (system is https://cgm.com/fhir/his/medico/cs/DepartmentWardPermission)&#xD;&#xA;&#xD;&#xA;This ValueSet is not readeable/searchable/expandable. To retrieve the ValueSet it is required to call one of the following operations:&#xD;&#xA;-  $getpippermissions as defined at (https://cgm.com/fhir/his/medico/r4/od/pip/ValueSet_PiPUserPermissions_getpippermissions_1)" />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="objimpl" />
    <uri value="http://hl7.org/fhir/object-implementation" />
    <name value="Object Implementation Information" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="ValueSet" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
  <derivation value="constraint" />
  <differential>
    <element id="ValueSet.url">
      <path value="ValueSet.url" />
      <min value="1" />
      <fixedUri value="https://cgm.com/fhir/his/medico/r4/vs/pip/ValueSet_PiPUserPermissions_1" />
    </element>
    <element id="ValueSet.identifier">
      <path value="ValueSet.identifier" />
      <max value="1" />
    </element>
    <element id="ValueSet.status">
      <path value="ValueSet.status" />
      <fixedCode value="active" />
    </element>
    <element id="ValueSet.expansion.contains.system">
      <path value="ValueSet.expansion.contains.system" />
      <definition value="An absolute URI which is the code system in which the code for this item in the expansion is defined.&#xD;&#xA;for entrypoints: https://cgm.com/fhir/his/medico/cs/EntryPoints&#xD;&#xA;for department ward permissions: https://cgm.com/fhir/his/medico/cs/DepartmentWardPermission" />
      <min value="1" />
    </element>
    <element id="ValueSet.expansion.contains.code">
      <path value="ValueSet.expansion.contains.code" />
      <definition value="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.&#xD;&#xA;&#xD;&#xA;depending 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 value="1" />
    </element>
    <element id="ValueSet.expansion.contains.designation">
      <path value="ValueSet.expansion.contains.designation" />
      <max value="0" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/ValueSet#ValueSet.compose.include.concept.designation" />
    </element>
    <element id="ValueSet.expansion.contains.contains">
      <path value="ValueSet.expansion.contains.contains" />
      <max value="0" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/ValueSet#ValueSet.expansion.contains" />
    </element>
  </differential>
</StructureDefinition>