{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-10-16T09:10:41.036+00:00"
  },
  "url": "http://pchalliance.org/phdfhir/StructureDefinition/PhdPatient",
  "name": "PhdPatient",
  "status": "draft",
  "date": "2017-08-04T10:04:53.838+00:00",
  "description": "The patient information reported from personal health gateways (PHG)",
  "purpose": "All PHD related Observation resources reference a Patient resource containing a minimal set of information sufficient to identify the patient. However, it may require additional information to link the patient to a person that is only available to an authorized entity. In this manner, PHMI can be protected.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient",
        "path": "Patient",
        "comment": "Note that the only element that is required to be populated is the identifier which can be made opaque to a third party viewer. PCHA also supports a situation where the PHG can be provided a logical id to a Patient Resource out of band. In this case, the PHG never uploads a Patient Resource, but uses the provided logical id in the Observation resources instead. In this manner, not even the opaque identifiers are sent over the wire."
      },
      {
        "id": "Patient.meta",
        "path": "Patient.meta",
        "min": 1
      },
      {
        "id": "Patient.meta.profile",
        "path": "Patient.meta.profile",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "http://pchalliance.org/phdfhir/StructureDefinition/phdPatient"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.meta.profile:phdProfile",
        "path": "Patient.meta.profile",
        "sliceName": "phdProfile",
        "min": 1,
        "max": "1",
        "fixedUri": "http://pchalliance.org/phdfhir/StructureDefinition/phdPatient"
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.identifier:phdIdentifier",
        "path": "Patient.identifier",
        "sliceName": "phdIdentifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:phdIdentifier.type",
        "path": "Patient.identifier.type",
        "min": 1
      },
      {
        "id": "Patient.identifier:phdIdentifier.type.coding",
        "path": "Patient.identifier.type.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": true,
          "rules": "open"
        },
        "comment": "It is highly recommended that this element be populated.",
        "min": 1
      },
      {
        "id": "Patient.identifier:phdIdentifier.type.coding:v2Coding",
        "path": "Patient.identifier.type.coding",
        "sliceName": "v2Coding",
        "short": "Code defined by http://www.hl7.org/fhir/v2/0203",
        "definition": "A code using the V2 http://www.hl7.org/fhir/v2/0203/ system.",
        "comment": "This HL7 V2 coding system identifies many possible types of identifiers.",
        "max": "1"
      },
      {
        "id": "Patient.identifier:phdIdentifier.type.coding:v2Coding.system",
        "path": "Patient.identifier.type.coding.system",
        "definition": "The identification of the code system that defines the meaning of the symbol in the code. In this case the system is http://hl7.org/fhir/v2/0203",
        "comment": "HL7 defines several codes that can be used in the http://hl7.org/fhir/v2/0203 system. For a list of the possible codes in this system see http://www.hl7.org/fhir/STU3/v2/0203/index.html.",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v2/0203"
      },
      {
        "id": "Patient.identifier:phdIdentifier.type.coding:v2Coding.code",
        "path": "Patient.identifier.type.coding.code",
        "short": "a code from http://hl7.org/fhir/v2/0203",
        "definition": "A symbol defined by the http://www.hl7.org/fhir/v2/0203 coding system. For example, the code 'MR' indicates the identifier is a Medical Record Number. 'SS' indicates that the identifier value is a US social security number and 'SR' indicates a state registry id.",
        "min": 1
      },
      {
        "id": "Patient.identifier:phdIdentifier.system",
        "path": "Patient.identifier.system",
        "min": 1
      },
      {
        "id": "Patient.identifier:phdIdentifier.value",
        "path": "Patient.identifier.value",
        "min": 1
      }
    ]
  }
}