{
  "resourceType": "StructureDefinition",
  "id": "profile-RelatedPerson-consenter",
  "url": "https://bpcs.exchange/fhir/StructureDefinition/profile-RelatedPerson-consenter",
  "name": "RelatedPersonConsenter",
  "title": "Related Person Consenter",
  "status": "active",
  "experimental": false,
  "description": "Indicates the relationship of the consenting individual to the recipient",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "BPCS",
      "name": "Internal BPCS API"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "RelatedPerson",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "RelatedPerson.id",
        "path": "RelatedPerson.id",
        "min": 1,
        "patternId": "related",
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.active",
        "path": "RelatedPerson.active",
        "max": "0"
      },
      {
        "id": "RelatedPerson.patient",
        "path": "RelatedPerson.patient",
        "comment": "The patient this person is related to. When RelatedPerson.relationship is 'S'elf, this will refer to the recipient.",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://bpcs.exchange/fhir/StructureDefinition/profile-Reference-rest"
            ],
            "targetProfile": [
              "https://bpcs.exchange/fhir/StructureDefinition/profile-Patient-create"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.relationship",
        "path": "RelatedPerson.relationship",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://bpcs.exchange/fhir/ValueSet/vs-Consenter"
        },
        "mapping": [
          {
            "identity": "BPCS",
            "map": "ConsentDTO.consenter"
          }
        ]
      }
    ]
  }
}