{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Encounter-ForADT-Child",
  "name": "Encounter-ForADT-Child",
  "status": "active",
  "description": "Dedalus API Framework core profile for Encounter-Child for ADT transactions",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter.meta",
        "path": "Encounter.meta",
        "min": 1
      },
      {
        "id": "Encounter.status",
        "path": "Encounter.status",
        "short": "in-progress | finished | cancelled",
        "definition": "in-progress | finished | cancelled."
      },
      {
        "id": "Encounter.class",
        "path": "Encounter.class",
        "short": "inpatient | short stay",
        "definition": "inpatient | short stay",
        "comment": "Use code: \"IMP\", display: \"inpatient\" for inpatient admissions, code: \"SS\", display: \"short stay\" for outpatient admissions",
        "min": 1
      },
      {
        "id": "Encounter.class.code",
        "path": "Encounter.class.code",
        "min": 1
      },
      {
        "id": "Encounter.type",
        "path": "Encounter.type",
        "min": 1,
        "max": "1",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://apiframework.dedalus.eu/fhir/CodeSystem/EncounterType",
              "code": "CH",
              "display": "Encounter CHILD"
            }
          ],
          "text": "CHILD"
        }
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "short": "The patient or group present at the encounter",
        "definition": "The patient or group present at the encounter.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          }
        ]
      },
      {
        "id": "Encounter.participant.type",
        "path": "Encounter.participant.type",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Encounter.period",
        "path": "Encounter.period",
        "min": 1
      },
      {
        "id": "Encounter.period.start",
        "path": "Encounter.period.start",
        "min": 1
      },
      {
        "id": "Encounter.location",
        "path": "Encounter.location",
        "mustSupport": true
      },
      {
        "id": "Encounter.location.location",
        "path": "Encounter.location.location",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Location"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceProvider",
        "path": "Encounter.serviceProvider",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Organization",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Encounter.partOf",
        "path": "Encounter.partOf",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Encounter-ForADT-Master",
            "aggregation": [
              "referenced",
              "contained",
              "bundled"
            ]
          }
        ]
      }
    ]
  }
}