@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://fhir.hl7.org.vn/core/RelatedPerson/ExampleRelatedPersonDomainBasisMismatch> a fhir:RelatedPerson ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleRelatedPersonDomainBasisMismatch"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-relatedperson" ;
       fhir:index -1 ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-relatedperson>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "vi"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: RelatedPerson ExampleRelatedPersonDomainBasisMismatch</b></p><a name=\"ExampleRelatedPersonDomainBasisMismatch\"> </a><a name=\"hcExampleRelatedPersonDomainBasisMismatch\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; 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-vn-core-relatedperson.html\">Người liên quan/người giám hộ VN Core — VN Core RelatedPerson Profile</a></p></div><blockquote><p><b>Thẩm quyền đại diện truy cập dữ liệu — Representation Authority Extension</b></p><blockquote><p><b>url</b></p>domain</blockquote><p><b>value</b>: <a href=\"CodeSystem-vn-representation-domain-cs.html#vn-representation-domain-cs-data-subject-rights\">Miền thẩm quyền đại diện — Vietnam Representation Authority Domain CodeSystem: data-subject-rights</a> (Đại diện thực hiện quyền chủ thể dữ liệu)</p><blockquote><p><b>url</b></p>type</blockquote><p><b>value</b>: <a href=\"CodeSystem-vn-representation-type-cs.html#vn-representation-type-cs-legal-representative\">Loại thẩm quyền đại diện — Vietnam Representation Authority Type CodeSystem: legal-representative</a> (Người đại diện theo pháp luật)</p><blockquote><p><b>url</b></p>source</blockquote><p><b>value</b>: <a href=\"CodeSystem-vn-representation-source-cs.html#vn-representation-source-cs-population-registry\">Nguồn xác minh thẩm quyền đại diện — Vietnam Representation Verification Source CodeSystem: population-registry</a> (CSDLQG về dân cư (C06))</p><blockquote><p><b>url</b></p>verifiedDate</blockquote><p><b>value</b>: 2026-06-01</p><p><b>document</b>: <a href=\"CodeSystem-vn-legal-document-ref-cs.html#vn-legal-document-ref-cs-L-91-2015\">Văn bản pháp lý VN — Vietnam Legal Document Reference CodeSystem: L-91-2015</a> (Bộ luật 91/2015/QH13)</p><p><b>locator</b>: Điều 136 khoản 1 — cha, mẹ đối với con chưa thành niên</p><blockquote><p><b>url</b></p>legalProvision</blockquote><blockquote><p><b>url</b></p>selectionBasis</blockquote><p><b>value</b>: <a href=\"CodeSystem-vn-representation-selection-basis-cs.html#vn-representation-selection-basis-cs-civil-code-representative\">Căn cứ lựa chọn người đại diện — Patient Representative Selection Basis CodeSystem: civil-code-representative</a> (Đại diện theo Bộ luật Dân sự)</p></blockquote><p><b>identifier</b>: Căn cước công dân/079180001234</p><p><b>active</b>: true</p><p><b>patient</b>: <a href=\"Patient-ExamplePatientChildDependent.html\">Nguyễn Minh Khôi Male, DoB: 2023-06-15 ( Căn cước công dân: VNCCCD#079223000123)</a></p><p><b>relationship</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleCode FTH}\">Cha</span></p><p><b>name</b>: Nguyễn Văn Bình</p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "domain" ] ;
       fhir:Extension.valueCoding [
         fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-representation-domain-cs" ] ;
         fhir:Coding.code [ fhir:value "data-subject-rights" ] ;
         fhir:Coding.display [ fhir:value "Đại diện thực hiện quyền chủ thể dữ liệu" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "type" ] ;
       fhir:Extension.valueCoding [
         fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-representation-type-cs" ] ;
         fhir:Coding.code [ fhir:value "legal-representative" ] ;
         fhir:Coding.display [ fhir:value "Người đại diện theo pháp luật" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "source" ] ;
       fhir:Extension.valueCoding [
         fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-representation-source-cs" ] ;
         fhir:Coding.code [ fhir:value "population-registry" ] ;
         fhir:Coding.display [ fhir:value "CSDLQG về dân cư (C06)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "verifiedDate" ] ;
       fhir:Extension.valueDateTime [ fhir:value "2026-06-01"^^xsd:date ]
     ], [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "document" ] ;
         fhir:Extension.valueCoding [
           fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-document-ref-cs" ] ;
           fhir:Coding.code [ fhir:value "L-91-2015" ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "locator" ] ;
         fhir:Extension.valueString [ fhir:value "Điều 136 khoản 1 — cha, mẹ đối với con chưa thành niên" ]
       ] ;
       fhir:Extension.url [ fhir:value "legalProvision" ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "selectionBasis" ] ;
       fhir:Extension.valueCoding [
         fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-representation-selection-basis-cs" ] ;
         fhir:Coding.code [ fhir:value "civil-code-representative" ] ;
         fhir:Coding.display [ fhir:value "Đại diện theo Bộ luật Dân sự" ]
       ]
     ] ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-representation-authority" ]
  ] ;
  fhir:RelatedPerson.identifier [
     fhir:index -1 ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-identifier-type-cs" ] ;
         fhir:Coding.code [ fhir:value "CCCD" ] ;
         fhir:Coding.display [ fhir:value "Căn cước công dân" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "http://fhir.hl7.org.vn/core/sid/cccd" ] ;
     fhir:Identifier.value [ fhir:value "079180001234" ]
  ] ;
  fhir:RelatedPerson.active [ fhir:value "true"^^xsd:boolean] ;
  fhir:RelatedPerson.patient [
     fhir:link <http://fhir.hl7.org.vn/core/Patient/ExamplePatientChildDependent> ;
     fhir:Reference.reference [ fhir:value "Patient/ExamplePatientChildDependent" ]
  ] ;
  fhir:RelatedPerson.relationship [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-RoleCode" ] ;
       fhir:Coding.code [ fhir:value "FTH" ] ;
       fhir:Coding.display [ fhir:value "father" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Cha" ]
  ] ;
  fhir:RelatedPerson.name [
     fhir:index -1 ;
     fhir:HumanName.text [ fhir:value "Nguyễn Văn Bình" ] ;
     fhir:HumanName.family [ fhir:value "Nguyễn" ] ;
     fhir:HumanName.given [
       fhir:value "Văn" ;
       fhir:index -1
     ], [
       fhir:value "Bình" ;
       fhir:index -1
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/RelatedPerson/ExampleRelatedPersonDomainBasisMismatch.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

