{
  "resourceType": "StructureDefinition",
  "url": "https://digives.gov.lv/fhir/StructureDefinition/RelatedPerson",
  "version": "0.1",
  "name": "ContactPerson",
  "title": "Kontaktpersona",
  "status": "draft",
  "date": "2025-05-30",
  "publisher": "LDVC",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "RelatedPerson",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "RelatedPerson.active",
        "path": "RelatedPerson.active",
        "min": 1
      },
      {
        "id": "RelatedPerson.patient.reference",
        "path": "RelatedPerson.patient.reference",
        "min": 1
      },
      {
        "id": "RelatedPerson.patient.type",
        "path": "RelatedPerson.patient.type",
        "min": 1,
        "fixedUri": "Patient",
        "binding": {
          "strength": "required"
        }
      },
      {
        "id": "RelatedPerson.relationship",
        "path": "RelatedPerson.relationship",
        "min": 1,
        "max": "1"
      },
      {
        "id": "RelatedPerson.relationship.coding",
        "path": "RelatedPerson.relationship.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "RelatedPerson.relationship.coding.system",
        "path": "RelatedPerson.relationship.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.38760.2.68"
      },
      {
        "id": "RelatedPerson.relationship.coding.code",
        "path": "RelatedPerson.relationship.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://digives.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.68"
        }
      },
      {
        "id": "RelatedPerson.relationship.coding.display",
        "path": "RelatedPerson.relationship.coding.display",
        "min": 1
      },
      {
        "id": "RelatedPerson.name",
        "path": "RelatedPerson.name",
        "min": 1,
        "max": "1"
      },
      {
        "id": "RelatedPerson.name.text",
        "path": "RelatedPerson.name.text",
        "min": 1
      },
      {
        "id": "RelatedPerson.telecom",
        "path": "RelatedPerson.telecom",
        "min": 1,
        "max": "2"
      },
      {
        "id": "RelatedPerson.telecom.system",
        "path": "RelatedPerson.telecom.system",
        "min": 1
      },
      {
        "id": "RelatedPerson.telecom.value",
        "path": "RelatedPerson.telecom.value",
        "min": 1
      }
    ]
  }
}