<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://nshealth.ca/fhir/LogicalModel-HealthcareRegistry-HealthcareService" />
  <name value="LogicalModelHealthcareRegistryHealthcareService" />
  <status value="draft" />
  <description value="A model to describe the data items required to represent a healthcare service.&#xD;&#xA;The service MAY have a realtionship with a location (unless it is virtual) and SHOULD bre related to an origanization." />
  <fhirVersion value="4.0.1" />
  <kind value="logical" />
  <abstract value="false" />
  <type value="https://nshealth.ca/fhir/LogicalModel-HealthcareRegistry-HealthcareService" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <differential>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Element" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.active">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.active" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="boolean" />
        <profile value="http://hl7.org/fhir/StructureDefinition/boolean" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.operationalStatus">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.operationalStatus" />
      <definition value="The operational status of the service." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.organization">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.organization" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.location">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.location" />
      <definition value="A reference to the location where the service if provided from. &#xD;&#xA;Note that not all services are delivered from physical locations and as such this data element is optional." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.category">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.category" />
      <definition value="A code to denote the category of healthcare service" />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.name">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.name" />
      <definition value="The name of the healthcare service. &#xD;&#xA;This data element may be provided in multiple languages." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.serviceDescription">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.serviceDescription" />
      <short value="A description of the service" />
      <definition value="A description of the service. Initially a generic description based on the service category" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.bookingMethod">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.bookingMethod" />
      <short value="Booking method" />
      <definition value="The method by which a citizen can book interaction with the service&#xD;&#xA;&#xD;&#xA;online | phone | email | in-person" />
      <comment value="." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="ContactPoint" />
        <profile value="http://hl7.org/fhir/StructureDefinition/ContactPoint" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.prescriptionBookingMethod">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.prescriptionBookingMethod" />
      <short value="The link to make a booking" />
      <definition value="The link to enable a booking to be made with the service." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="ContactPoint" />
        <profile value="http://hl7.org/fhir/StructureDefinition/ContactPoint" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.referralRequired">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.referralRequired" />
      <short value="Referral Required?" />
      <definition value="Denotes whether a referral is required before the service can be used." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
        <profile value="http://hl7.org/fhir/StructureDefinition/boolean" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.telecom">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.telecom" />
      <definition value="Points of contact for the healthcare service. These may be phone, email or website URLs." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="ContactPoint" />
        <profile value="http://hl7.org/fhir/StructureDefinition/ContactPoint" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.availability">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.availability" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.availability.availableDays">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.availability.availableDays" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.availability.availableDays.dayOfWeek">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.availability.availableDays.dayOfWeek" />
      <short value="Day of the week" />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.availability.availableDays.startTime">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.availability.availableDays.startTime" />
      <short value="Start time" />
      <definition value="The stat time for a period of opening" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="time" />
        <profile value="http://hl7.org/fhir/StructureDefinition/time" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.availability.availableDays.endTime">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.availability.availableDays.endTime" />
      <short value="End time" />
      <definition value="The end time for a period of opening" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="time" />
        <profile value="http://hl7.org/fhir/StructureDefinition/time" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.availability.availableDays.allDay">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.availability.availableDays.allDay" />
      <definition value="A flag to denote the service is available for the whole day." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
        <profile value="http://hl7.org/fhir/StructureDefinition/boolean" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.availability.nonAvailability">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.availability.nonAvailability" />
      <short value="Periods when there is no availability." />
      <definition value="Periods when there is no availability." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.availability.nonAvailability.reason">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.availability.nonAvailability.reason" />
      <short value="Reason" />
      <definition value="The reason for non availability" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.availability.nonAvailability.periodStart">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.availability.nonAvailability.periodStart" />
      <short value="Start dateTime of non availability" />
      <definition value="Start dateTime of non availability" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
        <profile value="http://hl7.org/fhir/StructureDefinition/dateTime" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.availability.nonAvailability.periodEnd">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.availability.nonAvailability.periodEnd" />
      <short value="End dateTime of non availability" />
      <definition value="End dateTime of non availability" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
        <profile value="http://hl7.org/fhir/StructureDefinition/dateTime" />
      </type>
    </element>
    <element id="LogicalModel-HealthcareRegistry-HealthcareService.availability.availabilityException">
      <path value="LogicalModel-HealthcareRegistry-HealthcareService.availability.availabilityException" />
      <short value="Exceptions to the usual availability" />
      <definition value="Exceptions to the usual availability schedule (e.g. public holidays)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
  </differential>
</StructureDefinition>