<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="HiisDeviceDataRecorderEndpoint" />
  <url value="https://fhir.bfarm.de/StructureDefinition/HiisDeviceDataRecorderEndpoint" />
  <version value="3.1.0-TEST" />
  <name value="HiisDeviceDataRecorderEndpoint" />
  <title value="HiisDeviceDataRecorderEndpoint" />
  <status value="draft" />
  <description value="Definition of an endpoint for a medical aid interface (DeviceDataRecorder) in HIIS." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Endpoint" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Endpoint" />
  <derivation value="constraint" />
  <differential>
    <element id="Endpoint">
      <path value="Endpoint" />
      <short value="Medical Aid Interface Endpoint" />
      <definition value="Defines an endpoint for communication with a medical aid interface." />
      <mustSupport value="true" />
    </element>
    <element id="Endpoint.status">
      <path value="Endpoint.status" />
      <short value="Status" />
      <definition value="The status of the endpoint (always active)." />
      <fixedCode value="active" />
      <mustSupport value="true" />
    </element>
    <element id="Endpoint.connectionType">
      <path value="Endpoint.connectionType" />
      <short value="Connection Type" />
      <definition value="The type of connection (hl7-fhir-rest or oauth-authz-server)." />
      <type>
        <code value="Coding" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/CodingHiisEndpointConnectionType" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Endpoint.name">
      <path value="Endpoint.name" />
      <short value="Domain Name" />
      <definition value="The domain name of the endpoint." />
      <mustSupport value="true" />
    </element>
    <element id="Endpoint.payloadType">
      <path value="Endpoint.payloadType" />
      <short value="Data Type" />
      <definition value="The data type transmitted over this endpoint." />
      <mustSupport value="true" />
    </element>
    <element id="Endpoint.payloadType.coding">
      <path value="Endpoint.payloadType.coding" />
      <mustSupport value="true" />
    </element>
    <element id="Endpoint.payloadType.coding.system">
      <path value="Endpoint.payloadType.coding.system" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/endpoint-payload-type" />
      <mustSupport value="true" />
    </element>
    <element id="Endpoint.payloadType.coding.code">
      <path value="Endpoint.payloadType.coding.code" />
      <fixedCode value="any" />
      <mustSupport value="true" />
    </element>
    <element id="Endpoint.address">
      <path value="Endpoint.address" />
      <short value="Base URL" />
      <definition value="The base URL of the endpoint." />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>