{
  "resourceType" : "Bundle",
  "id" : "patient-legal-relationship-example",
  "type" : "collection",
  "entry" : [{
    "fullUrl" : "https://fhir.ee/mpi/Observation/legal-relationship-example-1",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "legal-relationship-example-1",
      "meta" : {
        "profile" : ["https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-legal-relationship"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_legal-relationship-example-1\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation legal-relationship-example-1</b></p><a name=\"legal-relationship-example-1\"> </a><a name=\"hclegal-relationship-example-1\"> </a><div style=\"display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ee-mpi-socialhistory-legal-relationship.html\">EE MPI SocialHistory Legal Relationship</a></p></div><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category social-history}\">Social history</span></p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 125676002}\">Person</span></p><p><b>subject</b>: <a href=\"Patient-pat1.html\">Indrek Bambus (official) Male, DoB: 1973-02-10 ( https://fhir.ee/sid/pid/est/ni#37302102711)</a></p><p><b>issued</b>: 2026-03-18 12:48:40+0200</p><p><b>performer</b>: <a href=\"#hclegal-relationship-example-1/3ffbb9c2-064b-43d3-8b15-d512a743ead2\">KATI KARUMÕMM - Child (https://fhir.ee/sid/pid/est/ni#62308290024)</a></p><p><b>value</b>: <span title=\"Codes:{https://fhir.ee/CodeSystem/hooldusoiguse-liik H10}\">Täielik isikuhooldusõigus</span></p><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: RelatedPerson #3ffbb9c2-064b-43d3-8b15-d512a743ead2</b></p><a name=\"legal-relationship-example-1/3ffbb9c2-064b-43d3-8b15-d512a743ead2\"> </a><a name=\"hclegal-relationship-example-1/3ffbb9c2-064b-43d3-8b15-d512a743ead2\"> </a><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">KATI KARUMÕMM - Child (https://fhir.ee/sid/pid/est/ni#62308290024)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"The patient this person is related to\">Patient:</td><td colspan=\"3\"><a href=\"Patient-pat1.html\">Indrek Bambus (official) Male, DoB: 1973-02-10 ( https://fhir.ee/sid/pid/est/ni#37302102711)</a></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The nature of the relationship between the patient and the related person\">Relationship:</td><td colspan=\"3\"><span title=\"Codes:{http://snomed.info/sct 67822003}\">Child</span></td></tr></table></blockquote></div>"
      },
      "contained" : [{
        "resourceType" : "RelatedPerson",
        "id" : "3ffbb9c2-064b-43d3-8b15-d512a743ead2",
        "identifier" : [{
          "system" : "https://fhir.ee/sid/pid/est/ni",
          "value" : "62308290024"
        }],
        "patient" : {
          "reference" : "Patient/pat1"
        },
        "relationship" : [{
          "coding" : [{
            "system" : "http://snomed.info/sct",
            "code" : "67822003",
            "display" : "Child"
          }]
        }],
        "name" : [{
          "family" : "KARUMÕMM",
          "given" : ["KATI"]
        }]
      }],
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "social-history",
          "display" : "Social history"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "125676002",
          "display" : "Person"
        }]
      },
      "subject" : {
        "reference" : "Patient/pat1"
      },
      "issued" : "2026-03-18T12:48:40.304+02:00",
      "performer" : [{
        "reference" : "#3ffbb9c2-064b-43d3-8b15-d512a743ead2"
      }],
      "valueCodeableConcept" : {
        "coding" : [{
          "system" : "https://fhir.ee/CodeSystem/hooldusoiguse-liik",
          "code" : "H10",
          "display" : "Täielik isikuhooldusõigus"
        }]
      }
    }
  },
  {
    "fullUrl" : "https://fhir.ee/mpi/Observation/legal-relationship-example-2",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "legal-relationship-example-2",
      "meta" : {
        "profile" : ["https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-legal-relationship"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_legal-relationship-example-2\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation legal-relationship-example-2</b></p><a name=\"legal-relationship-example-2\"> </a><a name=\"hclegal-relationship-example-2\"> </a><div style=\"display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ee-mpi-socialhistory-legal-relationship.html\">EE MPI SocialHistory Legal Relationship</a></p></div><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category social-history}\">Social history</span></p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 125676002}\">Person</span></p><p><b>subject</b>: <a href=\"Patient-pat1.html\">Indrek Bambus (official) Male, DoB: 1973-02-10 ( https://fhir.ee/sid/pid/est/ni#37302102711)</a></p><p><b>issued</b>: 2026-03-18 12:48:40+0200</p><p><b>performer</b>: <a href=\"#hclegal-relationship-example-2/5b8723fb-e4bd-4293-b123-7723b85cd14b\">KATI KARUMÕMM - Child (https://fhir.ee/sid/pid/est/ni#62308290024)</a></p><p><b>value</b>: <span title=\"Codes:{https://fhir.ee/CodeSystem/hooldusoiguse-liik H20}\">Täielik varahooldusõigus</span></p><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: RelatedPerson #5b8723fb-e4bd-4293-b123-7723b85cd14b</b></p><a name=\"legal-relationship-example-2/5b8723fb-e4bd-4293-b123-7723b85cd14b\"> </a><a name=\"hclegal-relationship-example-2/5b8723fb-e4bd-4293-b123-7723b85cd14b\"> </a><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">KATI KARUMÕMM - Child (https://fhir.ee/sid/pid/est/ni#62308290024)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"The patient this person is related to\">Patient:</td><td colspan=\"3\"><a href=\"Patient-pat1.html\">Indrek Bambus (official) Male, DoB: 1973-02-10 ( https://fhir.ee/sid/pid/est/ni#37302102711)</a></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The nature of the relationship between the patient and the related person\">Relationship:</td><td colspan=\"3\"><span title=\"Codes:{http://snomed.info/sct 67822003}\">Child</span></td></tr></table></blockquote></div>"
      },
      "contained" : [{
        "resourceType" : "RelatedPerson",
        "id" : "5b8723fb-e4bd-4293-b123-7723b85cd14b",
        "identifier" : [{
          "system" : "https://fhir.ee/sid/pid/est/ni",
          "value" : "62308290024"
        }],
        "patient" : {
          "reference" : "Patient/pat1"
        },
        "relationship" : [{
          "coding" : [{
            "system" : "http://snomed.info/sct",
            "code" : "67822003",
            "display" : "Child"
          }]
        }],
        "name" : [{
          "family" : "KARUMÕMM",
          "given" : ["KATI"]
        }]
      }],
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "social-history",
          "display" : "Social history"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "125676002",
          "display" : "Person"
        }]
      },
      "subject" : {
        "reference" : "Patient/pat1"
      },
      "issued" : "2026-03-18T12:48:40.304+02:00",
      "performer" : [{
        "reference" : "#5b8723fb-e4bd-4293-b123-7723b85cd14b"
      }],
      "valueCodeableConcept" : {
        "coding" : [{
          "system" : "https://fhir.ee/CodeSystem/hooldusoiguse-liik",
          "code" : "H20",
          "display" : "Täielik varahooldusõigus"
        }]
      }
    }
  },
  {
    "fullUrl" : "https://fhir.ee/mpi/Observation/legal-relationship-example-3",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "legal-relationship-example-3",
      "meta" : {
        "profile" : ["https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-legal-relationship"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_legal-relationship-example-3\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation legal-relationship-example-3</b></p><a name=\"legal-relationship-example-3\"> </a><a name=\"hclegal-relationship-example-3\"> </a><div style=\"display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ee-mpi-socialhistory-legal-relationship.html\">EE MPI SocialHistory Legal Relationship</a></p></div><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category social-history}\">Social history</span></p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 125676002}\">Person</span></p><p><b>subject</b>: <a href=\"Patient-pat1.html\">Indrek Bambus (official) Male, DoB: 1973-02-10 ( https://fhir.ee/sid/pid/est/ni#37302102711)</a></p><p><b>issued</b>: 2026-03-18 12:48:40+0200</p><p><b>performer</b>: <a href=\"#hclegal-relationship-example-3/9c1d7e42-5a3b-4f6e-8d2a-1b7c4e9f0a36\">MARTIN KARUMÕMM - Child (https://fhir.ee/sid/pid/est/ni#51503150012)</a></p><p><b>value</b>: <span title=\"Codes:{https://fhir.ee/CodeSystem/hooldusoiguse-liik H10}\">Täielik isikuhooldusõigus</span></p><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: RelatedPerson #9c1d7e42-5a3b-4f6e-8d2a-1b7c4e9f0a36</b></p><a name=\"legal-relationship-example-3/9c1d7e42-5a3b-4f6e-8d2a-1b7c4e9f0a36\"> </a><a name=\"hclegal-relationship-example-3/9c1d7e42-5a3b-4f6e-8d2a-1b7c4e9f0a36\"> </a><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">MARTIN KARUMÕMM - Child (https://fhir.ee/sid/pid/est/ni#51503150012)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"The patient this person is related to\">Patient:</td><td colspan=\"3\"><a href=\"Patient-pat1.html\">Indrek Bambus (official) Male, DoB: 1973-02-10 ( https://fhir.ee/sid/pid/est/ni#37302102711)</a></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The nature of the relationship between the patient and the related person\">Relationship:</td><td colspan=\"3\"><span title=\"Codes:{http://snomed.info/sct 67822003}\">Child</span></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Time of death of the related person\"><a href=\"StructureDefinition-ee-mpi-related-person-deceased.html\">EE MPI RelatedPerson Deceased</a></td><td colspan=\"3\">2024-03-15</td></tr></table></blockquote></div>"
      },
      "contained" : [{
        "resourceType" : "RelatedPerson",
        "id" : "9c1d7e42-5a3b-4f6e-8d2a-1b7c4e9f0a36",
        "extension" : [{
          "url" : "https://fhir.ee/mpi/StructureDefinition/ee-mpi-related-person-deceased",
          "valueDateTime" : "2024-03-15"
        }],
        "identifier" : [{
          "system" : "https://fhir.ee/sid/pid/est/ni",
          "value" : "51503150012"
        }],
        "patient" : {
          "reference" : "Patient/pat1"
        },
        "relationship" : [{
          "coding" : [{
            "system" : "http://snomed.info/sct",
            "code" : "67822003",
            "display" : "Child"
          }]
        }],
        "name" : [{
          "family" : "KARUMÕMM",
          "given" : ["MARTIN"]
        }]
      }],
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "social-history",
          "display" : "Social history"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "125676002",
          "display" : "Person"
        }]
      },
      "subject" : {
        "reference" : "Patient/pat1"
      },
      "issued" : "2026-03-18T12:48:40.304+02:00",
      "performer" : [{
        "reference" : "#9c1d7e42-5a3b-4f6e-8d2a-1b7c4e9f0a36"
      }],
      "valueCodeableConcept" : {
        "coding" : [{
          "system" : "https://fhir.ee/CodeSystem/hooldusoiguse-liik",
          "code" : "H10",
          "display" : "Täielik isikuhooldusõigus"
        }]
      }
    }
  }]
}