<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="AdtService" />
  <language value="NL" />
  <url value="http://hl7.org/fhir/StructureDefinition/AdtService" />
  <version value="0.1" />
  <name value="AdtService" />
  <status value="active" />
  <experimental value="false" />
  <date value="2023-10-30T10:06:41.5966626+00:00" />
  <publisher value="Adapcare" />
  <contact>
    <name value="Martijn Schimmel" />
    <telecom>
      <system value="email" />
      <value value="m.schimmel@adapcare.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Store Adt Messages from MyHealthConnect in Fhir Adapcare" />
  <purpose value="Resource to store ADT messages into fhir r3" />
  <copyright value="Adapcare" />
  <fhirVersion value="3.0.2" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="AdtService" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <element id="AdtService.implicitRules">
      <path value="AdtService.implicitRules" />
      <max value="0" />
    </element>
    <element id="AdtService.language">
      <path value="AdtService.language" />
      <max value="0" />
    </element>
    <element id="AdtService.adtbodybase64">
      <path value="AdtService.adtbodybase64" />
      <short value="Base64 encoded content of the ADT2 message" />
      <definition value="Base64 encoded content of the Adt2 message." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="AdtService.type">
      <path value="AdtService.type" />
      <short value="A01 | A02 | A03 | A04 | A05 | A08 | A11 | A12 | A13 | +" />
      <definition value="Subtype of the adt message" />
      <requirements value="There are quite a few subtypes of this message that depend on the situation and                 the action to be taken.." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="AdtService.status">
      <path value="AdtService.status" />
      <short value="new | processing | completed | +" />
      <definition value="The current status of the AdtService." />
      <requirements value="These states enable coordination of AdtService status with                 off-the-shelf workflow solutions that support automation of AdtService messages." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="AdtService.owner">
      <path value="AdtService.owner" />
      <short value="Responsible individual" />
      <definition value="Individual organization currently responsible" />
      <comment value="AdtService may be created with an owner not yet identified." />
      <requirements value="Identifies who is expected to perform this task." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="AdtService.requester">
      <path value="AdtService.requester" />
      <short value="Who is asking for AdtService to be done" />
      <definition value="The creator of the AdtService." />
      <requirements value="Identifies who created this AdtService." />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="AdtService.requester.agent">
      <path value="AdtService.requester.agent" />
      <short value="Individual asking for AdtService" />
      <definition value="The organization, practitioner, etc. who initiated the adt service." />
      <alias value="Initiator" />
      <alias value="Author" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <isSummary value="true" />
    </element>
  </differential>
</StructureDefinition>