@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/ExampleRelatedPersonProxyAdultSelectionBasisMismatch> a fhir:RelatedPerson ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleRelatedPersonProxyAdultSelectionBasisMismatch"] ;
  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 ExampleRelatedPersonProxyAdultSelectionBasisMismatch</b></p><a name=\"ExampleRelatedPersonProxyAdultSelectionBasisMismatch\"> </a><a name=\"hcExampleRelatedPersonProxyAdultSelectionBasisMismatch\"> </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-healthcare-decision\">Miền thẩm quyền đại diện — Vietnam Representation Authority Domain CodeSystem: healthcare-decision</a> (Đại diện quyết định khám chữa bệnh)</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-delegated-proxy\">Loại thẩm quyền đại diện — Vietnam Representation Authority Type CodeSystem: delegated-proxy</a> (Người được uỷ quyền)</p><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-adult-patient-selected\">Căn cứ lựa chọn người đại diện — Patient Representative Selection Basis CodeSystem: adult-patient-selected</a> (Do người bệnh thành niên tự lựa chọn)</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-notarized\">Nguồn xác minh thẩm quyền đại diện — Vietnam Representation Verification Source CodeSystem: notarized</a> (Văn bản uỷ quyền công chứng)</p><p><b>issuer</b>: Văn phòng công chứng Ba Đình, Hà Nội</p><p><b>document</b>: <a href=\"NamingSystem-vn-document-number-ns.html\" title=\"SCHEME DÙNG TẠM per-facility — 0.8.0 hạ cấp (hậu kiểm toán Codex): định danh này do TỪNG cơ sở#xA;tự quản lý nên khoá uniqueness là system+value; một URI quốc gia dùng chung KHÔNG bảo đảm uniqueness.#xA;Khuyến nghị chính: mỗi cơ sở tự công bố URI riêng; URI scheme này chỉ dùng khi chưa có URI riêng,#xA;khi đó assigner là bắt buộc nghiệp vụ (khuyến nghị bổ sung, không phải cơ chế uniqueness chính).#xA;Namespace khuyến nghị cho mã tài liệu lâm sàng nội bộ do cơ sở y tế phát sinh, dùng cho Composition.identifier và DocumentReference.identifier khi chưa có NamingSystem riêng của từng cơ sở.\">VNDocumentNumber</a>/CC-2026-04581</p><p><b>scope</b>: Nhận kết quả khám bệnh và hồ sơ điều trị ngoại trú</p><blockquote><p><b>url</b></p>evidence</blockquote><blockquote><p><b>url</b></p>verifiedDate</blockquote><p><b>value</b>: 2026-06-01 09:00:00+0700</p><blockquote><p><b>url</b></p>period</blockquote><p><b>value</b>: 2026-06-01 --&gt; 2026-12-31</p><p><b>document</b>: <a href=\"CodeSystem-vn-legal-document-ref-cs.html#vn-legal-document-ref-cs-L-15-2023\">Văn bản pháp lý VN — Vietnam Legal Document Reference CodeSystem: L-15-2023</a> (Luật 15/2023/QH15)</p><p><b>locator</b>: Điều 8 khoản 2 điểm a</p><blockquote><p><b>url</b></p>legalProvision</blockquote></blockquote><p><b>active</b>: true</p><p><b>patient</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An</a></p><p><b>relationship</b>: <span title=\"Codes:\">Người được uỷ quyền nhận kết quả khám bệnh</span></p><p><b>name</b>: Phạm Văn Đức</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 "healthcare-decision" ] ;
         fhir:Coding.display [ fhir:value "Đại diện quyết định khám chữa bệnh" ]
       ]
     ], [
       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 "delegated-proxy" ] ;
         fhir:Coding.display [ fhir:value "Người được uỷ quyền" ]
       ]
     ], [
       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 "adult-patient-selected" ] ;
         fhir:Coding.display [ fhir:value "Do người bệnh thành niên tự lựa chọn" ]
       ]
     ], [
       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 "notarized" ] ;
         fhir:Coding.display [ fhir:value "Văn bản uỷ quyền công chứng" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "issuer" ] ;
         fhir:Extension.valueString [ fhir:value "Văn phòng công chứng Ba Đình, Hà Nội" ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "document" ] ;
         fhir:Extension.valueIdentifier [
           fhir:Identifier.system [ fhir:value "http://fhir.hl7.org.vn/core/sid/document-number" ] ;
           fhir:Identifier.value [ fhir:value "CC-2026-04581" ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "scope" ] ;
         fhir:Extension.valueString [ fhir:value "Nhận kết quả khám bệnh và hồ sơ điều trị ngoại trú" ]
       ] ;
       fhir:Extension.url [ fhir:value "evidence" ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "verifiedDate" ] ;
       fhir:Extension.valueDateTime [ fhir:value "2026-06-01T09:00:00+07:00"^^xsd:dateTime ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "period" ] ;
       fhir:Extension.valuePeriod [
         fhir:Period.start [ fhir:value "2026-06-01"^^xsd:date ] ;
         fhir:Period.end [ fhir:value "2026-12-31"^^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-15-2023" ] ;
           fhir:Coding.display [ fhir:value "Luật 15/2023/QH15" ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "locator" ] ;
         fhir:Extension.valueString [ fhir:value "Điều 8 khoản 2 điểm a" ]
       ] ;
       fhir:Extension.url [ fhir:value "legalProvision" ]
     ] ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-representation-authority" ]
  ] ;
  fhir:RelatedPerson.active [ fhir:value "true"^^xsd:boolean] ;
  fhir:RelatedPerson.patient [
     fhir:link <http://fhir.hl7.org.vn/core/Patient/ExamplePatientNguyenVanAn> ;
     fhir:Reference.reference [ fhir:value "Patient/ExamplePatientNguyenVanAn" ] ;
     fhir:Reference.display [ fhir:value "Nguyễn Văn An" ]
  ] ;
  fhir:RelatedPerson.relationship [
     fhir:index -1 ;
     fhir:CodeableConcept.text [ fhir:value "Người được uỷ quyền nhận kết quả khám bệnh" ]
  ] ;
  fhir:RelatedPerson.name [
     fhir:index -1 ;
     fhir:HumanName.text [ fhir:value "Phạm Văn Đức" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/RelatedPerson/ExampleRelatedPersonProxyAdultSelectionBasisMismatch.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

