<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="au-patient" />
  <url value="http://hl7.org.au/fhir/StructureDefinition/au-patient" />
  <version value="1.1.0" />
  <name value="AUBasePatient" />
  <title value="AU Base Patient" />
  <status value="active" />
  <date value="2019-03-06T10:07:00+11:00" />
  <publisher value="Health Level Seven Australia (Patient Administration WG)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org.au/fhir" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This profile defines a patient administration details structure that includes core localisation concepts for use in an Australian context." />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Patient" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient" />
  <derivation value="constraint" />
  <differential>
    <element id="Patient">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use" />
      </extension>
      <path value="Patient" />
      <short value="A patient in an Australian healthcare context" />
      <definition value="Demographics and other administrative information about an individual receiving care or other health-related services." />
      <constraint>
        <key value="inv-pat-0" />
        <severity value="error" />
        <human value="If there is a birth time its date shall be the birth date" />
        <expression value="birthDate.extension.where(url='http://hl7.org/fhir/StructureDefinition/patient-birthTime').exists() implies birthDate.extension('http://hl7.org/fhir/StructureDefinition/patient-birthTime').value.toString().substring(0,10) = birthDate.toString()" />
      </constraint>
    </element>
    <element id="Patient.extension">
      <path value="Patient.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.extension:birthPlace">
      <path value="Patient.extension" />
      <sliceName value="birthPlace" />
      <short value="Patient Birth Place" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/birthPlace" />
      </type>
    </element>
    <element id="Patient.extension:indigenousStatus">
      <path value="Patient.extension" />
      <sliceName value="indigenousStatus" />
      <short value="Patient Indigenous Status" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/indigenous-status" />
      </type>
    </element>
    <element id="Patient.extension:closingTheGapRegistration">
      <path value="Patient.extension" />
      <sliceName value="closingTheGapRegistration" />
      <short value="Patient Closing the Gap Program Eligibility Indication" />
      <definition value="Indication for eligibility for the Closing the Gap program." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/closing-the-gap-registration" />
      </type>
    </element>
    <element id="Patient.extension:mothersMaidenName">
      <path value="Patient.extension" />
      <sliceName value="mothersMaidenName" />
      <short value="Patient Mother's Maiden Name" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName" />
      </type>
    </element>
    <element id="Patient.identifier">
      <path value="Patient.identifier" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="type" />
        </discriminator>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.identifier:ihiNumber">
      <path value="Patient.identifier" />
      <sliceName value="ihiNumber" />
      <short value="National Individual Healthcare Identifier (IHI)" />
      <definition value="National Healthcare Identifier (IHI) for the patient." />
      <requirements value="Identifier as assigned and available via Healthcare Identifiers (HI) service." />
      <constraint>
        <key value="inv-ihi-value-0" />
        <severity value="error" />
        <human value="IHI shall be an exactly 16 digit number" />
        <expression value="value.matches('^([0-9]{16})$')" />
      </constraint>
      <constraint>
        <key value="inv-ihi-value-1" />
        <severity value="error" />
        <human value="IHI prefix is 800360" />
        <expression value="value.startsWith('800360')" />
      </constraint>
      <constraint>
        <key value="inv-ihi-value-2" />
        <severity value="error" />
        <human value="IHI shall pass the Luhn algorithm check" />
        <expression value="(((select(value.substring(0,1).toInteger()).select(iif($this&lt;5, $this*2, (($this*2)-9))))+(value.substring(1,1).toInteger())+(select(value.substring(2,1).toInteger()).select(iif($this&lt;5, $this*2, (($this*2)-9))))+(value.substring(3,1).toInteger())+(select(value.substring(4,1).toInteger()).select(iif($this&lt;5, $this*2, (($this*2)-9))))+(value.substring(5,1).toInteger())+(select(value.substring(6,1).toInteger()).select(iif($this&lt;5, $this*2, (($this*2)-9))))+(value.substring(7,1).toInteger())+(select(value.substring(8,1).toInteger()).select(iif($this&lt;5, $this*2, (($this*2)-9))))+(value.substring(9,1).toInteger())+(select(value.substring(10,1).toInteger()).select(iif($this&lt;5, $this*2, (($this*2)-9))))+(value.substring(11,1).toInteger())+(select(value.substring(12,1).toInteger()).select(iif($this&lt;5, $this*2, (($this*2)-9))))+(value.substring(13,1).toInteger())+(select(value.substring(14,1).toInteger()).select(iif($this&lt;5, $this*2, (($this*2)-9))))+(value.substring(15,1).toInteger()))mod 10=0)" />
      </constraint>
    </element>
    <element id="Patient.identifier:ihiNumber.extension">
      <path value="Patient.identifier.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.identifier:ihiNumber.extension:ihiStatus">
      <path value="Patient.identifier.extension" />
      <sliceName value="ihiStatus" />
      <short value="Individual Healthcare Identifier (IHI) Number Status" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/ihi-status" />
      </type>
    </element>
    <element id="Patient.identifier:ihiNumber.extension:ihiRecordStatus">
      <path value="Patient.identifier.extension" />
      <sliceName value="ihiRecordStatus" />
      <short value="Individual Healthcare Identifier (IHI) Number Record Status" />
      <definition value="Individual Healthcare Identifier (IHI) value record status associated with an IHI identifier." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/ihi-record-status" />
      </type>
    </element>
    <element id="Patient.identifier:ihiNumber.type">
      <path value="Patient.identifier.type" />
      <short value="Coded identifier type for IHI" />
      <definition value="Coded identifier type for Individual Healthcare Identifier (IHI)." />
      <patternCodeableConcept>
        <coding>
          <system value="http://hl7.org/fhir/v2/0203" />
          <code value="NI" />
        </coding>
      </patternCodeableConcept>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="Local Identifier Type" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Patient.identifier:ihiNumber.type.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Patient.identifier.type.text" />
      <definition value="ihi" />
      <fixedString value="IHI" />
    </element>
    <element id="Patient.identifier:ihiNumber.system">
      <path value="Patient.identifier.system" />
      <short value="Namespace for IHI" />
      <definition value="This namespace is used for qualified identifiers to represent Individual Healthcare Identifier (IHI) numbers. An example of the syntax of an IHI represented as a qualified identifer using this namespace is: http://ns.electronichealth.net.au/id/hi/ihi/1.0/8003600000000000" />
      <min value="1" />
      <fixedUri value="http://ns.electronichealth.net.au/id/hi/ihi/1.0" />
    </element>
    <element id="Patient.identifier:ihiNumber.value">
      <path value="Patient.identifier.value" />
      <short value="IHI number" />
      <definition value="The 16 digit unique identifier for consumers of healthcare services." />
      <min value="1" />
      <example>
        <label value="IHI number" />
        <valueString value="8003608833357361" />
      </example>
      <maxLength value="16" />
    </element>
    <element id="Patient.identifier:medicareNumber">
      <path value="Patient.identifier" />
      <sliceName value="medicareNumber" />
      <short value="Medicare Number" />
      <definition value="Medicare number assigned to a patient.  This includes temporary and full Medicare card numbers." />
    </element>
    <element id="Patient.identifier:medicareNumber.type">
      <path value="Patient.identifier.type" />
      <short value="Coded identifier type for Medicare number" />
      <definition value="Medicare number assigned to a patient." />
      <patternCodeableConcept>
        <coding>
          <system value="http://hl7.org/fhir/v2/0203" />
          <code value="MC" />
        </coding>
      </patternCodeableConcept>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="Local Identifier Type" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Patient.identifier:medicareNumber.type.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Patient.identifier.type.text" />
      <definition value="Medicare number descriptive text." />
      <fixedString value="Medicare Number" />
    </element>
    <element id="Patient.identifier:medicareNumber.system">
      <path value="Patient.identifier.system" />
      <short value="Namespace for Medicare number" />
      <min value="1" />
      <fixedUri value="http://ns.electronichealth.net.au/id/medicare-number" />
    </element>
    <element id="Patient.identifier:medicareNumber.value">
      <path value="Patient.identifier.value" />
      <short value="Medicare number including optional individual reference number" />
      <definition value="10 digit Medicare number with optional 11th digit individual reference number (IRN)." />
      <min value="1" />
      <example>
        <label value="Medicare number" />
        <valueString value="32788511952" />
      </example>
      <maxLength value="11" />
    </element>
    <element id="Patient.identifier:medicareNumber.period">
      <path value="Patient.identifier.period" />
      <short value="Medicare number validity period" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:medicareNumber.period.end">
      <path value="Patient.identifier.period.end" />
      <short value="Medicare number expiry date" />
      <definition value="Expiry date for Medicare number. This is typically month and year only, but may incude day date part when this is a temporary Medicare number." />
      <min value="1" />
    </element>
    <element id="Patient.identifier:dvaNumber">
      <path value="Patient.identifier" />
      <sliceName value="dvaNumber" />
      <short value="Department of Veterans' Affairs (DVA) Number" />
      <definition value="Department of Veterans' Affairs (DVA) number." />
      <constraint>
        <key value="inv-dva-number-unspecified" />
        <severity value="error" />
        <human value="DVA number identifier type text must be 'DVA Number' when colour is not specified" />
        <expression value="type.coding.empty() implies type.text = 'DVA Number'" />
      </constraint>
      <constraint>
        <key value="inv-dva-number-gold" />
        <severity value="error" />
        <human value="DVA number identifier type text must be 'DVA Number (Gold)' when colour coding is DVG." />
        <expression value="type.coding.code='DVG' implies type.text = 'DVA Number (Gold)'" />
      </constraint>
      <constraint>
        <key value="inv-dva-number-white" />
        <severity value="error" />
        <human value="DVA number identifier type text must be 'DVA Number (White)' when colour coding is DVW." />
        <expression value="type.coding.code='DVW' implies type.text = 'DVA Number (White)'" />
      </constraint>
      <constraint>
        <key value="inv-dva-number-orange" />
        <severity value="error" />
        <human value="DVA number identifier type text must be 'DVA Number (Orange)' when colour coding is DVO." />
        <expression value="type.coding.code='DVO' implies type.text = 'DVA Number (Orange)'" />
      </constraint>
      <constraint>
        <key value="inv-dva-number-lilac" />
        <severity value="error" />
        <human value="DVA number identifier type text must be 'DVA Number (Lilac)' when colour coding is DVL." />
        <expression value="type.coding.code='DVL' implies type.text = 'DVA Number (Lilac)'" />
      </constraint>
      <constraint>
        <key value="inv-dva-number-text" />
        <severity value="error" />
        <human value="DVA number identifier type text must be one of 'DVA Number', 'DVA Number (Gold)',  'DVA Number (White), 'DVA Number (Orange), 'DVA Number (Lilac)'" />
        <expression value="type.text = 'DVA Number' or type.text = 'DVA Number (Gold)' or type.text = 'DVA Number (White)' or type.text = 'DVA Number (Orange)' or type.text = 'DVA Number (Lilac)'" />
      </constraint>
    </element>
    <element id="Patient.identifier:dvaNumber.type">
      <path value="Patient.identifier.type" />
      <short value="Coded identifier type for DVA number" />
      <definition value="Department of Veterans' Affairs (DVA) colour identifier type." />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="Local Identifier Type" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Patient.identifier:dvaNumber.type.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Patient.identifier.type.text" />
      <definition value="Type of DVA card (specific colour may be provided)" />
    </element>
    <element id="Patient.identifier:dvaNumber.system">
      <path value="Patient.identifier.system" />
      <short value="Namespace for DVA number" />
      <definition value="DVA number assigned uri." />
      <min value="1" />
      <fixedUri value="http://ns.electronichealth.net.au/id/dva" />
    </element>
    <element id="Patient.identifier:dvaNumber.value">
      <path value="Patient.identifier.value" />
      <short value="DVA number" />
      <definition value="Up to 9 digit value in the form AAXXNNNN[A]." />
      <comment value="Reference: http://meteor.aihw.gov.au/content/index.phtml/itemId/339127" />
      <min value="1" />
      <example>
        <label value="Department of Veterans' Affairs (DVA) number" />
        <valueString value="NBUR9080" />
      </example>
      <maxLength value="9" />
    </element>
    <element id="Patient.identifier:healthcareCard">
      <path value="Patient.identifier" />
      <sliceName value="healthcareCard" />
      <short value="Health Care Card Number" />
      <definition value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number." />
    </element>
    <element id="Patient.identifier:healthcareCard.type">
      <path value="Patient.identifier.type" />
      <short value="Coded identifier type for Health Care Card number" />
      <definition value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number." />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://hl7.org/fhir/v2/0203" />
          <code value="HC" />
        </coding>
      </patternCodeableConcept>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="Local Identifier Type" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Patient.identifier:healthcareCard.type.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Patient.identifier.type.text" />
      <fixedString value="Health Care Card Number" />
    </element>
    <element id="Patient.identifier:healthcareCard.system">
      <path value="Patient.identifier.system" />
      <short value="Namespace for Centrelink Customer Reference Number (CRN)" />
      <definition value="Namespace for Centrelink Customer Reference Number (CRN) values." />
      <min value="1" />
      <fixedUri value="http://ns.electronichealth.net.au/id/centrelink-customer-reference-number" />
    </element>
    <element id="Patient.identifier:healthcareCard.value">
      <path value="Patient.identifier.value" />
      <short value="Centrelink CRN" />
      <definition value="10 character identifier NNNNNNNNNA." />
      <comment value="A personal identifier assigned by Centrelink for the purposes of identifying people (and organisations) eligible for specific services." />
      <min value="1" />
      <example>
        <label value="DHS CRN" />
        <valueString value="307111942H" />
      </example>
      <maxLength value="10" />
    </element>
    <element id="Patient.identifier:pensionerConcessionCard">
      <path value="Patient.identifier" />
      <sliceName value="pensionerConcessionCard" />
      <short value="Pensioner Concession Card Number" />
      <definition value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number" />
    </element>
    <element id="Patient.identifier:pensionerConcessionCard.type">
      <path value="Patient.identifier.type" />
      <short value="Coded identifier type for Pensioner Concession Card number" />
      <definition value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://hl7.org/fhir/v2/0203" />
          <code value="PEN" />
        </coding>
      </patternCodeableConcept>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="Local Identifier Type" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Patient.identifier:pensionerConcessionCard.type.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Patient.identifier.type.text" />
      <fixedString value="Pensioner Concession Card Number" />
    </element>
    <element id="Patient.identifier:pensionerConcessionCard.system">
      <path value="Patient.identifier.system" />
      <short value="Namespace for Centrelink Customer Reference Number (CRN)" />
      <definition value="Namespace for Centrelink Customer Reference Number (CRN) values." />
      <min value="1" />
      <fixedUri value="http://ns.electronichealth.net.au/id/centrelink-customer-reference-number" />
    </element>
    <element id="Patient.identifier:pensionerConcessionCard.value">
      <path value="Patient.identifier.value" />
      <short value="Centrelink CRN" />
      <definition value="10 character identifier NNNNNNNNNA." />
      <comment value="A personal identifier assigned by Centrelink for the purposes of identifying people (and organisations) eligible for specific services." />
      <min value="1" />
      <example>
        <label value="DHS CRN" />
        <valueString value="307111942H" />
      </example>
      <maxLength value="10" />
    </element>
    <element id="Patient.identifier:commonwealthSeniorsHealthCard">
      <path value="Patient.identifier" />
      <sliceName value="commonwealthSeniorsHealthCard" />
      <short value="Commonwealth Seniors Health Card Number" />
      <definition value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number." />
    </element>
    <element id="Patient.identifier:commonwealthSeniorsHealthCard.type">
      <path value="Patient.identifier.type" />
      <short value="Coded identifier type for Commonwealth Seniors Health Card number" />
      <definition value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number." />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://hl7.org.au/fhir/v2/0203" />
          <code value="SEN" />
        </coding>
      </patternCodeableConcept>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="Local Identifier Type" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Patient.identifier:commonwealthSeniorsHealthCard.type.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Patient.identifier.type.text" />
      <fixedString value="Commonwealth Seniors Health Card" />
    </element>
    <element id="Patient.identifier:commonwealthSeniorsHealthCard.system">
      <path value="Patient.identifier.system" />
      <short value="Namespace for Centrelink Customer Reference Number (CRN)" />
      <definition value="Namespace for Customer Reference Number (CRN) values." />
      <min value="1" />
      <fixedUri value="http://ns.electronichealth.net.au/id/centrelink-customer-reference-number" />
    </element>
    <element id="Patient.identifier:commonwealthSeniorsHealthCard.value">
      <path value="Patient.identifier.value" />
      <short value="Centrelink CRN" />
      <definition value="10 character identifier NNNNNNNNNA" />
      <comment value="A personal identifier assigned by Centrelink for the purposes of identifying people (and organisations) eligible for specific services." />
      <min value="1" />
      <example>
        <label value="DHS CRN" />
        <valueString value="307111942H" />
      </example>
      <maxLength value="10" />
    </element>
    <element id="Patient.identifier:medicalRecordNumber">
      <path value="Patient.identifier" />
      <sliceName value="medicalRecordNumber" />
      <short value="Medical Record Number (MRN)" />
      <definition value="An assigned medical record number." />
    </element>
    <element id="Patient.identifier:medicalRecordNumber.type">
      <path value="Patient.identifier.type" />
      <short value="Coded identifier type for MRN" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://hl7.org/fhir/v2/0203" />
          <code value="MR" />
        </coding>
      </patternCodeableConcept>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="Local Identifier Type" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Patient.identifier:medicalRecordNumber.type.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Patient.identifier.type.text" />
      <fixedString value="Medical Record Number" />
    </element>
    <element id="Patient.identifier:medicalRecordNumber.system">
      <path value="Patient.identifier.system" />
      <short value="Medical record number system namespace" />
      <definition value="For a medical record number can use ABN scoped (http://ns.electronichealth.net.au/id/abn-scoped/medicalrecord/1.0/index.html), HPI-O scoped (http://ns.electronichealth.net.au/id/hpio-scoped/medicalrecord/1.0/index.html)or another system URN defining scope of MRN allocation." />
      <min value="1" />
    </element>
    <element id="Patient.identifier:medicalRecordNumber.value">
      <path value="Patient.identifier.value" />
      <short value="Medical record number" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:medicalRecordNumber.assigner">
      <path value="Patient.identifier.assigner" />
      <short value="Medical record number assigning entity" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:insurerNumber">
      <path value="Patient.identifier" />
      <sliceName value="insurerNumber" />
      <short value="Private Health Insurance Member Number" />
      <definition value="An insurer's member number." />
    </element>
    <element id="Patient.identifier:insurerNumber.type">
      <path value="Patient.identifier.type" />
      <short value="Coded identifier type for private health insurance member number" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://hl7.org/fhir/v2/0203" />
          <code value="MB" />
        </coding>
      </patternCodeableConcept>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="Local Identifier Type" />
        <valueSetReference>
          <reference value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Patient.identifier:insurerNumber.type.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Patient.identifier.type.text" />
      <fixedString value="Private Health Insurance Member Number" />
    </element>
    <element id="Patient.identifier:insurerNumber.value">
      <path value="Patient.identifier.value" />
      <short value="Private health insurance member number" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:insurerNumber.assigner">
      <path value="Patient.identifier.assigner" />
      <short value="Private health insurer" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:insurerNumber.assigner.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Patient.identifier.assigner.display" />
      <min value="1" />
    </element>
    <element id="Patient.birthDate">
      <path value="Patient.birthDate" />
      <short value="Date of birth extended for time and accuracy indicator" />
      <requirements value="Age of the individual drives many clinical processes. May include accuracy indicator and specific birth time." />
    </element>
    <element id="Patient.birthDate.extension">
      <path value="Patient.birthDate.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.birthDate.extension:accuracyIndicator">
      <path value="Patient.birthDate.extension" />
      <sliceName value="accuracyIndicator" />
      <short value="Birth Date Accuracy Indicator" />
      <comment value="In some circumstances, systems may only have date or datetime data that has unknown or estimated parts.  This coding establishes the acuraccy of the day, month and year parts." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator" />
      </type>
    </element>
    <element id="Patient.birthDate.extension:birthTime">
      <path value="Patient.birthDate.extension" />
      <sliceName value="birthTime" />
      <short value="Birth Time" />
      <definition value="The time of day that the patient was born. This includes the date to ensure that the timezone information can be communicated effectively." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime" />
      </type>
    </element>
    <element id="Patient.deceased[x]">
      <path value="Patient.deceased[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <definition value="Indicates if the individual is deceased or not. Deceased date accuracy indicator is optional." />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Patient.deceased[x]:deceasedBoolean">
      <path value="Patient.deceased[x]" />
      <sliceName value="deceasedBoolean" />
      <short value="Deceased Indicator" />
      <definition value="Boolean indicator if the individual is deceased or not." />
      <type>
        <code value="boolean" />
      </type>
    </element>
    <element id="Patient.deceased[x]:deceasedDateTime">
      <path value="Patient.deceased[x]" />
      <sliceName value="deceasedDateTime" />
      <short value="Deceased Date Time" />
      <definition value="Indivdual deceased date-time with optional accuracy indicator." />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Patient.deceased[x]:deceasedDateTime.extension">
      <path value="Patient.deceased[x].extension" />
      <min value="0" />
      <max value="1" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.deceased[x]:deceasedDateTime.extension:accuracyIndicator">
      <path value="Patient.deceased[x].extension" />
      <sliceName value="accuracyIndicator" />
      <short value="Deceased Date Accuracy Indicator" />
      <comment value="In some circumstances, systems may only have date or datetime data that has unknown or estimated parts.  This coding establishes the acuraccy of the day, month and year parts." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator" />
      </type>
    </element>
    <element id="Patient.communication">
      <path value="Patient.communication" />
    </element>
    <element id="Patient.communication.language">
      <path value="Patient.communication.language" />
      <binding>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="https://healthterminologies.gov.au/fhir/ValueSet/common-languages-australia-2" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>