<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://nshealth.ca/fhir/MedicalDevice/LogicalModel" />
  <version value="1.0.0" />
  <name value="NSHMedicalDevice" />
  <title value="NSH Medical Device" />
  <status value="draft" />
  <date value="2023-06-13T14:30:40.8758377+00:00" />
  <description value="A model to represent the information requirements of a medical device within Nova Scotia Health" />
  <fhirVersion value="4.0.1" />
  <kind value="logical" />
  <abstract value="false" />
  <type value="http://nshealth.ca/fhir/ClinicalModel/ClinicalDevice" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <snapshot>
    <element id="ClinicalDevice">
      <path value="ClinicalDevice" />
      <short value="Base for all elements" />
      <definition value="Base definition for all elements in a resource." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="ClinicalDevice" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Element" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.id">
      <path value="ClinicalDevice.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.extension">
      <path value="ClinicalDevice.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="ClinicalDevice.ProvinicalBMENumber">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="ClinicalDevice.ProvinicalBMENumber" />
      <short value="Unique Identifier for Provincial Medical Device Assets." />
      <definition value="Unique Identifier for Provincial Medical Device Assets." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.ProvinicalBMENumber" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Identifier" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Identifier" />
      </type>
      <fixedIdentifier>
        <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-ns-bme-number" />
      </fixedIdentifier>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Identifier" />
      </mapping>
    </element>
    <element id="ClinicalDevice.UMDNSDescriptor">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="ClinicalDevice.UMDNSDescriptor" />
      <short value="UMDNS standardized device code" />
      <definition value="UMDNS standardized device code concept definitions.The Emergency Care Research Institute (ECRI) Universal Medical Device Nomenclature System (UMDNS) Device Number." />
      <comment value="None" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.UMDNSDescriptor" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <binding>
        <strength value="required" />
        <valueSet value="http://nshealth.ca/fhir/ValueSet/NSHA_UMDNS_Descriptor" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
    </element>
    <element id="ClinicalDevice.SerialNumber">
      <path value="ClinicalDevice.SerialNumber" />
      <short value="The Manufacturer's serial number." />
      <definition value="The Manufacturer's serial number is a unique identifier issued for every medical device asset. No two serial numbers should ever match." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.SerialNumber" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.EquipmentStatus">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="ClinicalDevice.EquipmentStatus" />
      <short value="Equipment Status" />
      <definition value="Equipment Status. Used to describe the current status of the equipment. Possible Status Values: E-Education/No Patient Use, IS-In Service, ISP-Pending, OS-Out of Service, OSM-Missing, OSS-Stored, OST-Transferred/sold, X-Excluded. Only a status of IS, ISP, OSS and OSM are included in the export reports at this time." />
      <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.EquipmentStatus" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <binding>
        <strength value="required" />
        <valueSet value="http://nshealth.ca/fhir/ValueSet/MedicalDeviceEquipmentStatus" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
    </element>
    <element id="ClinicalDevice.StandardizedManufacturer">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="ClinicalDevice.StandardizedManufacturer" />
      <short value="Standardized Manufacturer" />
      <definition value="The Standardized name of the Manufacturer of the device." />
      <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.StandardizedManufacturer" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
    </element>
    <element id="ClinicalDevice.EquipmentManufacturer">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="ClinicalDevice.EquipmentManufacturer" />
      <short value="Base for elements defined inside a resource" />
      <definition value="Base definition for all elements that are defined inside a resource - but not those in a data type." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.EquipmentManufacturer" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.EquipmentManufacturer.id">
      <path value="ClinicalDevice.EquipmentManufacturer.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.EquipmentManufacturer.extension">
      <path value="ClinicalDevice.EquipmentManufacturer.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="ClinicalDevice.EquipmentManufacturer.modifierExtension">
      <path value="ClinicalDevice.EquipmentManufacturer.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="ClinicalDevice.EquipmentManufacturer.ModelNumber">
      <path value="ClinicalDevice.EquipmentManufacturer.ModelNumber" />
      <short value="Model Number" />
      <definition value="A sequence of Unicode characters" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.EquipmentManufacturer.ModelNumber" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.EquipmentManufacturer.ModelName">
      <path value="ClinicalDevice.EquipmentManufacturer.ModelName" />
      <short value="Model Name" />
      <definition value="Trade name given to a vendor’s device that describes the device model." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.EquipmentManufacturer.ModelName" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Zone">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="ClinicalDevice.Zone" />
      <short value="A reference to a code defined by a terminology system" />
      <definition value="A reference to a code defined by a terminology system." />
      <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.Zone" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <binding>
        <strength value="required" />
        <valueSet value="http://nshealth.ca/fhir/ValueSet/NSHAManagementZone" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Facility">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="ClinicalDevice.Facility" />
      <short value="Base for elements defined inside a resource" />
      <definition value="Base definition for all elements that are defined inside a resource - but not those in a data type." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.Facility" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Facility.id">
      <path value="ClinicalDevice.Facility.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Facility.extension">
      <path value="ClinicalDevice.Facility.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Facility.modifierExtension">
      <path value="ClinicalDevice.Facility.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Facility.Name">
      <path value="ClinicalDevice.Facility.Name" />
      <short value="Standardized description that indicates the name of the facility." />
      <definition value="Standardized description that indicates the name of the facility." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.Facility.Name" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Facility.Latitude">
      <path value="ClinicalDevice.Facility.Latitude" />
      <short value="Latitude of the Facility." />
      <definition value="Latitude of the Facility." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.Facility.Latitude" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Facility.Longitude">
      <path value="ClinicalDevice.Facility.Longitude" />
      <short value="Longitude of the Facility." />
      <definition value="Longitude of the Facility." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.Facility.Longitude" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Department">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="ClinicalDevice.Department" />
      <short value="Base for elements defined inside a resource" />
      <definition value="Base definition for all elements that are defined inside a resource - but not those in a data type." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.Department" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Department.id">
      <path value="ClinicalDevice.Department.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Department.extension">
      <path value="ClinicalDevice.Department.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Department.modifierExtension">
      <path value="ClinicalDevice.Department.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Department.Code">
      <path value="ClinicalDevice.Department.Code" />
      <short value="Responsibe department code" />
      <definition value="Dept code indicates the department that is responsible for the device." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.Department.Code" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Department.Description">
      <path value="ClinicalDevice.Department.Description" />
      <short value="Responsible department description" />
      <definition value="Description of the department that is responsible for the device." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.Department.Description" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.Location">
      <path value="ClinicalDevice.Location" />
      <short value="Describes equipment location." />
      <definition value="Describes equipment location." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.Location" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.DeviceCondition">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="ClinicalDevice.DeviceCondition" />
      <short value="The condition of the medical device" />
      <definition value="A reference to a code defined by a terminology system." />
      <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.DeviceCondition" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <binding>
        <strength value="required" />
        <valueSet value="http://nshealth.ca/fhir/ValueSet/MedicalDeviceCondition" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
    </element>
    <element id="ClinicalDevice.DeviceConditionDate">
      <path value="ClinicalDevice.DeviceConditionDate" />
      <short value="Date the Condition was last assessed and assigned." />
      <definition value="Date the Condition was last assessed and assigned." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.DeviceConditionDate" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="date" />
        <profile value="http://hl7.org/fhir/StructureDefinition/date" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.DevicedEntered">
      <path value="ClinicalDevice.DevicedEntered" />
      <short value="The date the Device was entered into the CMMS DB Instance as In-Service." />
      <definition value="The date the Device was entered into the CMMS DB Instance as In-Service." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.DevicedEntered" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="date" />
        <profile value="http://hl7.org/fhir/StructureDefinition/date" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.WarrantyExpiration">
      <path value="ClinicalDevice.WarrantyExpiration" />
      <short value="Date the Warranty on the equipment expires." />
      <definition value="Date the Warranty on the equipment expires." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.WarrantyExpiration" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="date" />
        <profile value="http://hl7.org/fhir/StructureDefinition/date" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.PurchaseCost">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="ClinicalDevice.PurchaseCost" />
      <short value="Cost" />
      <definition value="The Purchase Cost of the device" />
      <comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.PurchaseCost" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/MoneyQuantity" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="qty-3" />
        <severity value="error" />
        <human value="If a code for the unit is present, the system SHALL also be present" />
        <expression value="code.empty() or system.exists()" />
        <xpath value="not(exists(f:code)) or exists(f:system)" />
        <source value="http://hl7.org/fhir/StructureDefinition/Quantity" />
      </constraint>
      <constraint>
        <key value="mqty-1" />
        <severity value="error" />
        <human value="There SHALL be a code if there is a value and it SHALL be an expression of currency.  If system is present, it SHALL be ISO 4217 (system = &quot;urn:iso:std:iso:4217&quot; - currency)." />
        <expression value="(code.exists() or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217')" />
        <xpath value="(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='urn:iso:std:iso:4217')" />
        <source value="http://hl7.org/fhir/StructureDefinition/MoneyQuantity" />
      </constraint>
      <isModifier value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="SN (see also Range) or CQ" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="PQ, IVL&lt;PQ&gt;, MO, CO, depending on the values" />
      </mapping>
    </element>
    <element id="ClinicalDevice.EndOfProduction">
      <path value="ClinicalDevice.EndOfProduction" />
      <short value="RF End of Production" />
      <definition value="The date that the vendor has issued a notification that the device will no longer be in production." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.EndOfProduction" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="date" />
        <profile value="http://hl7.org/fhir/StructureDefinition/date" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ClinicalDevice.EndOfSupport">
      <path value="ClinicalDevice.EndOfSupport" />
      <short value="Support End Date" />
      <definition value="The date that the vendor has issued a notification that the device will no longer be supported in support" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ClinicalDevice.EndOfSupport" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="date" />
        <profile value="http://hl7.org/fhir/StructureDefinition/date" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="ClinicalDevice">
      <path value="ClinicalDevice" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Element" />
      </type>
    </element>
    <element id="ClinicalDevice.ProvinicalBMENumber">
      <path value="ClinicalDevice.ProvinicalBMENumber" />
      <short value="Unique Identifier for Provincial Medical Device Assets." />
      <definition value="Unique Identifier for Provincial Medical Device Assets." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Identifier" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Identifier" />
      </type>
      <fixedIdentifier>
        <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-ns-bme-number" />
      </fixedIdentifier>
    </element>
    <element id="ClinicalDevice.UMDNSDescriptor">
      <path value="ClinicalDevice.UMDNSDescriptor" />
      <short value="UMDNS standardized device code" />
      <definition value="UMDNS standardized device code concept definitions.The Emergency Care Research Institute (ECRI) Universal Medical Device Nomenclature System (UMDNS) Device Number." />
      <comment value="None" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://nshealth.ca/fhir/ValueSet/NSHA_UMDNS_Descriptor" />
      </binding>
    </element>
    <element id="ClinicalDevice.SerialNumber">
      <path value="ClinicalDevice.SerialNumber" />
      <short value="The Manufacturer's serial number." />
      <definition value="The Manufacturer's serial number is a unique identifier issued for every medical device asset. No two serial numbers should ever match." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="ClinicalDevice.EquipmentStatus">
      <path value="ClinicalDevice.EquipmentStatus" />
      <short value="Equipment Status" />
      <definition value="Equipment Status. Used to describe the current status of the equipment. Possible Status Values: E-Education/No Patient Use, IS-In Service, ISP-Pending, OS-Out of Service, OSM-Missing, OSS-Stored, OST-Transferred/sold, X-Excluded. Only a status of IS, ISP, OSS and OSM are included in the export reports at this time." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://nshealth.ca/fhir/ValueSet/MedicalDeviceEquipmentStatus" />
      </binding>
    </element>
    <element id="ClinicalDevice.StandardizedManufacturer">
      <path value="ClinicalDevice.StandardizedManufacturer" />
      <short value="Standardized Manufacturer" />
      <definition value="The Standardized name of the Manufacturer of the device." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
    </element>
    <element id="ClinicalDevice.EquipmentManufacturer">
      <path value="ClinicalDevice.EquipmentManufacturer" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="ClinicalDevice.EquipmentManufacturer.ModelNumber">
      <path value="ClinicalDevice.EquipmentManufacturer.ModelNumber" />
      <short value="Model Number" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="ClinicalDevice.EquipmentManufacturer.ModelName">
      <path value="ClinicalDevice.EquipmentManufacturer.ModelName" />
      <short value="Model Name" />
      <definition value="Trade name given to a vendor’s device that describes the device model." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="ClinicalDevice.Zone">
      <path value="ClinicalDevice.Zone" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://nshealth.ca/fhir/ValueSet/NSHAManagementZone" />
      </binding>
    </element>
    <element id="ClinicalDevice.Facility">
      <path value="ClinicalDevice.Facility" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="ClinicalDevice.Facility.Name">
      <path value="ClinicalDevice.Facility.Name" />
      <short value="Standardized description that indicates the name of the facility." />
      <definition value="Standardized description that indicates the name of the facility." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="ClinicalDevice.Facility.Latitude">
      <path value="ClinicalDevice.Facility.Latitude" />
      <short value="Latitude of the Facility." />
      <definition value="Latitude of the Facility." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="ClinicalDevice.Facility.Longitude">
      <path value="ClinicalDevice.Facility.Longitude" />
      <short value="Longitude of the Facility." />
      <definition value="Longitude of the Facility." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="ClinicalDevice.Department">
      <path value="ClinicalDevice.Department" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="ClinicalDevice.Department.Code">
      <path value="ClinicalDevice.Department.Code" />
      <short value="Responsibe department code" />
      <definition value="Dept code indicates the department that is responsible for the device." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="ClinicalDevice.Department.Description">
      <path value="ClinicalDevice.Department.Description" />
      <short value="Responsible department description" />
      <definition value="Description of the department that is responsible for the device." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="ClinicalDevice.Location">
      <path value="ClinicalDevice.Location" />
      <short value="Describes equipment location." />
      <definition value="Describes equipment location." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="ClinicalDevice.DeviceCondition">
      <path value="ClinicalDevice.DeviceCondition" />
      <short value="The condition of the medical device" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://nshealth.ca/fhir/ValueSet/MedicalDeviceCondition" />
      </binding>
    </element>
    <element id="ClinicalDevice.DeviceConditionDate">
      <path value="ClinicalDevice.DeviceConditionDate" />
      <short value="Date the Condition was last assessed and assigned." />
      <definition value="Date the Condition was last assessed and assigned." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="date" />
        <profile value="http://hl7.org/fhir/StructureDefinition/date" />
      </type>
    </element>
    <element id="ClinicalDevice.DevicedEntered">
      <path value="ClinicalDevice.DevicedEntered" />
      <short value="The date the Device was entered into the CMMS DB Instance as In-Service." />
      <definition value="The date the Device was entered into the CMMS DB Instance as In-Service." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="date" />
        <profile value="http://hl7.org/fhir/StructureDefinition/date" />
      </type>
    </element>
    <element id="ClinicalDevice.WarrantyExpiration">
      <path value="ClinicalDevice.WarrantyExpiration" />
      <short value="Date the Warranty on the equipment expires." />
      <definition value="Date the Warranty on the equipment expires." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="date" />
        <profile value="http://hl7.org/fhir/StructureDefinition/date" />
      </type>
    </element>
    <element id="ClinicalDevice.PurchaseCost">
      <path value="ClinicalDevice.PurchaseCost" />
      <short value="Cost" />
      <definition value="The Purchase Cost of the device" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/MoneyQuantity" />
      </type>
    </element>
    <element id="ClinicalDevice.EndOfProduction">
      <path value="ClinicalDevice.EndOfProduction" />
      <short value="RF End of Production" />
      <definition value="The date that the vendor has issued a notification that the device will no longer be in production." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="date" />
        <profile value="http://hl7.org/fhir/StructureDefinition/date" />
      </type>
    </element>
    <element id="ClinicalDevice.EndOfSupport">
      <path value="ClinicalDevice.EndOfSupport" />
      <short value="Support End Date" />
      <definition value="The date that the vendor has issued a notification that the device will no longer be supported in support" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="date" />
        <profile value="http://hl7.org/fhir/StructureDefinition/date" />
      </type>
    </element>
  </differential>
</StructureDefinition>