{
  "resourceType": "StructureDefinition",
  "id": "srx-fhir-profile-patient",
  "meta": {
    "lastUpdated": "2018-03-11T20:44:22.686+00:00"
  },
  "url": "http://fhir-es.transcendinsights.com/stu3/StructureDefinition/srx-fhir-profile-patient",
  "name": "srx-fhir-profile-patient",
  "status": "draft",
  "date": "2017-12-11T23:39:21.149+00:00",
  "description": "SRX Patient profile",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "PATIENT-MASTER",
      "name": "SRX Patient Master"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.id",
        "path": "Patient.id",
        "max": "0"
      },
      {
        "id": "Patient.meta.id",
        "path": "Patient.meta.id",
        "max": "0"
      },
      {
        "id": "Patient.meta.extension",
        "path": "Patient.meta.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.meta.extension:resource-date-created",
        "path": "Patient.meta.extension",
        "sliceName": "resource-date-created",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": "http://fhir-es.transcendinsights.com/stu3/StructureDefinition/resource-date-created"
          }
        ]
      },
      {
        "id": "Patient.meta.extension:source-filename",
        "path": "Patient.meta.extension",
        "sliceName": "source-filename",
        "type": [
          {
            "code": "Extension",
            "profile": "http://fhir-es.transcendinsights.com/stu3/StructureDefinition/source-filename"
          }
        ]
      },
      {
        "id": "Patient.meta.extension:data-source-entity",
        "path": "Patient.meta.extension",
        "sliceName": "data-source-entity",
        "type": [
          {
            "code": "Extension",
            "profile": "http://fhir-es.transcendinsights.com/stu3/StructureDefinition/data-source-entity"
          }
        ]
      },
      {
        "id": "Patient.implicitRules",
        "path": "Patient.implicitRules",
        "max": "0"
      },
      {
        "id": "Patient.language",
        "path": "Patient.language",
        "max": "0"
      },
      {
        "id": "Patient.text",
        "path": "Patient.text",
        "max": "0"
      },
      {
        "id": "Patient.contained",
        "path": "Patient.contained",
        "max": "0"
      },
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:patient-age",
        "path": "Patient.extension",
        "sliceName": "patient-age",
        "short": "The age of the patient",
        "definition": "The age of the patient at runtime. This is a field that is needed by the CQL engine for measure evaluation.\r\nData loader may ignore this field.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://fhir-es.transcendinsights.com/stu3/StructureDefinition/runtime-patient-age"
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "Patient.identifier:patientIdentifier",
        "path": "Patient.identifier",
        "sliceName": "patientIdentifier",
        "definition": "The unique identifier (Transcend Insights- or customer-generated) for a specific patient. This aligns claims data to the correct patient. (Humana MEMBER GEN-KEY).",
        "max": "1",
        "example": [
          {
            "label": "Patient Identifier example",
            "valueIdentifier": {
              "system": "http://fhir-es.transcendinsights.com/stu3/NamingSystem/humana-patient-identifier",
              "value": "10000061"
            }
          }
        ],
        "mapping": [
          {
            "identity": "PATIENT-MASTER",
            "map": "PATIENT_ID"
          }
        ]
      },
      {
        "id": "Patient.identifier:patientIdentifier.id",
        "path": "Patient.identifier.id",
        "max": "0"
      },
      {
        "id": "Patient.identifier:patientIdentifier.use",
        "path": "Patient.identifier.use",
        "max": "0",
        "fixedCode": "official"
      },
      {
        "id": "Patient.identifier:patientIdentifier.type",
        "path": "Patient.identifier.type",
        "max": "0"
      },
      {
        "id": "Patient.identifier:patientIdentifier.type.id",
        "path": "Patient.identifier.type.id",
        "max": "0"
      },
      {
        "id": "Patient.identifier:patientIdentifier.type.coding",
        "path": "Patient.identifier.type.coding",
        "max": "1"
      },
      {
        "id": "Patient.identifier:patientIdentifier.type.coding.id",
        "path": "Patient.identifier.type.coding.id",
        "max": "0"
      },
      {
        "id": "Patient.identifier:patientIdentifier.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSetUri": "http://hl7.org/fhir/v2/0203"
        }
      },
      {
        "id": "Patient.identifier:patientIdentifier.type.coding.version",
        "path": "Patient.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Patient.identifier:patientIdentifier.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "definition": "A code for patient identifier.",
        "min": 1,
        "fixedCode": "PI"
      },
      {
        "id": "Patient.identifier:patientIdentifier.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.coding.display",
        "fixedString": "Patient ID"
      },
      {
        "id": "Patient.identifier:patientIdentifier.type.coding.userSelected",
        "path": "Patient.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.identifier:patientIdentifier.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Patient.identifier:patientIdentifier.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir-es.transcendinsights.com/stu3/NamingSystem/humana-patient-identifier"
      },
      {
        "id": "Patient.identifier:patientIdentifier.value",
        "path": "Patient.identifier.value",
        "definition": "The unique identifier (Transcend Insights- or customer-generated) for a specific patient. This aligns claims data to the correct patient. (Humana MEMBER GEN-KEY).",
        "min": 1,
        "mapping": [
          {
            "identity": "PATIENT-MASTER",
            "map": "PATIENT_ID"
          }
        ]
      },
      {
        "id": "Patient.identifier:patientIdentifier.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier:patientIdentifier.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "max": "0"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "max": "1",
        "example": [
          {
            "label": "name",
            "valueHumanName": {
              "family": "Henderson",
              "given": [
                "Carl",
                "Louis"
              ]
            }
          }
        ]
      },
      {
        "id": "Patient.name.id",
        "path": "Patient.name.id",
        "max": "0"
      },
      {
        "id": "Patient.name.use",
        "path": "Patient.name.use",
        "max": "0"
      },
      {
        "id": "Patient.name.text",
        "path": "Patient.name.text",
        "max": "0"
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "mapping": [
          {
            "identity": "PATIENT-MASTER",
            "map": "LAST_NAME"
          }
        ]
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "mapping": [
          {
            "identity": "PATIENT-MASTER",
            "map": "FIRST_NAME"
          },
          {
            "identity": "PATIENT-MASTER",
            "map": "MIDDLE_NAME"
          }
        ]
      },
      {
        "id": "Patient.name.prefix",
        "path": "Patient.name.prefix",
        "max": "0"
      },
      {
        "id": "Patient.name.suffix",
        "path": "Patient.name.suffix",
        "max": "0"
      },
      {
        "id": "Patient.name.period",
        "path": "Patient.name.period",
        "max": "0"
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "max": "0"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "example": [
          {
            "label": "gender",
            "valueCode": "male"
          }
        ],
        "mapping": [
          {
            "identity": "PATIENT-MASTER",
            "map": "GENDER_CODE"
          }
        ]
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "mapping": [
          {
            "identity": "PATIENT-MASTER",
            "map": "DATE_OF_BIRTH"
          }
        ]
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "max": "0"
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "max": "1",
        "example": [
          {
            "label": "address",
            "valueAddress": {
              "line": [
                "123 Elm St",
                "unit 2"
              ],
              "city": "San Diego",
              "state": "CA",
              "postalCode": "91001"
            }
          }
        ]
      },
      {
        "id": "Patient.address.id",
        "path": "Patient.address.id",
        "max": "0"
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "max": "0"
      },
      {
        "id": "Patient.address.type",
        "path": "Patient.address.type",
        "max": "0"
      },
      {
        "id": "Patient.address.text",
        "path": "Patient.address.text",
        "max": "0"
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "max": "2",
        "mapping": [
          {
            "identity": "PATIENT-MASTER",
            "map": "ADDRESS_1"
          },
          {
            "identity": "PATIENT-MASTER",
            "map": "ADDRESS_2"
          }
        ]
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "mapping": [
          {
            "identity": "PATIENT-MASTER",
            "map": "CITY"
          }
        ]
      },
      {
        "id": "Patient.address.district",
        "path": "Patient.address.district",
        "max": "0"
      },
      {
        "id": "Patient.address.state",
        "path": "Patient.address.state",
        "mapping": [
          {
            "identity": "PATIENT-MASTER",
            "map": "STATE_CODE"
          }
        ]
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "mapping": [
          {
            "identity": "PATIENT-MASTER",
            "map": "ZIP"
          }
        ]
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "max": "0"
      },
      {
        "id": "Patient.address.period",
        "path": "Patient.address.period",
        "max": "0"
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "max": "0"
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "max": "0"
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "0"
      },
      {
        "id": "Patient.contact",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Contact"
          }
        ],
        "path": "Patient.contact",
        "max": "0"
      },
      {
        "id": "Patient.animal",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Animal"
          }
        ],
        "path": "Patient.animal",
        "max": "0"
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "max": "0"
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "max": "0"
      }
    ]
  }
}