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