{
  "resourceType": "StructureDefinition",
  "id": "RE06",
  "url": "http://ReuseBetweenEHRsForChildrenWithAML.dk/fhir/StructureDefinition/RE06",
  "name": "AttendingWard",
  "status": "draft",
  "description": "This profile contains information about the ward at which the patient receives treatment.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "HealthcareService",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/HealthcareService",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "HealthcareService",
        "path": "HealthcareService",
        "definition": "This profile contains information about the ward at which the patient receives treatment."
      },
      {
        "id": "HealthcareService.identifier",
        "path": "HealthcareService.identifier",
        "short": "Ward ID",
        "min": 1,
        "max": "1"
      },
      {
        "id": "HealthcareService.identifier.use",
        "path": "HealthcareService.identifier.use",
        "max": "0"
      },
      {
        "id": "HealthcareService.identifier.type",
        "path": "HealthcareService.identifier.type",
        "max": "0"
      },
      {
        "id": "HealthcareService.identifier.system",
        "path": "HealthcareService.identifier.system",
        "short": "Entry to hospital database for ward identifiers",
        "min": 1
      },
      {
        "id": "HealthcareService.identifier.value",
        "path": "HealthcareService.identifier.value",
        "short": "Entry for an unique value string for a ward ID",
        "min": 1
      },
      {
        "id": "HealthcareService.identifier.period",
        "path": "HealthcareService.identifier.period",
        "max": "0"
      },
      {
        "id": "HealthcareService.identifier.assigner",
        "path": "HealthcareService.identifier.assigner",
        "max": "0"
      },
      {
        "id": "HealthcareService.active",
        "path": "HealthcareService.active",
        "max": "0"
      },
      {
        "id": "HealthcareService.providedBy",
        "path": "HealthcareService.providedBy",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ReuseBetweenEHRsForChildrenWithAML.dk/fhir/StructureDefinition/RE08"
            ],
            "aggregation": [
              "bundled"
            ],
            "versioning": "specific"
          }
        ]
      },
      {
        "id": "HealthcareService.providedBy.reference",
        "path": "HealthcareService.providedBy.reference",
        "max": "0"
      },
      {
        "id": "HealthcareService.providedBy.type",
        "path": "HealthcareService.providedBy.type",
        "max": "0"
      },
      {
        "id": "HealthcareService.providedBy.identifier",
        "path": "HealthcareService.providedBy.identifier",
        "max": "0"
      },
      {
        "id": "HealthcareService.providedBy.display",
        "path": "HealthcareService.providedBy.display",
        "max": "0"
      },
      {
        "id": "HealthcareService.category",
        "path": "HealthcareService.category",
        "max": "0"
      },
      {
        "id": "HealthcareService.type",
        "path": "HealthcareService.type",
        "max": "0"
      },
      {
        "id": "HealthcareService.specialty",
        "path": "HealthcareService.specialty",
        "short": "The medical speciality of the ward",
        "definition": "Speciality of the ward",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required"
        }
      },
      {
        "id": "HealthcareService.specialty.coding",
        "path": "HealthcareService.specialty.coding",
        "max": "0"
      },
      {
        "id": "HealthcareService.specialty.coding.system",
        "path": "HealthcareService.specialty.coding.system",
        "fixedUri": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
      },
      {
        "id": "HealthcareService.specialty.text",
        "path": "HealthcareService.specialty.text",
        "max": "0"
      },
      {
        "id": "HealthcareService.location",
        "path": "HealthcareService.location",
        "max": "0"
      },
      {
        "id": "HealthcareService.name",
        "path": "HealthcareService.name",
        "short": "Name and function of the ward",
        "min": 1
      },
      {
        "id": "HealthcareService.comment",
        "path": "HealthcareService.comment",
        "max": "0"
      },
      {
        "id": "HealthcareService.extraDetails",
        "path": "HealthcareService.extraDetails",
        "max": "0"
      },
      {
        "id": "HealthcareService.photo",
        "path": "HealthcareService.photo",
        "max": "0"
      },
      {
        "id": "HealthcareService.telecom",
        "path": "HealthcareService.telecom",
        "max": "0"
      },
      {
        "id": "HealthcareService.coverageArea",
        "path": "HealthcareService.coverageArea",
        "max": "0"
      },
      {
        "id": "HealthcareService.serviceProvisionCode",
        "path": "HealthcareService.serviceProvisionCode",
        "max": "0"
      },
      {
        "id": "HealthcareService.eligibility",
        "path": "HealthcareService.eligibility",
        "max": "0"
      },
      {
        "id": "HealthcareService.program",
        "path": "HealthcareService.program",
        "max": "0"
      },
      {
        "id": "HealthcareService.characteristic",
        "path": "HealthcareService.characteristic",
        "max": "0"
      },
      {
        "id": "HealthcareService.communication",
        "path": "HealthcareService.communication",
        "max": "0"
      },
      {
        "id": "HealthcareService.referralMethod",
        "path": "HealthcareService.referralMethod",
        "max": "0"
      },
      {
        "id": "HealthcareService.appointmentRequired",
        "path": "HealthcareService.appointmentRequired",
        "max": "0"
      },
      {
        "id": "HealthcareService.availableTime",
        "path": "HealthcareService.availableTime",
        "max": "0"
      },
      {
        "id": "HealthcareService.notAvailable",
        "path": "HealthcareService.notAvailable",
        "max": "0"
      },
      {
        "id": "HealthcareService.availabilityExceptions",
        "path": "HealthcareService.availabilityExceptions",
        "max": "0"
      },
      {
        "id": "HealthcareService.endpoint",
        "path": "HealthcareService.endpoint",
        "max": "0"
      }
    ]
  }
}