{
  "resourceType": "StructureDefinition",
  "id": "PatientRole",
  "url": "http://hl7.org/fhir/us/bser/StructureDefinition/PatientRole",
  "name": "BSeR Patient",
  "status": "draft",
  "publisher": "Hi3 Solutions",
  "contact": [
    {
      "name": "AbdulMalik Shakir",
      "telecom": [
        {
          "system": "phone",
          "value": "6266444491",
          "use": "work"
        },
        {
          "system": "email",
          "value": "abdulmalik.shakir@hi3solutions.com",
          "use": "work"
        }
      ]
    }
  ],
  "kind": "resource",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Patient"
  ],
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient",
        "path": "Patient"
      },
      {
        "id": "Patient.id",
        "path": "Patient.id",
        "short": "id",
        "definition": "MAY contain zero or one [0..1] id (CONF:4383-796).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Patient.meta",
        "path": "Patient.meta",
        "short": "meta",
        "definition": "MAY contain zero or one [0..1] meta (CONF:4383-795).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Patient.meta.profile",
        "path": "Patient.meta.profile",
        "short": "profile",
        "definition": "The meta, if present, SHALL contain exactly one [1..1] profile=\"http://hl7.org/fhir/us/bser/StructureDefinition/PatientRole\" (CONF:4383-797).",
        "min": 1,
        "max": "1",
        "patternString": "http://hl7.org/fhir/us/bser/StructureDefinition/PatientRole"
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "short": "identifier",
        "definition": "SHALL contain at least one [1..*] identifier (CONF:4383-34).",
        "min": 1,
        "max": "*"
      },
      {
        "id": "Patient.identifier.type",
        "path": "Patient.identifier.type",
        "short": "type",
        "definition": "Such identifiers SHALL contain exactly one [1..1] type, which SHALL be selected from ValueSet Identifier-type http://hl7.org/fhir/ValueSet/identifier-type DYNAMIC (CONF:4383-39).",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/identifier-type",
            "display": "Identifier-type"
          }
        }
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "short": "system",
        "definition": "Such identifiers SHALL contain exactly one [1..1] system (CONF:4383-40).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "short": "value",
        "definition": "Such identifiers SHALL contain exactly one [1..1] value (CONF:4383-41).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "short": "name",
        "definition": "SHALL contain at least one [1..*] name (CONF:4383-54).",
        "min": 1,
        "max": "*"
      },
      {
        "id": "Patient.name.use",
        "path": "Patient.name.use",
        "short": "use",
        "definition": "Such names SHALL contain exactly one [1..1] use, which SHALL be selected from ValueSet Name-use http://hl7.org/fhir/ValueSet/name-use DYNAMIC (CONF:4383-110).",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/name-use",
            "display": "Name-use"
          }
        }
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "short": "family",
        "definition": "Such names SHALL contain exactly one [1..1] family (CONF:4383-60).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "short": "given",
        "definition": "Such names SHALL contain at least one [1..*] given (CONF:4383-61).",
        "min": 1,
        "max": "*"
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "short": "telecom",
        "definition": "SHOULD contain zero or more [0..*] telecom (CONF:4383-35).",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Patient.telecom.system",
        "path": "Patient.telecom.system",
        "short": "system",
        "definition": "The telecom, if present, SHALL contain exactly one [1..1] system, which SHALL be selected from ValueSet Contact-point-system http://hl7.org/fhir/ValueSet/contact-point-system DYNAMIC (CONF:4383-42).",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contact-point-system",
            "display": "Contact-point-system"
          }
        }
      },
      {
        "id": "Patient.telecom.value",
        "path": "Patient.telecom.value",
        "short": "value",
        "definition": "The telecom, if present, SHALL contain exactly one [1..1] value (CONF:4383-43).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.telecom.use",
        "path": "Patient.telecom.use",
        "short": "use",
        "definition": "The telecom, if present, SHALL contain exactly one [1..1] use, which SHALL be selected from ValueSet Contact-point-use http://hl7.org/fhir/ValueSet/contact-point-use DYNAMIC (CONF:4383-44).",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contact-point-use",
            "display": "Contact-point-use"
          }
        }
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "short": "gender",
        "definition": "SHALL contain exactly one [1..1] gender, which SHALL be selected from ValueSet Administrative-gender http://hl7.org/fhir/ValueSet/administrative-gender DYNAMIC (CONF:4383-55).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/administrative-gender",
            "display": "Administrative-gender"
          }
        }
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "short": "birthDate",
        "definition": "SHALL contain exactly one [1..1] birthDate (CONF:4383-56).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "short": "address",
        "definition": "SHOULD contain zero or more [0..*] address (CONF:4383-36).",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Patient.address.text",
        "path": "Patient.address.text",
        "short": "text",
        "definition": "The address, if present, MAY contain zero or one [0..1] text (CONF:4383-111).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "short": "line",
        "definition": "The address, if present, SHOULD contain zero or more [0..*] line (CONF:4383-45).",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "short": "city",
        "definition": "The address, if present, SHOULD contain zero or one [0..1] city (CONF:4383-46).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Patient.address.state",
        "path": "Patient.address.state",
        "short": "state",
        "definition": "The address, if present, SHOULD contain zero or one [0..1] state (CONF:4383-47).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "short": "postalCode",
        "definition": "The address, if present, SHOULD contain zero or one [0..1] postalCode (CONF:4383-48).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "short": "country",
        "definition": "The address, if present, SHALL contain exactly one [1..1] country, which SHALL be selected from CodeSystem ISO 3166 Part 1 Country Codes, 2nd Edition, Alpha-2 (urn:oid:1.0.3166.1.2.2) DYNAMIC (CONF:4383-49).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "short": "communication",
        "definition": "SHOULD contain zero or one [0..1] communication (CONF:4383-107).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Patient.communication.language",
        "path": "Patient.communication.language",
        "short": "language",
        "definition": "The communication, if present, SHALL contain exactly one [1..1] language, which SHALL be selected from ValueSet Languages http://hl7.org/fhir/ValueSet/languages DYNAMIC (CONF:4383-108).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/languages",
            "display": "Languages"
          }
        }
      },
      {
        "id": "Patient.communication.preferred",
        "path": "Patient.communication.preferred",
        "short": "preferred",
        "definition": "The communication, if present, SHALL contain zero or one [0..1] preferred (CONF:4383-109).",
        "min": 0,
        "max": "1"
      }
    ]
  }
}