@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/StructureMap/vn-sm-birth-certificate> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-sm-birth-certificate"] ;
  fhir:Resource.language [ fhir:value "vi"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap vn-sm-birth-certificate</b></p><a name=\"vn-sm-birth-certificate\"> </a><a name=\"hcvn-sm-birth-certificate\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://fhir.hl7.org.vn/core/StructureMap/vn-sm-birth-certificate<span style=\"color: navy\">\" = \"</span>VNBirthCertificateLMStructureMap<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Generated StructureMap scaffold for Giấy chứng sinh (sinh thường) QĐ 2919/QĐ-BYT — Birth Certificate Logical Model. Source semantics come from the logical model mapping annotations in `VNBirthCertificateLM.fsh` and remain aligned with the Python BHYT round-trip export adapter.</span>#xD;\n#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">Composition giấy chứng sinh (sinh thường) theo QĐ 2919/QĐ-BYT Phụ lục I.</span>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-vn-core-composition-birth-certificate.html\" title=\"Giấy chứng sinh — VN Core Birth Certificate Composition\">http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-composition-birth-certificate</a><span style=\"color: navy\">\" </span><b>alias </b>VNCoreCompositionBirthCertificate <b>as </b><b>source</b>#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">Giấy chứng sinh (sinh thường) QĐ 2919/QĐ-BYT — Birth Certificate Logical Model</span>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-vnBirthCertificateLm.html\" title=\"Giấy chứng sinh (sinh thường) QĐ 2919/QĐ-BYT — Birth Certificate Logical Model\">http://fhir.hl7.org.vn/core/StructureDefinition/vnBirthCertificateLm</a><span style=\"color: navy\">\" </span><b>alias </b>VNBirthCertificateLM <b>as </b><b>target</b>#xD;\n#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">Nguồn dữ liệu là Composition/DocumentReference giấy chứng sinh, Patient trẻ sơ sinh, RelatedPerson người mẹ và Practitioner ký giấy. Generated from logical-model `^mapping` annotations. Fields still missing a field-level `^mapping.map` entry remain outside this StructureMap and are tracked in `wiki/mappings/bhyt-output-data/machine/structuremap-coverage.json`.</span>#xD;\n<b>group </b>MapVNBirthCertificateLM<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">sourceComposition</span><span style=\"color: navy\"> : </span>VNCoreCompositionBirthCertificate, <b>target</b> <span style=\"color: maroon\">targetRow</span><span style=\"color: navy\"> : </span>VNBirthCertificateLM<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: TEN_CSKBCB - Tên cơ sở khám bệnh, chữa bệnh nơi cấp giấy chứng sinh FHIR path: VNCoreKCBOrganization.name Field note: STT 1. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 255.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">facilityNameSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.facilityName <i>\"facilityName\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_CSKBCB - Mã cơ sở khám bệnh, chữa bệnh (05 ký tự) FHIR path: VNCoreOrganization.identifier[CSKCB].value Field note: STT 1. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 5.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">facilityCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.facilityCode <i>\"facilityCode\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_GCS - Mã giấy chứng sinh, 18 ký tự dạng XXXXX.GCS.ZZZZZ.YY FHIR path: VNCoreCompositionBirthCertificate.identifier.value Field note: STT 2. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 18. XXXXX = số thứ tự tăng dần trong năm tại cơ sở; GCS = literal; ZZZZZ = mã cơ sở KBCB; YY = hai số cuối của năm.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">certificateNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.certificateNumber <i>\"certificateNumber\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: LAN_CAP - Lần cấp: 0 cấp lần đầu, 1 cấp lại FHIR path: VNCoreCompositionBirthCertificate.extension[issueOrdinal].valueCode Field note: STT 3. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 2 — nhưng hai giá trị công bố đều chỉ một ký tự; giữ 2 theo đúng bảng.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">issueOrdinalSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.issueOrdinal <i>\"issueOrdinal\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: HOTEN_ME - Họ, chữ đệm, tên khai sinh của mẹ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 4. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 255.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">motherNameSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.motherName <i>\"motherName\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAYSINH_ME - Ngày sinh của mẹ, yyyyMMdd hoặc yyyy FHIR path: VNCoreRelatedPerson.birthDate Field note: STT 5. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 8. Cho phép chỉ có năm khi không rõ ngày tháng — dùng string chứ không dùng date để giữ được độ chính xác thấp đó.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">motherBirthDateSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.motherBirthDate <i>\"motherBirthDate\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_DANTOC_ME - Mã dân tộc của mẹ FHIR path: VNCoreRelatedPerson.extension[ethnicity].valueCodeableConcept.coding.code Field note: STT 6. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 2. Tra cứu theo Danh mục các dân tộc Việt Nam của Cục Thống kê.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">motherEthnicityCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.motherEthnicityCode <i>\"motherEthnicityCode\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: LOAI_GIAYTO_ME - Loại giấy tờ: 1 ĐDCN, 2 hộ chiếu, 3 giấy tờ khác FHIR path: VNCoreRelatedPerson.identifier.type.coding.code Field note: STT 7. Kiểu công bố: Số. Bắt buộc. Kích thước tối đa 1. Dùng string vì đây là MÃ PHÂN LOẠI, không phải lượng.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">motherDocumentTypeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.motherDocumentType <i>\"motherDocumentType\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: SO_DDCN_ME - Số ĐDCN/hộ chiếu/giấy tờ tuỳ thân khác của mẹ FHIR path: VNCoreRelatedPerson.identifier[CCCD].value | VNCoreRelatedPerson.identifier[HC].value Field note: STT 7. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 15.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">motherDocumentNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.motherDocumentNumber <i>\"motherDocumentNumber\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NOI_CU_TRU_ME - Địa chỉ nơi cư trú của mẹ FHIR path: VNCoreRelatedPerson.address.text Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 1024. Người nước ngoài không cư trú tại Việt Nam ghi địa chỉ lãnh sự quán tại Việt Nam.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">motherResidenceSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.motherResidence <i>\"motherResidence\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MATINH_CU_TRU - Mã tỉnh nơi cư trú (02 ký tự) FHIR path: VNCoreRelatedPerson.address.extension[province].valueCoding.code Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 2. Theo QĐ 19/2025/QĐ-TTg.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">motherResidenceProvinceCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.motherResidenceProvinceCode <i>\"motherResidenceProvinceCode\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MAXA_CU_TRU - Mã xã/phường nơi cư trú (05 ký tự) FHIR path: VNCoreRelatedPerson.address.extension[ward].valueCoding.code Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 5. Theo QĐ 19/2025/QĐ-TTg — mô hình hai cấp, không có cấp huyện.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">motherResidenceWardCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.motherResidenceWardCode <i>\"motherResidenceWardCode\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_BHXH_ME - Mã số BHXH của mẹ (nếu có) FHIR path: VNCoreRelatedPerson.identifier.value Field note: STT 9. Kiểu công bố: Số. Không bắt buộc. Kích thước tối đa 10. Dùng string: định danh 10 chữ số, ép sang số nguyên sẽ mất số 0 đứng đầu.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">motherSocialInsuranceNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.motherSocialInsuranceNumber <i>\"motherSocialInsuranceNumber\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_THE_ME - Mã thẻ BHYT của mẹ (nếu có) FHIR path: VNCoreCoverage.identifier[BHYT].value Field note: STT 9. Kiểu công bố: Chuỗi. Không bắt buộc. Kích thước tối đa 15.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">motherHealthInsuranceNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.motherHealthInsuranceNumber <i>\"motherHealthInsuranceNumber\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_SINH_CON - Thời điểm sinh con, 12 ký tự FHIR path: VNCorePatient.birthDate + VNCorePatient.extension[birthTime].valueDateTime Field note: STT 10. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 12. VĂN BẢN GHI KÝ HIỆU MÂU THUẪN: công bố `yyyyMMddHHss` nhưng diễn giải nói hai ký tự cuối là PHÚT sinh. Theo chuẩn kỹ thuật thông thường `ss` là giây và `mm` mới là phút; độ dài 12 ký tự cũng chỉ đủ tới phút. Ngữ nghĩa THỰC là `yyyyMMddHHmm`. Giữ nguyên ký hiệu công bố ở mapping, không tự sửa văn bản.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">childBirthDateTimeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.childBirthDateTime <i>\"childBirthDateTime\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NOI_SINH_CON - Nơi sinh con, dạng {mã tỉnh}:{mã xã}:{địa chỉ đầy đủ} FHIR path: VNCorePatient.extension[birthPlace].valueAddress Field note: STT 11. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 1024. Mã tỉnh/xã theo QĐ 19/2025/QĐ-TTg. Cấu trúc ghép ba phần bằng dấu hai chấm là quy định của văn bản, không phải quy ước của VN Core.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">childBirthPlaceSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.childBirthPlace <i>\"childBirthPlace\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: GIOI_TINH_CON - Giới tính của con: 1 nam, 2 nữ, 3 chưa xác định FHIR path: VNCorePatient.gender Field note: STT 13. Kiểu công bố: Số. Bắt buộc. Kích thước tối đa 1. Dùng string vì đây là mã phân loại.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">childGenderSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.childGender <i>\"childGender\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: CAN_NANG_CON - Cân nặng của con, tính bằng gam FHIR path: VNCoreObservationBodyWeight.value[x] (CHUYỂN ĐƠN VỊ BẮT BUỘC: chỉ tiêu tính bằng GAM, profile khoá UCUM #kg — adapter phải chia 1000 trước khi ghi) Field note: STT 14. Kiểu công bố: Chuỗi. Không bắt buộc. Kích thước tối đa 10. Đơn vị công bố là gam.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">childWeightSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.childWeight <i>\"childWeight\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_THE_TAM - Mã thẻ BHYT tạm thời của trẻ FHIR path: VNCoreCoverage.identifier.value Field note: STT 15. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 15. Nằm dưới nhãn 'Dự định đặt tên con' trong bảng công bố — nhãn không khớp nội dung, giữ nguyên để đối chiếu.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">childTemporaryInsuranceCardSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.childTemporaryInsuranceCard <i>\"childTemporaryInsuranceCard\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: TEN_CON - Tên dự định đặt cho con FHIR path: VNCorePatient.name.text Field note: STT 15. Kiểu công bố: Chuỗi. Không bắt buộc. Kích thước tối đa 255. Tên dự kiến, có thể thay đổi khi đăng ký khai sinh.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">childIntendedNameSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.childIntendedName <i>\"childIntendedName\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: GHI_CHU - Ghi chú về phẫu thuật và/hoặc sinh dưới 32 tuần FHIR path: VNCoreCompositionBirthCertificate.section.text Field note: STT 16. Kiểu công bố: Chuỗi. Không bắt buộc. Kích thước tối đa 1500. Văn bản quy định chỉ ghi MỘT trong ba nội dung: 'Sinh con phải phẫu thuật', 'Sinh con dưới 32 tuần tuổi', hoặc 'Phẫu thuật, sinh con dưới 32 tuần tuổi'.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">noteSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.note <i>\"note\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: SINHCON_PHAUTHUAT - Cờ sinh con phải phẫu thuật: 1 có, 0 không FHIR path: VNCoreProcedure.code Field note: STT 16. Kiểu công bố: Số. Không bắt buộc. Kích thước tối đa 1. TÊN CÔNG BỐ chứa khoảng trắng ('SINHCON_PHAUTH UAT') — lỗi soạn thảo trong chính bản DOCX, đã bỏ khoảng trắng ở tên phần tử.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surgicalDeliveryFlagSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surgicalDeliveryFlag <i>\"surgicalDeliveryFlag\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: TINH_TRANG_CON - Tình trạng của trẻ tại thời điểm làm giấy chứng sinh FHIR path: VNCoreCondition.code.text Field note: STT 16. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 500. Trường hợp dị dạng, dị tật phải ghi cụ thể.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">childConditionSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.childCondition <i>\"childCondition\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAY_CS - Ngày cấp giấy chứng sinh, yyyyMMdd FHIR path: VNCoreCompositionBirthCertificate.date Field note: STT 17. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 8.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">issueDateSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.issueDate <i>\"issueDate\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: THAN_NHAN - Họ, chữ đệm, tên thân nhân của trẻ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 18. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 255.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">relativeNameSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.relativeName <i>\"relativeName\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGUOI_DO_DE - Chức danh và họ tên người đỡ đẻ FHIR path: VNCorePractitioner.name.text Field note: STT 19. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 255. Văn bản yêu cầu ghi CẢ chức danh lẫn họ tên trong cùng một trường.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">midwifeNameSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.midwifeName <i>\"midwifeName\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: THU_TRUONG_DVI - Người đứng đầu cơ sở KBCB hoặc người được uỷ quyền ký FHIR path: VNCoreCompositionBirthCertificate.attester.party.display Field note: STT 20. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 255. Ghi họ tên và đóng dấu.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">headOfFacilityNameSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.headOfFacilityName <i>\"headOfFacilityName\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-legal-basis" ] ;
     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 "QD-2919-2025" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-legal-basis" ] ;
     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 "ND-63-2024" ]
     ]
  ] ;
  fhir:StructureMap.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureMap/vn-sm-birth-certificate"] ;
  fhir:StructureMap.identifier [
     fhir:index -1 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.25.161089673617632664299011809196868855799.43.16" ]
  ] ;
  fhir:StructureMap.version [ fhir:value "0.10.0"] ;
  fhir:StructureMap.name [ fhir:value "VNBirthCertificateLMStructureMap"] ;
  fhir:StructureMap.title [ fhir:value "Giấy chứng sinh (sinh thường) QĐ 2919/QĐ-BYT — Birth Certificate Logical Model — StructureMap"] ;
  fhir:StructureMap.status [ fhir:value "draft"] ;
  fhir:StructureMap.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:StructureMap.date [ fhir:value "2026-04-28"^^xsd:date] ;
  fhir:StructureMap.publisher [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative"] ;
  fhir:StructureMap.contact [
     fhir:index -1 ;
     fhir:ContactDetail.name [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://hl7.org.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "info@hl7.org.vn" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:ContactDetail.name [ fhir:value "Omi HealthTech (OmiGroup)" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://omihealthtech.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://omigroup.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "info@hl7.org.vn" ]
     ]
  ] ;
  fhir:StructureMap.description [ fhir:value "Generated StructureMap scaffold for Giấy chứng sinh (sinh thường) QĐ 2919/QĐ-BYT — Birth Certificate Logical Model. Source semantics come from the logical model mapping annotations in `VNBirthCertificateLM.fsh` and remain aligned with the Python BHYT round-trip export adapter."] ;
  fhir:StructureMap.jurisdiction [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "VN" ] ;
       fhir:Coding.display [ fhir:value "Viet Nam" ]
     ]
  ] ;
  fhir:StructureMap.purpose [ fhir:value "Ánh xạ FHIR → chỉ tiêu dữ liệu điện tử Giấy chứng sinh (sinh thường) theo QĐ 2919/QĐ-BYT Phụ lục I, áp dụng cho giấy cấp từ 01/10/2025. Mức độ: map khai QUAN HỆ TRƯỜNG giữa Composition và logical model (mỗi rule nêu trường nguồn, trường đích và ghi chú chỉ tiêu), chưa phải map THỰC THI — rule chưa có `transform`, chưa dereference Patient/RelatedPerson và chưa chọn section theo mã. Dùng để đối soát và sinh tài liệu ánh xạ; không dùng thay engine chuyển đổi."] ;
  fhir:StructureMap.structure [
     fhir:index -1 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-composition-birth-certificate" ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-composition-birth-certificate>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "source" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "VNCoreCompositionBirthCertificate" ] ;
     fhir:StructureMap.structure.documentation [ fhir:value "Composition giấy chứng sinh (sinh thường) theo QĐ 2919/QĐ-BYT Phụ lục I." ]
  ], [
     fhir:index -1 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vnBirthCertificateLm" ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vnBirthCertificateLm>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "VNBirthCertificateLM" ] ;
     fhir:StructureMap.structure.documentation [ fhir:value "Giấy chứng sinh (sinh thường) QĐ 2919/QĐ-BYT — Birth Certificate Logical Model" ]
  ] ;
  fhir:StructureMap.group [
     fhir:index -1 ;
     fhir:StructureMap.group.name [ fhir:value "MapVNBirthCertificateLM" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.documentation [ fhir:value "Nguồn dữ liệu là Composition/DocumentReference giấy chứng sinh, Patient trẻ sơ sinh, RelatedPerson người mẹ và Practitioner ký giấy. Generated from logical-model `^mapping` annotations. Fields still missing a field-level `^mapping.map` entry remain outside this StructureMap and are tracked in `wiki/mappings/bhyt-output-data/machine/structuremap-coverage.json`." ] ;
     fhir:StructureMap.group.input [
       fhir:index -1 ;
       fhir:StructureMap.group.input.name [ fhir:value "sourceComposition" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "VNCoreCompositionBirthCertificate" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ] ;
       fhir:StructureMap.group.input.documentation [ fhir:value "Composition giấy chứng sinh (sinh thường) theo QĐ 2919/QĐ-BYT Phụ lục I." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.input.name [ fhir:value "targetRow" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "VNBirthCertificateLM" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ] ;
       fhir:StructureMap.group.input.documentation [ fhir:value "Giấy chứng sinh (sinh thường) QĐ 2919/QĐ-BYT — Birth Certificate Logical Model" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "facilityName" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "facilityNameSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "facilityName" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: TEN_CSKBCB - Tên cơ sở khám bệnh, chữa bệnh nơi cấp giấy chứng sinh FHIR path: VNCoreKCBOrganization.name Field note: STT 1. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 255." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "facilityCode" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "facilityCodeSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "facilityCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_CSKBCB - Mã cơ sở khám bệnh, chữa bệnh (05 ký tự) FHIR path: VNCoreOrganization.identifier[CSKCB].value Field note: STT 1. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 5." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "certificateNumber" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "certificateNumberSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "certificateNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_GCS - Mã giấy chứng sinh, 18 ký tự dạng XXXXX.GCS.ZZZZZ.YY FHIR path: VNCoreCompositionBirthCertificate.identifier.value Field note: STT 2. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 18. XXXXX = số thứ tự tăng dần trong năm tại cơ sở; GCS = literal; ZZZZZ = mã cơ sở KBCB; YY = hai số cuối của năm." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "issueOrdinal" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "issueOrdinalSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "issueOrdinal" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: LAN_CAP - Lần cấp: 0 cấp lần đầu, 1 cấp lại FHIR path: VNCoreCompositionBirthCertificate.extension[issueOrdinal].valueCode Field note: STT 3. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 2 — nhưng hai giá trị công bố đều chỉ một ký tự; giữ 2 theo đúng bảng." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "motherName" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "motherNameSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "motherName" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: HOTEN_ME - Họ, chữ đệm, tên khai sinh của mẹ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 4. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 255." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "motherBirthDate" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "motherBirthDateSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "motherBirthDate" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NGAYSINH_ME - Ngày sinh của mẹ, yyyyMMdd hoặc yyyy FHIR path: VNCoreRelatedPerson.birthDate Field note: STT 5. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 8. Cho phép chỉ có năm khi không rõ ngày tháng — dùng string chứ không dùng date để giữ được độ chính xác thấp đó." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "motherEthnicityCode" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "motherEthnicityCodeSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "motherEthnicityCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_DANTOC_ME - Mã dân tộc của mẹ FHIR path: VNCoreRelatedPerson.extension[ethnicity].valueCodeableConcept.coding.code Field note: STT 6. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 2. Tra cứu theo Danh mục các dân tộc Việt Nam của Cục Thống kê." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "motherDocumentType" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "motherDocumentTypeSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "motherDocumentType" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: LOAI_GIAYTO_ME - Loại giấy tờ: 1 ĐDCN, 2 hộ chiếu, 3 giấy tờ khác FHIR path: VNCoreRelatedPerson.identifier.type.coding.code Field note: STT 7. Kiểu công bố: Số. Bắt buộc. Kích thước tối đa 1. Dùng string vì đây là MÃ PHÂN LOẠI, không phải lượng." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "motherDocumentNumber" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "motherDocumentNumberSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "motherDocumentNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: SO_DDCN_ME - Số ĐDCN/hộ chiếu/giấy tờ tuỳ thân khác của mẹ FHIR path: VNCoreRelatedPerson.identifier[CCCD].value | VNCoreRelatedPerson.identifier[HC].value Field note: STT 7. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 15." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "motherResidence" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "motherResidenceSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "motherResidence" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NOI_CU_TRU_ME - Địa chỉ nơi cư trú của mẹ FHIR path: VNCoreRelatedPerson.address.text Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 1024. Người nước ngoài không cư trú tại Việt Nam ghi địa chỉ lãnh sự quán tại Việt Nam." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "motherResidenceProvinceCode" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "motherResidenceProvinceCodeSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "motherResidenceProvinceCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MATINH_CU_TRU - Mã tỉnh nơi cư trú (02 ký tự) FHIR path: VNCoreRelatedPerson.address.extension[province].valueCoding.code Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 2. Theo QĐ 19/2025/QĐ-TTg." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "motherResidenceWardCode" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "motherResidenceWardCodeSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "motherResidenceWardCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MAXA_CU_TRU - Mã xã/phường nơi cư trú (05 ký tự) FHIR path: VNCoreRelatedPerson.address.extension[ward].valueCoding.code Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 5. Theo QĐ 19/2025/QĐ-TTg — mô hình hai cấp, không có cấp huyện." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "motherSocialInsuranceNumber" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "motherSocialInsuranceNumberSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "motherSocialInsuranceNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_BHXH_ME - Mã số BHXH của mẹ (nếu có) FHIR path: VNCoreRelatedPerson.identifier.value Field note: STT 9. Kiểu công bố: Số. Không bắt buộc. Kích thước tối đa 10. Dùng string: định danh 10 chữ số, ép sang số nguyên sẽ mất số 0 đứng đầu." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "motherHealthInsuranceNumber" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "motherHealthInsuranceNumberSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "motherHealthInsuranceNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_THE_ME - Mã thẻ BHYT của mẹ (nếu có) FHIR path: VNCoreCoverage.identifier[BHYT].value Field note: STT 9. Kiểu công bố: Chuỗi. Không bắt buộc. Kích thước tối đa 15." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "childBirthDateTime" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "childBirthDateTimeSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "childBirthDateTime" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NGAY_SINH_CON - Thời điểm sinh con, 12 ký tự FHIR path: VNCorePatient.birthDate + VNCorePatient.extension[birthTime].valueDateTime Field note: STT 10. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 12. VĂN BẢN GHI KÝ HIỆU MÂU THUẪN: công bố `yyyyMMddHHss` nhưng diễn giải nói hai ký tự cuối là PHÚT sinh. Theo chuẩn kỹ thuật thông thường `ss` là giây và `mm` mới là phút; độ dài 12 ký tự cũng chỉ đủ tới phút. Ngữ nghĩa THỰC là `yyyyMMddHHmm`. Giữ nguyên ký hiệu công bố ở mapping, không tự sửa văn bản." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "childBirthPlace" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "childBirthPlaceSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "childBirthPlace" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NOI_SINH_CON - Nơi sinh con, dạng {mã tỉnh}:{mã xã}:{địa chỉ đầy đủ} FHIR path: VNCorePatient.extension[birthPlace].valueAddress Field note: STT 11. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 1024. Mã tỉnh/xã theo QĐ 19/2025/QĐ-TTg. Cấu trúc ghép ba phần bằng dấu hai chấm là quy định của văn bản, không phải quy ước của VN Core." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "childGender" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "childGenderSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "childGender" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: GIOI_TINH_CON - Giới tính của con: 1 nam, 2 nữ, 3 chưa xác định FHIR path: VNCorePatient.gender Field note: STT 13. Kiểu công bố: Số. Bắt buộc. Kích thước tối đa 1. Dùng string vì đây là mã phân loại." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "childWeight" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "childWeightSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "childWeight" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: CAN_NANG_CON - Cân nặng của con, tính bằng gam FHIR path: VNCoreObservationBodyWeight.value[x] (CHUYỂN ĐƠN VỊ BẮT BUỘC: chỉ tiêu tính bằng GAM, profile khoá UCUM #kg — adapter phải chia 1000 trước khi ghi) Field note: STT 14. Kiểu công bố: Chuỗi. Không bắt buộc. Kích thước tối đa 10. Đơn vị công bố là gam." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "childTemporaryInsuranceCard" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "childTemporaryInsuranceCardSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "childTemporaryInsuranceCard" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_THE_TAM - Mã thẻ BHYT tạm thời của trẻ FHIR path: VNCoreCoverage.identifier.value Field note: STT 15. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 15. Nằm dưới nhãn 'Dự định đặt tên con' trong bảng công bố — nhãn không khớp nội dung, giữ nguyên để đối chiếu." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "childIntendedName" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "childIntendedNameSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "childIntendedName" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: TEN_CON - Tên dự định đặt cho con FHIR path: VNCorePatient.name.text Field note: STT 15. Kiểu công bố: Chuỗi. Không bắt buộc. Kích thước tối đa 255. Tên dự kiến, có thể thay đổi khi đăng ký khai sinh." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "note" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "noteSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "note" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: GHI_CHU - Ghi chú về phẫu thuật và/hoặc sinh dưới 32 tuần FHIR path: VNCoreCompositionBirthCertificate.section.text Field note: STT 16. Kiểu công bố: Chuỗi. Không bắt buộc. Kích thước tối đa 1500. Văn bản quy định chỉ ghi MỘT trong ba nội dung: 'Sinh con phải phẫu thuật', 'Sinh con dưới 32 tuần tuổi', hoặc 'Phẫu thuật, sinh con dưới 32 tuần tuổi'." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surgicalDeliveryFlag" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "surgicalDeliveryFlagSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "surgicalDeliveryFlag" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: SINHCON_PHAUTHUAT - Cờ sinh con phải phẫu thuật: 1 có, 0 không FHIR path: VNCoreProcedure.code Field note: STT 16. Kiểu công bố: Số. Không bắt buộc. Kích thước tối đa 1. TÊN CÔNG BỐ chứa khoảng trắng ('SINHCON_PHAUTH UAT') — lỗi soạn thảo trong chính bản DOCX, đã bỏ khoảng trắng ở tên phần tử." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "childCondition" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "childConditionSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "childCondition" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: TINH_TRANG_CON - Tình trạng của trẻ tại thời điểm làm giấy chứng sinh FHIR path: VNCoreCondition.code.text Field note: STT 16. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 500. Trường hợp dị dạng, dị tật phải ghi cụ thể." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "issueDate" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "issueDateSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "issueDate" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NGAY_CS - Ngày cấp giấy chứng sinh, yyyyMMdd FHIR path: VNCoreCompositionBirthCertificate.date Field note: STT 17. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 8." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "relativeName" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "relativeNameSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "relativeName" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: THAN_NHAN - Họ, chữ đệm, tên thân nhân của trẻ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 18. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 255." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "midwifeName" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "midwifeNameSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "midwifeName" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NGUOI_DO_DE - Chức danh và họ tên người đỡ đẻ FHIR path: VNCorePractitioner.name.text Field note: STT 19. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 255. Văn bản yêu cầu ghi CẢ chức danh lẫn họ tên trong cùng một trường." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "headOfFacilityName" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "sourceComposition" ] ;
         fhir:StructureMap.group.rule.source.min [ fhir:value "0"^^xsd:integer ] ;
         fhir:StructureMap.group.rule.source.max [ fhir:value "*" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "section" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "headOfFacilityNameSource" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index -1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "targetRow" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "headOfFacilityName" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: THU_TRUONG_DVI - Người đứng đầu cơ sở KBCB hoặc người được uỷ quyền ký FHIR path: VNCoreCompositionBirthCertificate.attester.party.display Field note: STT 20. Kiểu công bố: Chuỗi. Bắt buộc. Kích thước tối đa 255. Ghi họ tên và đóng dấu." ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/StructureMap/vn-sm-birth-certificate.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

