{
  "resourceType": "StructureDefinition",
  "id": "ecr-patient",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2018-09-29T20:27:06.866+00:00"
  },
  "url": "http://hl7.org/fhir/us/ecr/StructureDefinition/ecr-patient",
  "version": "0.0.0",
  "name": "ecr-patient",
  "title": "eCR Patient",
  "status": "draft",
  "date": "2018-08-01",
  "description": "This profile represents an eCR Patient. It is based on the US Core Patient and further restricts that profile to allow masking of some elements.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient",
        "path": "Patient",
        "short": "eCR Patient",
        "definition": "This profile represents an eCR Patient. It is based on the US Core Patient and further restricts that profile to allow masking of some elements.",
        "mustSupport": true
      },
      {
        "id": "Patient.extension:race",
        "path": "Patient.extension",
        "sliceName": "race",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race"
          }
        ],
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Patient.extension:ethnicity",
        "path": "Patient.extension",
        "sliceName": "ethnicity",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity"
          }
        ],
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Patient.extension:birthsex",
        "path": "Patient.extension",
        "sliceName": "birthsex",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "binding": {
          "strength": "required",
          "description": "Code for sex assigned at birth",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/us/core/ValueSet/us-core-birthsex"
          }
        }
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier.extension",
        "path": "Patient.identifier.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.identifier.extension:extensionDataAbsentReason",
        "path": "Patient.identifier.extension",
        "sliceName": "extensionDataAbsentReason",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.identifier.extension:extensionDataAbsentReason.url",
        "path": "Patient.identifier.extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
      },
      {
        "id": "Patient.identifier.extension:extensionDataAbsentReason.value[x]:valueCode",
        "path": "Patient.identifier.extension.valueCode",
        "sliceName": "valueCode",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "masked",
        "mustSupport": true
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1
      },
      {
        "id": "Patient.name.extension",
        "path": "Patient.name.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.name.extension:extensionDataAbsentReason",
        "path": "Patient.name.extension",
        "sliceName": "extensionDataAbsentReason",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.name.extension:extensionDataAbsentReason.url",
        "path": "Patient.name.extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
      },
      {
        "id": "Patient.name.extension:extensionDataAbsentReason.value[x]:valueCode",
        "path": "Patient.name.extension.valueCode",
        "sliceName": "valueCode",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "masked",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom.extension",
        "path": "Patient.telecom.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.telecom.extension:extensionDataAbsentReason",
        "path": "Patient.telecom.extension",
        "sliceName": "extensionDataAbsentReason",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.telecom.extension:extensionDataAbsentReason.url",
        "path": "Patient.telecom.extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
      },
      {
        "id": "Patient.telecom.extension:extensionDataAbsentReason.value[x]:valueCode",
        "path": "Patient.telecom.extension.valueCode",
        "sliceName": "valueCode",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "masked",
        "mustSupport": true
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "mustSupport": true
      },
      {
        "id": "Patient.gender.extension",
        "path": "Patient.gender.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.gender.extension:extensionDataAbsentReason",
        "path": "Patient.gender.extension",
        "sliceName": "extensionDataAbsentReason",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.gender.extension:extensionDataAbsentReason.url",
        "path": "Patient.gender.extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
      },
      {
        "id": "Patient.gender.extension:extensionDataAbsentReason.value[x]:valueCode",
        "path": "Patient.gender.extension.valueCode",
        "sliceName": "valueCode",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "masked",
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate.extension",
        "path": "Patient.birthDate.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.birthDate.extension:extensionDataAbsentReason",
        "path": "Patient.birthDate.extension",
        "sliceName": "extensionDataAbsentReason",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate.extension:extensionDataAbsentReason.url",
        "path": "Patient.birthDate.extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
      },
      {
        "id": "Patient.birthDate.extension:extensionDataAbsentReason.value[x]:valueCode",
        "path": "Patient.birthDate.extension.valueCode",
        "sliceName": "valueCode",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "masked",
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "mustSupport": true
      },
      {
        "id": "Patient.address.extension",
        "path": "Patient.address.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.address.extension:extensionDataAbsentReason",
        "path": "Patient.address.extension",
        "sliceName": "extensionDataAbsentReason",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.address.extension:extensionDataAbsentReason.url",
        "path": "Patient.address.extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
      },
      {
        "id": "Patient.address.extension:extensionDataAbsentReason.value[x]:valueCode",
        "path": "Patient.address.extension.valueCode",
        "sliceName": "valueCode",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "masked",
        "mustSupport": true
      },
      {
        "id": "Patient.contact",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Contact"
          }
        ],
        "path": "Patient.contact",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.relationship",
        "path": "Patient.contact.relationship",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.name",
        "path": "Patient.contact.name",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.name.extension",
        "path": "Patient.contact.name.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.contact.name.extension:extensionDataAbsentReason",
        "path": "Patient.contact.name.extension",
        "sliceName": "extensionDataAbsentReason",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.contact.name.extension:extensionDataAbsentReason.value[x]:valueCode",
        "path": "Patient.contact.name.extension.valueCode",
        "sliceName": "valueCode",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "masked",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.telecom",
        "path": "Patient.contact.telecom",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.telecom.extension",
        "path": "Patient.contact.telecom.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.contact.telecom.extension:extensionDataAbsentReason",
        "path": "Patient.contact.telecom.extension",
        "sliceName": "extensionDataAbsentReason",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.contact.telecom.extension:extensionDataAbsentReason.value[x]:valueCode",
        "path": "Patient.contact.telecom.extension.valueCode",
        "sliceName": "valueCode",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "masked",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.address",
        "path": "Patient.contact.address",
        "mustSupport": true
      },
      {
        "id": "Patient.contact.address.extension",
        "path": "Patient.contact.address.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.contact.address.extension:extensionDataAbsentReason",
        "path": "Patient.contact.address.extension",
        "sliceName": "extensionDataAbsentReason",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.contact.address.extension:extensionDataAbsentReason.value[x]:valueCode",
        "path": "Patient.contact.address.extension.valueCode",
        "sliceName": "valueCode",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "masked",
        "mustSupport": true
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "mustSupport": true
      },
      {
        "id": "Patient.communication.language",
        "path": "Patient.communication.language",
        "mustSupport": true
      },
      {
        "id": "Patient.communication.language.extension",
        "path": "Patient.communication.language.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.communication.language.extension:extensionDataAbsentReason",
        "path": "Patient.communication.language.extension",
        "sliceName": "extensionDataAbsentReason",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.communication.language.extension:extensionDataAbsentReason.value[x]:valueCode",
        "path": "Patient.communication.language.extension.valueCode",
        "sliceName": "valueCode",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "patternCode": "masked",
        "mustSupport": true
      }
    ]
  }
}