HL7 Vietnam VN Core FHIR Implementation Guide

Bộ Hướng dẫn Triển khai Core FHIR cho Việt Nam
0.5.0 - Draft for Community Review

Bộ Hướng dẫn Triển khai Core FHIR cho Việt Nam - Local Development build (v0.5.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Mô hình logic: Check-in BHYT — Logical Model - Hồ sơ TTL

Draft tại thời điểm 2026-04-29

Biểu diễn TTL của bhytCheckInLm mô hình logic.

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

     a fhir:StructureDefinition ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "bhytCheckInLm"] ; #
      fhir:language [ fhir:v "vi"] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition bhytCheckInLm</b></p><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Minimum and Maximum # of times the element can appear in the instance\">Card.</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Additional information about the element\">Description &amp; Constraints</a><span style=\"float: right\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64, \" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-bhytCheckInLm-definitions.html#bhytCheckInLm\" title=\"Logical model cho dữ liệu tiếp nhận/check-in trước khi gửi hồ sơ thanh toán BHYT.\">bhytCheckInLm</a><a name=\"bhytCheckInLm\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://build.fhir.org/types.html#Base\">Base</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Check-in BHYT — Logical Model</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-bhytCheckInLm-definitions.html#bhytCheckInLm.maLk\" title=\"Mã liên kết hồ sơ\">maLk</a><a name=\"bhytCheckInLm.maLk\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Mã liên kết hồ sơ</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-bhytCheckInLm-definitions.html#bhytCheckInLm.maCskcb\" title=\"Mã cơ sở khám chữa bệnh\">maCskcb</a><a name=\"bhytCheckInLm.maCskcb\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Mã cơ sở khám chữa bệnh</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-bhytCheckInLm-definitions.html#bhytCheckInLm.maBn\" title=\"Mã người bệnh tại cơ sở\">maBn</a><a name=\"bhytCheckInLm.maBn\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Mã người bệnh tại cơ sở</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-bhytCheckInLm-definitions.html#bhytCheckInLm.soCccd\" title=\"Số CCCD hoặc mã định danh cá nhân\">soCccd</a><a name=\"bhytCheckInLm.soCccd\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Số CCCD hoặc mã định danh cá nhân</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-bhytCheckInLm-definitions.html#bhytCheckInLm.maThe\" title=\"Số thẻ BHYT\">maThe</a><a name=\"bhytCheckInLm.maThe\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Số thẻ BHYT</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-bhytCheckInLm-definitions.html#bhytCheckInLm.maDoituongKcb\" title=\"Mã đối tượng đến KCB\">maDoituongKcb</a><a name=\"bhytCheckInLm.maDoituongKcb\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Mã đối tượng đến KCB</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-bhytCheckInLm-definitions.html#bhytCheckInLm.thoiGianTiepNhan\" title=\"Thời gian tiếp nhận theo định dạng yyyyMMddHHmm\">thoiGianTiepNhan</a><a name=\"bhytCheckInLm.thoiGianTiepNhan\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Thời gian tiếp nhận theo định dạng yyyyMMddHHmm</td></tr>#xD;\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64, \" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:url [
    fhir:v "http://fhir.hl7.org.vn/core/StructureDefinition/bhytCheckInLm"^^xsd:anyURI ;
    fhir:l <http://fhir.hl7.org.vn/core/StructureDefinition/bhytCheckInLm>
      ] ; #
      fhir:version [ fhir:v "0.5.0"] ; #
      fhir:name [ fhir:v "BHYTCheckInLM"] ; #
      fhir:title [ fhir:v "Check-in BHYT — Logical Model"] ; #
      fhir:status [ fhir:v "draft"] ; #
      fhir:date [ fhir:v "2026-04-29T14:58:55+07:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "Omi HealthTech / VN Core FHIR Community Initiative"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "Omi HealthTech / VN Core FHIR Community Initiative" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://hl7.org.vn" ]     ] [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "info@hl7.org.vn" ]     ] )
      ] [
    fhir:name [ fhir:v "Omi HealthTech (OmiGroup)" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://omihealthtech.vn" ]     ] [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://omigroup.vn" ]     ] [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "healthtech@omigroup.vn" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "Logical model cho dữ liệu tiếp nhận/check-in trước khi gửi hồ sơ thanh toán BHYT."] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [
    fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
    fhir:l <urn:iso:std:iso:3166>       ] ;
    fhir:code [ fhir:v "VN" ] ;
    fhir:display [ fhir:v "Viet Nam" ]     ] )
      ] ) ; #
      fhir:fhirVersion [ fhir:v "4.0.1"] ; #
      fhir:mapping ( [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:uri [
    fhir:v "http://fhir.hl7.org.vn/core/mapping/bhyt-submission-fhir"^^xsd:anyURI ;
    fhir:l <http://fhir.hl7.org.vn/core/mapping/bhyt-submission-fhir>     ] ;
    fhir:name [ fhir:v "VN Core FHIR mapping" ] ;
    fhir:comment [ fhir:v "Logical model fields are populated from VN Core FHIR resources and the repository BHYT round-trip export rules." ]
      ] ) ; #
      fhir:kind [ fhir:v "logical"] ; #
      fhir:abstract [ fhir:v false] ; #
      fhir:type [
    fhir:v "http://fhir.hl7.org.vn/core/StructureDefinition/bhytCheckInLm"^^xsd:anyURI ;
    fhir:l <http://fhir.hl7.org.vn/core/StructureDefinition/bhytCheckInLm>
      ] ; #
      fhir:baseDefinition [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Base"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Base>
      ] ; #
      fhir:derivation [ fhir:v "specialization"] ; #
      fhir:snapshot [
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version>       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "4.0.1"       ]     ] ) ;
        ( fhir:element [
    fhir:id [ fhir:v "bhytCheckInLm" ] ;
    fhir:path [ fhir:v "bhytCheckInLm" ] ;
    fhir:short [ fhir:v "Check-in BHYT — Logical Model" ] ;
    fhir:definition [ fhir:v "Logical model cho dữ liệu tiếp nhận/check-in trước khi gửi hồ sơ thanh toán BHYT." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Base" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
    fhir:isModifier [ fhir:v false ]     ] [
    fhir:id [ fhir:v "bhytCheckInLm.maLk" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.maLk" ] ;
    fhir:short [ fhir:v "Mã liên kết hồ sơ" ] ;
    fhir:definition [ fhir:v "Mã liên kết hồ sơ" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "bhytCheckInLm.maLk" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCoreClaim.identifier[MALK].value" ] ;
    fhir:comment [ fhir:v "Authoritative submission business key." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.maCskcb" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.maCskcb" ] ;
    fhir:short [ fhir:v "Mã cơ sở khám chữa bệnh" ] ;
    fhir:definition [ fhir:v "Mã cơ sở khám chữa bệnh" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "bhytCheckInLm.maCskcb" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCoreEncounter.serviceProvider.resolve().identifier[CSKCB].value | VNCoreClaim.provider.resolve().identifier[CSKCB].value" ] ;
    fhir:comment [ fhir:v "Use the actual receiving/providing facility. Do not fall back to Coverage.primaryCareFacility because MA_DKBD may differ from the facility providing the visit." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.maBn" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.maBn" ] ;
    fhir:short [ fhir:v "Mã người bệnh tại cơ sở" ] ;
    fhir:definition [ fhir:v "Mã người bệnh tại cơ sở" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "bhytCheckInLm.maBn" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCorePatient.identifier[MRN].value" ] ;
    fhir:comment [ fhir:v "Medical record number used by the healthcare facility." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.soCccd" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.soCccd" ] ;
    fhir:short [ fhir:v "Số CCCD hoặc mã định danh cá nhân" ] ;
    fhir:definition [ fhir:v "Số CCCD hoặc mã định danh cá nhân" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "bhytCheckInLm.soCccd" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCorePatient.identifier[CCCD].value" ] ;
    fhir:comment [ fhir:v "May be absent only with a valid force-majeure reason." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.maThe" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.maThe" ] ;
    fhir:short [ fhir:v "Số thẻ BHYT" ] ;
    fhir:definition [ fhir:v "Số thẻ BHYT" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "bhytCheckInLm.maThe" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCoreCoverage.identifier[BHYT].value | VNCorePatient.identifier[BHYT].value" ] ;
    fhir:comment [ fhir:v "Coverage is authoritative; Patient slice is a compatibility fallback." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.maDoituongKcb" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.maDoituongKcb" ] ;
    fhir:short [ fhir:v "Mã đối tượng đến KCB" ] ;
    fhir:definition [ fhir:v "Mã đối tượng đến KCB" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "bhytCheckInLm.maDoituongKcb" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCoreClaim.subType" ] ;
    fhir:comment [ fhir:v "Do not map to Coverage.extension[bhytCardType]; MA_DOITUONG_KCB is visit classification, while bhytCardType is the insured/card group from the BHYT identifier." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.thoiGianTiepNhan" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.thoiGianTiepNhan" ] ;
    fhir:short [ fhir:v "Thời gian tiếp nhận theo định dạng yyyyMMddHHmm" ] ;
    fhir:definition [ fhir:v "Thời gian tiếp nhận theo định dạng yyyyMMddHHmm" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "bhytCheckInLm.thoiGianTiepNhan" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCoreEncounter.period.start | VNCoreClaim.created" ] ;
    fhir:comment [ fhir:v "Encounter start is semantically preferred; Claim.created is the repository fallback when a dedicated check-in instant is unavailable." ]       ] )     ] )
      ] ; #
      fhir:differential [
        ( fhir:element [
    fhir:id [ fhir:v "bhytCheckInLm" ] ;
    fhir:path [ fhir:v "bhytCheckInLm" ] ;
    fhir:short [ fhir:v "Check-in BHYT — Logical Model" ] ;
    fhir:definition [ fhir:v "Logical model cho dữ liệu tiếp nhận/check-in trước khi gửi hồ sơ thanh toán BHYT." ]     ] [
    fhir:id [ fhir:v "bhytCheckInLm.maLk" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.maLk" ] ;
    fhir:short [ fhir:v "Mã liên kết hồ sơ" ] ;
    fhir:definition [ fhir:v "Mã liên kết hồ sơ" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCoreClaim.identifier[MALK].value" ] ;
    fhir:comment [ fhir:v "Authoritative submission business key." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.maCskcb" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.maCskcb" ] ;
    fhir:short [ fhir:v "Mã cơ sở khám chữa bệnh" ] ;
    fhir:definition [ fhir:v "Mã cơ sở khám chữa bệnh" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCoreEncounter.serviceProvider.resolve().identifier[CSKCB].value | VNCoreClaim.provider.resolve().identifier[CSKCB].value" ] ;
    fhir:comment [ fhir:v "Use the actual receiving/providing facility. Do not fall back to Coverage.primaryCareFacility because MA_DKBD may differ from the facility providing the visit." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.maBn" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.maBn" ] ;
    fhir:short [ fhir:v "Mã người bệnh tại cơ sở" ] ;
    fhir:definition [ fhir:v "Mã người bệnh tại cơ sở" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCorePatient.identifier[MRN].value" ] ;
    fhir:comment [ fhir:v "Medical record number used by the healthcare facility." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.soCccd" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.soCccd" ] ;
    fhir:short [ fhir:v "Số CCCD hoặc mã định danh cá nhân" ] ;
    fhir:definition [ fhir:v "Số CCCD hoặc mã định danh cá nhân" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCorePatient.identifier[CCCD].value" ] ;
    fhir:comment [ fhir:v "May be absent only with a valid force-majeure reason." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.maThe" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.maThe" ] ;
    fhir:short [ fhir:v "Số thẻ BHYT" ] ;
    fhir:definition [ fhir:v "Số thẻ BHYT" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCoreCoverage.identifier[BHYT].value | VNCorePatient.identifier[BHYT].value" ] ;
    fhir:comment [ fhir:v "Coverage is authoritative; Patient slice is a compatibility fallback." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.maDoituongKcb" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.maDoituongKcb" ] ;
    fhir:short [ fhir:v "Mã đối tượng đến KCB" ] ;
    fhir:definition [ fhir:v "Mã đối tượng đến KCB" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCoreClaim.subType" ] ;
    fhir:comment [ fhir:v "Do not map to Coverage.extension[bhytCardType]; MA_DOITUONG_KCB is visit classification, while bhytCardType is the insured/card group from the BHYT identifier." ]       ] )     ] [
    fhir:id [ fhir:v "bhytCheckInLm.thoiGianTiepNhan" ] ;
    fhir:path [ fhir:v "bhytCheckInLm.thoiGianTiepNhan" ] ;
    fhir:short [ fhir:v "Thời gian tiếp nhận theo định dạng yyyyMMddHHmm" ] ;
    fhir:definition [ fhir:v "Thời gian tiếp nhận theo định dạng yyyyMMddHHmm" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "vn-fhir" ] ;
    fhir:map [ fhir:v "VNCoreEncounter.period.start | VNCoreClaim.created" ] ;
    fhir:comment [ fhir:v "Encounter start is semantically preferred; Claim.created is the repository fallback when a dedicated check-in instant is unavailable." ]       ] )     ] )
      ] . #