{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-08-03T15:17:25.633+00:00"
  },
  "url": "StructureDefinition/UWearMePatient",
  "version": "0.1",
  "name": "UWearMePatient",
  "status": "draft",
  "date": "2017-08-03T14:59:01.09+00:00",
  "purpose": "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": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:subscription",
        "path": "Patient.extension",
        "sliceName": "subscription",
        "code": [
          {
            "version": "0.1",
            "code": "N",
            "display": "NORMAL"
          },
          {
            "system": "http://uWearMe.com/subs",
            "version": "0.1",
            "code": "G",
            "display": "GOLD"
          },
          {
            "system": "http://uWearMe.com/subs",
            "version": "0.1",
            "code": "P",
            "display": "PLATINUM"
          },
          {
            "system": "http://uWearMe.com/subs",
            "version": "0.1",
            "code": "F",
            "display": "FAMILY"
          }
        ],
        "short": "need to create a patient category based on the subscription level",
        "comment": "N – NORMAL (patient is not paying)\r\nG – GOLD (patient is paying usd 8 per month)\r\nP – PLATINUM (patient is paying usd 28 per month)\r\nF – FAMILY (patient is paying usd 35 per month, up to 4 persons)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "subscription"
          }
        ],
        "binding": {
          "strength": "required"
        }
      },
      {
        "id": "Patient.identifier.type",
        "path": "Patient.identifier.type",
        "max": "0"
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "fixedUri": "www.mypatientidentifier.com/ids"
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      }
    ]
  }
}