{
  "resourceType": "StructureDefinition",
  "id": "il-hdp-related-person-contained",
  "url": "http://hdp.fhir.health.gov.il/StructureDefinition/il-hdp-related-person-contained",
  "version": "0.5.0",
  "name": "ILHDPRelatedPersonContained",
  "title": "ILHDP RelatedPerson Contained Profile",
  "status": "active",
  "date": "2026-08-19",
  "publisher": "Israel Core Team",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "contact@example.org"
        }
      ]
    }
  ],
  "description": "A minimal RelatedPerson profile for use as a contained resource in HDP. Only the relationship to the patient is represented.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "RelatedPerson",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "RelatedPerson",
        "path": "RelatedPerson",
        "short": "Minimal contained RelatedPerson for HDP",
        "definition": "A minimal RelatedPerson resource used to represent the relationship of a non-identified person to the patient."
      },
      {
        "id": "RelatedPerson.identifier",
        "path": "RelatedPerson.identifier",
        "max": "0"
      },
      {
        "id": "RelatedPerson.active",
        "path": "RelatedPerson.active",
        "max": "0"
      },
      {
        "id": "RelatedPerson.patient",
        "path": "RelatedPerson.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "RelatedPerson.relationship",
        "path": "RelatedPerson.relationship",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.health.gov.il/ValueSet/patient-relationship-type"
        }
      },
      {
        "id": "RelatedPerson.name",
        "path": "RelatedPerson.name",
        "max": "0"
      },
      {
        "id": "RelatedPerson.telecom",
        "path": "RelatedPerson.telecom",
        "max": "0"
      },
      {
        "id": "RelatedPerson.gender",
        "path": "RelatedPerson.gender",
        "max": "0"
      },
      {
        "id": "RelatedPerson.birthDate",
        "path": "RelatedPerson.birthDate",
        "max": "0"
      },
      {
        "id": "RelatedPerson.address",
        "path": "RelatedPerson.address",
        "max": "0"
      },
      {
        "id": "RelatedPerson.photo",
        "path": "RelatedPerson.photo",
        "max": "0"
      },
      {
        "id": "RelatedPerson.period",
        "path": "RelatedPerson.period",
        "max": "0"
      },
      {
        "id": "RelatedPerson.communication",
        "path": "RelatedPerson.communication",
        "max": "0"
      }
    ]
  }
}