{
  "resourceType": "StructureDefinition",
  "id": "PatientRelatedPerson",
  "url": "http://hl7.org/fhir/us/bser/StructureDefinition/PatientRelatedPerson",
  "name": "BSeR Related Person",
  "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": [
    "RelatedPerson"
  ],
  "type": "RelatedPerson",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "RelatedPerson",
        "path": "RelatedPerson"
      },
      {
        "id": "RelatedPerson.id",
        "path": "RelatedPerson.id",
        "short": "id",
        "definition": "MAY contain zero or one [0..1] id (CONF:4383-805).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "RelatedPerson.meta",
        "path": "RelatedPerson.meta",
        "short": "meta",
        "definition": "MAY contain zero or one [0..1] meta (CONF:4383-804).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "RelatedPerson.meta.profile",
        "path": "RelatedPerson.meta.profile",
        "short": "profile",
        "definition": "The meta, if present, SHALL contain exactly one [1..1] profile=\"http://hl7.org/fhir/us/bser/StructureDefinition/PatientRelatedPerson\" (CONF:4383-806).",
        "min": 1,
        "max": "1",
        "patternString": "http://hl7.org/fhir/us/bser/StructureDefinition/PatientRelatedPerson"
      },
      {
        "id": "RelatedPerson.patient",
        "path": "RelatedPerson.patient",
        "short": "patient",
        "definition": "SHALL contain exactly one [1..1] =\"BSeR Patient\"BSeR Patient (identifier: http://hl7.org/fhir/us/bser/StructureDefinition/PatientRole) (CONF:4383-129).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/us/bser/StructureDefinition/PatientRole"
          }
        ],
        "patternString": "BSeR Patient"
      },
      {
        "id": "RelatedPerson.relationship",
        "path": "RelatedPerson.relationship",
        "short": "relationship",
        "definition": "SHALL contain exactly one [1..1] relationship, which SHALL be selected from ValueSet Relatedperson-relationshiptype http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype DYNAMIC (CONF:4383-133).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype",
            "display": "Relatedperson-relationshiptype"
          }
        }
      },
      {
        "id": "RelatedPerson.name",
        "path": "RelatedPerson.name",
        "short": "name",
        "definition": "SHALL contain at least one [1..*] name (CONF:4383-130).",
        "min": 1,
        "max": "*"
      },
      {
        "id": "RelatedPerson.name.use",
        "path": "RelatedPerson.name.use",
        "short": "use",
        "definition": "Such names SHOULD contain exactly one [1..1] use, which SHALL be selected from ValueSet Name-use http://hl7.org/fhir/ValueSet/name-use DYNAMIC (CONF:4383-134).",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/name-use",
            "display": "Name-use"
          }
        }
      },
      {
        "id": "RelatedPerson.name.family",
        "path": "RelatedPerson.name.family",
        "short": "family",
        "definition": "Such names SHALL contain exactly one [1..1] family (CONF:4383-135).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "RelatedPerson.name.given",
        "path": "RelatedPerson.name.given",
        "short": "given",
        "definition": "Such names SHALL contain at least one [1..*] given (CONF:4383-136).",
        "min": 1,
        "max": "*"
      },
      {
        "id": "RelatedPerson.name.suffix",
        "path": "RelatedPerson.name.suffix",
        "short": "suffix",
        "definition": "Such names MAY contain zero or more [0..*] suffix (CONF:4383-137).",
        "min": 0,
        "max": "*"
      },
      {
        "id": "RelatedPerson.telecom",
        "path": "RelatedPerson.telecom",
        "short": "telecom",
        "definition": "SHOULD contain zero or more [0..*] telecom (CONF:4383-131).",
        "min": 0,
        "max": "*"
      },
      {
        "id": "RelatedPerson.telecom.system",
        "path": "RelatedPerson.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-138).",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contact-point-system",
            "display": "Contact-point-system"
          }
        }
      },
      {
        "id": "RelatedPerson.telecom.value",
        "path": "RelatedPerson.telecom.value",
        "short": "value",
        "definition": "The telecom, if present, SHALL contain exactly one [1..1] value (CONF:4383-139).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "RelatedPerson.telecom.use",
        "path": "RelatedPerson.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-140).",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/contact-point-use",
            "display": "Contact-point-use"
          }
        }
      },
      {
        "id": "RelatedPerson.gender",
        "path": "RelatedPerson.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-323).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/administrative-gender",
            "display": "Administrative-gender"
          }
        }
      },
      {
        "id": "RelatedPerson.birthDate",
        "path": "RelatedPerson.birthDate",
        "short": "birthDate",
        "definition": "SHOULD contain zero or one [0..1] birthDate (CONF:4383-324).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "RelatedPerson.address",
        "path": "RelatedPerson.address",
        "short": "address",
        "definition": "SHOULD contain zero or more [0..*] address (CONF:4383-132).",
        "min": 0,
        "max": "*"
      },
      {
        "id": "RelatedPerson.address.use",
        "path": "RelatedPerson.address.use",
        "short": "use",
        "definition": "The address, if present, SHALL contain exactly one [1..1] use, which SHALL be selected from ValueSet Address-use http://hl7.org/fhir/ValueSet/address-use DYNAMIC (CONF:4383-141).",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/address-use",
            "display": "Address-use"
          }
        }
      },
      {
        "id": "RelatedPerson.address.text",
        "path": "RelatedPerson.address.text",
        "short": "text",
        "definition": "The address, if present, MAY contain zero or one [0..1] text (CONF:4383-142).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "RelatedPerson.address.line",
        "path": "RelatedPerson.address.line",
        "short": "line",
        "definition": "The address, if present, SHOULD contain zero or more [0..*] line (CONF:4383-143).",
        "min": 0,
        "max": "*"
      },
      {
        "id": "RelatedPerson.address.city",
        "path": "RelatedPerson.address.city",
        "short": "city",
        "definition": "The address, if present, SHOULD contain zero or one [0..1] city (CONF:4383-144).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "RelatedPerson.address.state",
        "path": "RelatedPerson.address.state",
        "short": "state",
        "definition": "The address, if present, SHOULD contain zero or one [0..1] state (CONF:4383-145).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "RelatedPerson.address.postalCode",
        "path": "RelatedPerson.address.postalCode",
        "short": "postalCode",
        "definition": "The address, if present, SHOULD contain zero or one [0..1] postalCode (CONF:4383-146).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "RelatedPerson.address.country",
        "path": "RelatedPerson.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) (CONF:4383-147).",
        "min": 1,
        "max": "1"
      }
    ]
  }
}