<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="f5fe0306-4de9-4609-9ef5-8f03b3656ad6" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2016-11-07T12:21:35.757+00:00" />
  </meta>
  <url value="http://fhir.nhs.net/StructureDefinition/extension-registration-status-1" />
  <version value="1.0" />
  <name value="Extension-Registration-Status-1" />
  <status value="draft" />
  <publisher value="NHS Digital" />
  <contact>
    <name value="Interoperability Team" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
    </telecom>
  </contact>
  <date value="2016-08-03T00:00:00+01:00" />
  <description value="This Extension resource is constrained to support the registration status at the healthcare organization for the Patient resource." />
  <copyright value="Copyright © 2016 Health and Social Care Information Centre" />
  <fhirVersion value="1.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM" />
  </mapping>
  <kind value="datatype" />
  <constrainedType value="Extension" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="Patient" />
  <base value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <snapshot>
    <element>
      <path value="Extension" />
      <short value="The registration status for this patient" />
      <definition value="Optional Extensions Element - found in all resources " />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Element" />
      </type>
      <isModifier value="false" />
      <binding>
        <strength value="required" />
        <description value="Registration status of the patient" />
        <valueSetUri value="http://fhir.nhs.net/ValueSet/registration-status-1" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="Extension.url" />
      <representation value="xmlAttr" />
      <short value="Identifies the meaning of the extension" />
      <definition value="Source of the definition for the extension code - a logical name or a URL." />
      <comments value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific.  This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Extension.url" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://fhir.nhs.net/StructureDefinition/extension--registration-status-1" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="Extension.value[x]" />
      <name value="Registration Status" />
      <short value="The registration status for this patient at the healthcare organization" />
      <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Extension.value[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <description value="A vocabulary that identifies the status of registration for a patient at the healthcare organization" />
        <valueSetReference>
          <reference value="http://fhir.nhs.net/ValueSet/registration-status-1" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element>
      <path value="Extension" />
      <short value="The registration status for this patient" />
      <definition value="Optional Extensions Element - found in all resources " />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Element" />
      </type>
      <isModifier value="false" />
      <binding>
        <strength value="required" />
        <description value="Registration status of the patient" />
        <valueSetUri value="http://fhir.nhs.net/ValueSet/registration-status-1" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="Extension.url" />
      <representation value="xmlAttr" />
      <short value="Identifies the meaning of the extension" />
      <definition value="Source of the definition for the extension code - a logical name or a URL." />
      <comments value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific.  This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Extension.url" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://fhir.nhs.net/StructureDefinition/extension--registration-status-1" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="Extension.value[x]" />
      <name value="Registration Status" />
      <short value="The registration status for this patient at the healthcare organization" />
      <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Extension.value[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <description value="A vocabulary that identifies the status of registration for a patient at the healthcare organization" />
        <valueSetReference>
          <reference value="http://fhir.nhs.net/ValueSet/registration-status-1" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>