<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2017-08-03T11:17:25.633-04:00" />
  </meta>
  <url value="StructureDefinition/UWearMePatient" />
  <version value="0.1" />
  <name value="UWearMePatient" />
  <status value="draft" />
  <date value="2017-08-03T10:59:01.09-04:00" />
  <purpose value="This is a UWearMe Patient. UWearMe is suddenly in economic stress. They need to create a patient category based on the subscription level. This new category should be included in the patient resource when the wearable device sends the measures, because based on the patient category; the system may or may not store all the measures." />
  <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" />
  <snapshot />
  <differential>
    <element>
      <path value="Patient.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.extension:subscription">
      <path value="Patient.extension" />
      <sliceName value="subscription" />
      <code>
        <version value="0.1" />
        <code value="N" />
        <display value="NORMAL" />
      </code>
      <code>
        <system value="http://uWearMe.com/subs" />
        <version value="0.1" />
        <code value="G" />
        <display value="GOLD" />
      </code>
      <code>
        <system value="http://uWearMe.com/subs" />
        <version value="0.1" />
        <code value="P" />
        <display value="PLATINUM" />
      </code>
      <code>
        <system value="http://uWearMe.com/subs" />
        <version value="0.1" />
        <code value="F" />
        <display value="FAMILY" />
      </code>
      <short value="need to create a patient category based on the subscription level" />
      <comment value="N – NORMAL (patient is not paying)&#xD;&#xA;G – GOLD (patient is paying usd 8 per month)&#xD;&#xA;P – PLATINUM (patient is paying usd 28 per month)&#xD;&#xA;F – FAMILY (patient is paying usd 35 per month, up to 4 persons)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="subscription" />
      </type>
      <binding>
        <strength value="required" />
      </binding>
    </element>
    <element id="Patient.identifier.type">
      <path value="Patient.identifier.type" />
      <max value="0" />
    </element>
    <element id="Patient.identifier.system">
      <path value="Patient.identifier.system" />
      <fixedUri value="www.mypatientidentifier.com/ids" />
    </element>
    <element id="Patient.identifier.value">
      <path value="Patient.identifier.value" />
      <min value="1" />
    </element>
    <element id="Patient.identifier.period">
      <path value="Patient.identifier.period" />
      <max value="0" />
    </element>
    <element id="Patient.identifier.assigner">
      <path value="Patient.identifier.assigner" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>