@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-surrogacy-birth-certificate> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-sm-surrogacy-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-surrogacy-birth-certificate</b></p><a name=\"vn-sm-surrogacy-birth-certificate\"> </a><a name=\"hcvn-sm-surrogacy-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-surrogacy-birth-certificate<span style=\"color: navy\">\" = \"</span>VNSurrogacyBirthCertificateLMStructureMap<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 (mang thai hộ) QĐ 2919/QĐ-BYT — Surrogacy Birth Certificate Logical Model. Source semantics come from the logical model mapping annotations in `VNSurrogacyBirthCertificateLM.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 mang thai hộ theo QĐ 2919/QĐ-BYT Phụ lục II.</span>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-vn-core-composition-surrogacy-birth-certificate.html\" title=\"Giấy chứng sinh mang thai hộ — VN Core Surrogacy Birth Certificate Composition\">http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-composition-surrogacy-birth-certificate</a><span style=\"color: navy\">\" </span><b>alias </b>VNCoreCompositionSurrogacyBirthCertificate <b>as </b><b>source</b>#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">Giấy chứng sinh (mang thai hộ) QĐ 2919/QĐ-BYT — Surrogacy Birth Certificate Logical Model</span>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-vnSurrogacyBirthCertificateLm.html\" title=\"Giấy chứng sinh (mang thai hộ) QĐ 2919/QĐ-BYT — Surrogacy Birth Certificate Logical Model\">http://fhir.hl7.org.vn/core/StructureDefinition/vnSurrogacyBirthCertificateLm</a><span style=\"color: navy\">\" </span><b>alias </b>VNSurrogacyBirthCertificateLM <b>as </b><b>target</b>#xD;\n#xD;\n<span style=\"color: navy\">// </span><span style=\"color: green\">Bên nhờ mang thai hộ và bên mang thai hộ đều là RelatedPerson của trẻ, phân biệt bằng RelatedPerson.relationship. 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`. KHÔNG SINH XML PHẲNG TỪ MAP NÀY: Phụ lục II có sáu cặp chỉ tiêu trùng tên mang hai vai trò khác nhau (dân tộc vợ/chồng bên nhờ mang thai hộ và bên mang thai hộ, mã tỉnh/xã cư trú, mã BHXH/BHYT), nên bên nhận không phân biệt được giá trị thuộc về ai. Map chỉ mô tả quan hệ FHIR ↔ mô hình ngữ nghĩa; cổng sinh XML mở khi có XSD/data dictionary chính thức, văn bản đính chính, hoặc mẫu XML thực tế có provenance.</span>#xD;\n<b>group </b>MapVNSurrogacyBirthCertificateLM<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">sourceComposition</span><span style=\"color: navy\"> : </span>VNCoreCompositionSurrogacyBirthCertificate, <b>target</b> <span style=\"color: maroon\">targetRow</span><span style=\"color: navy\"> : </span>VNSurrogacyBirthCertificateLM<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. 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. 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: VNCoreCompositionSurrogacyBirthCertificate.identifier.value Field note: STT 2. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 18.</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: VNCoreCompositionSurrogacyBirthCertificate.extension[issueOrdinal].valueCode Field note: STT 3. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2.</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_VO_NMTH - Họ, chữ đệm, tên khai sinh của vợ bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 4. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedMotherNameSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedMotherName <i>\"intendedMotherName\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAYSINH_VO_NMTH - Ngày sinh của vợ bên nhờ mang thai hộ, yyyyMMdd hoặc yyyy FHIR path: VNCoreRelatedPerson.birthDate Mapping note: [MULTI-INSTANCE] Bốn ngày sinh thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship. Bốn chỉ tiêu thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship: mã vai của VNSurrogacyPartyRoleCS đặt cạnh mã HL7 v3 GESTM cho người sinh trẻ. KHÔNG có extension vai trò mang thai hộ — thiết kế đó đã bị bỏ ở vòng 3 ngày 14/08/2026; đính chính mô tả ngày 16/08/2026.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedMotherBirthDateSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedMotherBirthDate <i>\"intendedMotherBirthDate\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_DANTOC_CHONG_N MTH - Mã dân tộc của VỢ bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.extension[ethnicity].valueCodeableConcept.coding.code Field note: STT 6. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2. HAI XUNG ĐỘT: (a) tên công bố mang chữ CHONG trong khi chỉ tiêu thuộc về người VỢ — diễn giải của STT 6 KHÔNG nói vai trò, chỉ có đường link tra cứu danh mục dân tộc; vai trò suy từ VỊ TRÍ trong khối STT 4-9 (thông tin vợ bên nhờ mang thai hộ) và bố cục mẫu giấy; (b) tên này TRÙNG với STT 12 (chồng bên nhờ mang thai hộ). Không sinh XML từ tên công bố.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedMotherEthnicityCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedMotherEthnicityCode <i>\"intendedMotherEthnicityCode\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: LOAI_GIAYTO_VO_NMT H - Loại giấy tờ của vợ bên nhờ mang thai hộ: 1 ĐDCN, 2 hộ chiếu, 3 khác FHIR path: VNCoreRelatedPerson.identifier.type.coding.code Field note: STT 7. Kiểu công bố: Số. Bắt buộc. Tối đa 1. Dùng string vì là mã phân loại. Tên công bố chứa khoảng trắng do lỗi soạn thảo.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedMotherDocumentTypeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedMotherDocumentType <i>\"intendedMotherDocumentType\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: SO_DDCN_VO_NMTH - Số giấy tờ của vợ bên nhờ mang thai hộ 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. Tối đa 15.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedMotherDocumentNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedMotherDocumentNumber <i>\"intendedMotherDocumentNumber\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NOI_CU_TRU_VO_NMTH - Nơi cư trú của vợ bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.address.text Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 1024.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedMotherResidenceSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedMotherResidence <i>\"intendedMotherResidence\"</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ú của bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.address.extension[province].valueCoding.code Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2. Theo QĐ 19/2025/QĐ-TTg. TÊN TRÙNG với STT 19 (bên mang thai hộ).</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedMotherResidenceProvinceCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedMotherResidenceProvinceCode <i>\"intendedMotherResidenceProvinceCode\"</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ú của bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.address.extension[ward].valueCoding.code Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 5. Theo QĐ 19/2025/QĐ-TTg. TÊN TRÙNG với STT 19.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedMotherResidenceWardCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedMotherResidenceWardCode <i>\"intendedMotherResidenceWardCode\"</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 vợ bên nhờ mang thai hộ (nếu có) FHIR path: VNCoreRelatedPerson.identifier.value Field note: STT 9. Kiểu công bố: Số. Không bắt buộc. Tối đa 10. Dùng string để giữ số 0 đầu. TÊN TRÙNG với STT 20; tên gọi ME cũng không phân biệt được vai trò.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedMotherSocialInsuranceNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedMotherSocialInsuranceNumber <i>\"intendedMotherSocialInsuranceNumber\"</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 vợ bên nhờ mang thai hộ (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. Tối đa 15. TÊN TRÙNG với STT 20.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedMotherHealthInsuranceNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedMotherHealthInsuranceNumber <i>\"intendedMotherHealthInsuranceNumber\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: HOTEN_CHONG_NMTH - Họ, chữ đệm, tên khai sinh của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 10. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedFatherNameSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedFatherName <i>\"intendedFatherName\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAYSINH_CHONG_NM TH - Ngày sinh của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.birthDate Mapping note: [MULTI-INSTANCE] Bốn ngày sinh thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship. Bốn chỉ tiêu thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship: mã vai của VNSurrogacyPartyRoleCS đặt cạnh mã HL7 v3 GESTM cho người sinh trẻ. KHÔNG có extension vai trò mang thai hộ — thiết kế đó đã bị bỏ ở vòng 3 ngày 14/08/2026; đính chính mô tả ngày 16/08/2026.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedFatherBirthDateSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedFatherBirthDate <i>\"intendedFatherBirthDate\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_DANTOC_CHONG_N MTH - Mã dân tộc của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.extension[ethnicity].valueCodeableConcept.coding.code Field note: STT 12. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2. TÊN TRÙNG HOÀN TOÀN với STT 6 (vợ bên nhờ mang thai hộ) — đây là cặp trùng nghiêm trọng nhất vì cùng là mã dân tộc, không phân biệt được bằng giá trị.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedFatherEthnicityCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedFatherEthnicityCode <i>\"intendedFatherEthnicityCode\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: LOAI_GIAYTO_CHONG_ NMTH - Loại giấy tờ của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.identifier.type.coding.code Field note: STT 13. Kiểu công bố: Số. Bắt buộc. Tối đa 1. Tên công bố chứa khoảng trắng.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedFatherDocumentTypeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedFatherDocumentType <i>\"intendedFatherDocumentType\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: SO_DDCN_CHONG_NMT H - Số giấy tờ của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.identifier[CCCD].value | VNCoreRelatedPerson.identifier[HC].value Field note: STT 13. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 15. Tên công bố chứa khoảng trắng.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedFatherDocumentNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedFatherDocumentNumber <i>\"intendedFatherDocumentNumber\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NOI_CU_TRU_CHONG_N MTH - Nơi cư trú của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.address.text Field note: STT 14. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 1024. Tên công bố chứa khoảng trắng. Phụ lục II KHÔNG công bố mã tỉnh/xã riêng cho địa chỉ này.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">intendedFatherResidenceSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.intendedFatherResidence <i>\"intendedFatherResidence\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: HOTEN_VO_MTH - Họ, chữ đệm, tên khai sinh của vợ bên mang thai hộ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 15. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255. Đây là người trực tiếp sinh con.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateMotherNameSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateMotherName <i>\"surrogateMotherName\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAYSINH_VO_MTH - Ngày sinh của vợ bên mang thai hộ FHIR path: VNCoreRelatedPerson.birthDate Mapping note: [MULTI-INSTANCE] Bốn ngày sinh thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship. Bốn chỉ tiêu thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship: mã vai của VNSurrogacyPartyRoleCS đặt cạnh mã HL7 v3 GESTM cho người sinh trẻ. KHÔNG có extension vai trò mang thai hộ — thiết kế đó đã bị bỏ ở vòng 3 ngày 14/08/2026; đính chính mô tả ngày 16/08/2026.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateMotherBirthDateSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateMotherBirthDate <i>\"surrogateMotherBirthDate\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_DANTOC_CHONG_ MTH - Mã dân tộc của VỢ bên mang thai hộ FHIR path: VNCoreRelatedPerson.extension[ethnicity].valueCodeableConcept.coding.code Field note: STT 17. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2. HAI XUNG ĐỘT: (a) tên công bố mang chữ CHONG nhưng diễn giải nói NGUYÊN VĂN Ghi mã dân tộc của người vợ bên mang thai hộ — khác STT 6, ở đây văn bản tự mâu thuẫn tường minh; (b) trùng tên với STT 23 (chồng bên mang thai hộ).</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateMotherEthnicityCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateMotherEthnicityCode <i>\"surrogateMotherEthnicityCode\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: LOAI_GIAYTO_VO_MTH - Loại giấy tờ của vợ bên mang thai hộ FHIR path: VNCoreRelatedPerson.identifier.type.coding.code Field note: STT 18. Kiểu công bố: Số. Bắt buộc. Tối đa 1.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateMotherDocumentTypeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateMotherDocumentType <i>\"surrogateMotherDocumentType\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: SO_DDCN_VO_MTH - Số giấy tờ của vợ bên mang thai hộ FHIR path: VNCoreRelatedPerson.identifier[CCCD].value | VNCoreRelatedPerson.identifier[HC].value Field note: STT 18. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 15.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateMotherDocumentNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateMotherDocumentNumber <i>\"surrogateMotherDocumentNumber\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NOI_CU_TRU_VO_MTH - Nơi cư trú của vợ bên mang thai hộ FHIR path: VNCoreRelatedPerson.address.text Field note: STT 19. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 1024.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateMotherResidenceSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateMotherResidence <i>\"surrogateMotherResidence\"</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ú của bên mang thai hộ FHIR path: VNCoreRelatedPerson.address.extension[province].valueCoding.code Field note: STT 19. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2. TÊN TRÙNG với STT 8 (bên nhờ mang thai hộ).</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateMotherResidenceProvinceCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateMotherResidenceProvinceCode <i>\"surrogateMotherResidenceProvinceCode\"</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ú của bên mang thai hộ FHIR path: VNCoreRelatedPerson.address.extension[ward].valueCoding.code Field note: STT 19. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 5. TÊN TRÙNG với STT 8.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateMotherResidenceWardCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateMotherResidenceWardCode <i>\"surrogateMotherResidenceWardCode\"</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 vợ bên mang thai hộ (nếu có) FHIR path: VNCoreRelatedPerson.identifier.value Field note: STT 20. Kiểu công bố: Số. Không bắt buộc. Tối đa 10. TÊN TRÙNG với STT 9.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateMotherSocialInsuranceNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateMotherSocialInsuranceNumber <i>\"surrogateMotherSocialInsuranceNumber\"</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 vợ bên mang thai hộ (nếu có) FHIR path: VNCoreCoverage.identifier[BHYT].value Field note: STT 20. Kiểu công bố: Chuỗi. Không bắt buộc. Tối đa 15. TÊN TRÙNG với STT 9.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateMotherHealthInsuranceNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateMotherHealthInsuranceNumber <i>\"surrogateMotherHealthInsuranceNumber\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: HOTEN_CHONG_MTH - Họ, chữ đệm, tên khai sinh của chồng bên mang thai hộ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 21. Kiểu công bố: Chuỗi. Bảng đánh BẮT BUỘC nhưng mẫu giấy ghi '(nếu có)' và chú thích cho phép bỏ trống — model theo mẫu, 0..1. Tối đa 255.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateFatherNameSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateFatherName <i>\"surrogateFatherName\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: NGAYSINH_CHONG_MTH - Ngày sinh của chồng bên mang thai hộ FHIR path: VNCoreRelatedPerson.birthDate Mapping note: [MULTI-INSTANCE] Bốn ngày sinh thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship. Bốn chỉ tiêu thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship: mã vai của VNSurrogacyPartyRoleCS đặt cạnh mã HL7 v3 GESTM cho người sinh trẻ. KHÔNG có extension vai trò mang thai hộ — thiết kế đó đã bị bỏ ở vòng 3 ngày 14/08/2026; đính chính mô tả ngày 16/08/2026.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateFatherBirthDateSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateFatherBirthDate <i>\"surrogateFatherBirthDate\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: MA_DANTOC_CHONG_ MTH - Mã dân tộc của chồng bên mang thai hộ FHIR path: VNCoreRelatedPerson.extension[ethnicity].valueCodeableConcept.coding.code Field note: STT 23. Kiểu công bố: Chuỗi. Bảng đánh BẮT BUỘC, mẫu cho phép bỏ trống. Tối đa 2. TÊN TRÙNG với STT 17 (vợ bên mang thai hộ).</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateFatherEthnicityCodeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateFatherEthnicityCode <i>\"surrogateFatherEthnicityCode\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: LOAI_GIAYTO_CHONG_MTH - Loại giấy tờ của chồng bên mang thai hộ FHIR path: VNCoreRelatedPerson.identifier.type.coding.code Field note: STT 24. Kiểu công bố: Số. Bảng đánh BẮT BUỘC, mẫu cho phép bỏ trống. Tối đa 1.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateFatherDocumentTypeSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateFatherDocumentType <i>\"surrogateFatherDocumentType\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">// </span><span style=\"color: green\">Target field: SO_DDCN_CHONG_MTH - Số giấy tờ của chồng bên mang thai hộ FHIR path: VNCoreRelatedPerson.identifier[CCCD].value | VNCoreRelatedPerson.identifier[HC].value Field note: STT 24. Kiểu công bố: Chuỗi. Bảng đánh BẮT BUỘC, mẫu cho phép bỏ trống. Tối đa 15.</span>#xD;\n  sourceComposition.section 0<span style=\"color: navy\">..</span>*<b> as </b><span style=\"color: maroon\">surrogateFatherDocumentNumberSource</span><span style=\"color: navy\"><b> -&gt; </b></span>targetRow.surrogateFatherDocumentNumber <i>\"surrogateFatherDocumentNumber\"</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 25. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 12. Văn bản ghi yyyyMMddHHss nhưng diễn giải nói hai ký tự cuối là PHÚT — ngữ nghĩa thực là yyyyMMddHHmm.</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 26. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 1024. Mã theo QĐ 19/2025/QĐ-TTg.</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 28. Kiểu công bố: Số. Bắt buộc. Tối đa 1.</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 29. Kiểu công bố: Chuỗi. Không bắt buộc. Tối đa 10.</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 30. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 15.</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 30. Kiểu công bố: Chuỗi. Không bắt buộc. Tối đa 255.</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: HOTEN_THAN_NHAN - Họ, chữ đệm, tên thân nhân của trẻ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 31. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255. Phụ lục I dùng tên chỉ tiêu THAN_NHAN cho cùng nội dung — hai phụ lục đặt tên khác nhau.</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 32. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255.</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: VNCoreCompositionSurrogacyBirthCertificate.attester.party.display Field note: STT 33. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255.</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-surrogacy-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.17" ]
  ] ;
  fhir:StructureMap.version [ fhir:value "0.10.0"] ;
  fhir:StructureMap.name [ fhir:value "VNSurrogacyBirthCertificateLMStructureMap"] ;
  fhir:StructureMap.title [ fhir:value "Giấy chứng sinh (mang thai hộ) QĐ 2919/QĐ-BYT — Surrogacy 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 (mang thai hộ) QĐ 2919/QĐ-BYT — Surrogacy Birth Certificate Logical Model. Source semantics come from the logical model mapping annotations in `VNSurrogacyBirthCertificateLM.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 Giấy chứng sinh mang thai hộ theo QĐ 2919/QĐ-BYT Phụ lục II. CHỈ dùng ở tầng NGỮ NGHĨA — không sinh tài liệu XML phẳng từ map này. 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-surrogacy-birth-certificate" ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-composition-surrogacy-birth-certificate>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "source" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "VNCoreCompositionSurrogacyBirthCertificate" ] ;
     fhir:StructureMap.structure.documentation [ fhir:value "Composition giấy chứng sinh mang thai hộ theo QĐ 2919/QĐ-BYT Phụ lục II." ]
  ], [
     fhir:index -1 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vnSurrogacyBirthCertificateLm" ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vnSurrogacyBirthCertificateLm>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "VNSurrogacyBirthCertificateLM" ] ;
     fhir:StructureMap.structure.documentation [ fhir:value "Giấy chứng sinh (mang thai hộ) QĐ 2919/QĐ-BYT — Surrogacy Birth Certificate Logical Model" ]
  ] ;
  fhir:StructureMap.group [
     fhir:index -1 ;
     fhir:StructureMap.group.name [ fhir:value "MapVNSurrogacyBirthCertificateLM" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.documentation [ fhir:value "Bên nhờ mang thai hộ và bên mang thai hộ đều là RelatedPerson của trẻ, phân biệt bằng RelatedPerson.relationship. 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`. KHÔNG SINH XML PHẲNG TỪ MAP NÀY: Phụ lục II có sáu cặp chỉ tiêu trùng tên mang hai vai trò khác nhau (dân tộc vợ/chồng bên nhờ mang thai hộ và bên mang thai hộ, mã tỉnh/xã cư trú, mã BHXH/BHYT), nên bên nhận không phân biệt được giá trị thuộc về ai. Map chỉ mô tả quan hệ FHIR ↔ mô hình ngữ nghĩa; cổng sinh XML mở khi có XSD/data dictionary chính thức, văn bản đính chính, hoặc mẫu XML thực tế có provenance." ] ;
     fhir:StructureMap.group.input [
       fhir:index -1 ;
       fhir:StructureMap.group.input.name [ fhir:value "sourceComposition" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "VNCoreCompositionSurrogacyBirthCertificate" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ] ;
       fhir:StructureMap.group.input.documentation [ fhir:value "Composition giấy chứng sinh mang thai hộ theo QĐ 2919/QĐ-BYT Phụ lục II." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.input.name [ fhir:value "targetRow" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "VNSurrogacyBirthCertificateLM" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ] ;
       fhir:StructureMap.group.input.documentation [ fhir:value "Giấy chứng sinh (mang thai hộ) QĐ 2919/QĐ-BYT — Surrogacy 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. 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. 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: VNCoreCompositionSurrogacyBirthCertificate.identifier.value Field note: STT 2. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 18." ]
     ], [
       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: VNCoreCompositionSurrogacyBirthCertificate.extension[issueOrdinal].valueCode Field note: STT 3. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedMotherName" ] ;
       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 "intendedMotherNameSource" ]
       ] ;
       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 "intendedMotherName" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: HOTEN_VO_NMTH - Họ, chữ đệm, tên khai sinh của vợ bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 4. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedMotherBirthDate" ] ;
       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 "intendedMotherBirthDateSource" ]
       ] ;
       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 "intendedMotherBirthDate" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NGAYSINH_VO_NMTH - Ngày sinh của vợ bên nhờ mang thai hộ, yyyyMMdd hoặc yyyy FHIR path: VNCoreRelatedPerson.birthDate Mapping note: [MULTI-INSTANCE] Bốn ngày sinh thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship. Bốn chỉ tiêu thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship: mã vai của VNSurrogacyPartyRoleCS đặt cạnh mã HL7 v3 GESTM cho người sinh trẻ. KHÔNG có extension vai trò mang thai hộ — thiết kế đó đã bị bỏ ở vòng 3 ngày 14/08/2026; đính chính mô tả ngày 16/08/2026." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedMotherEthnicityCode" ] ;
       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 "intendedMotherEthnicityCodeSource" ]
       ] ;
       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 "intendedMotherEthnicityCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_DANTOC_CHONG_N MTH - Mã dân tộc của VỢ bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.extension[ethnicity].valueCodeableConcept.coding.code Field note: STT 6. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2. HAI XUNG ĐỘT: (a) tên công bố mang chữ CHONG trong khi chỉ tiêu thuộc về người VỢ — diễn giải của STT 6 KHÔNG nói vai trò, chỉ có đường link tra cứu danh mục dân tộc; vai trò suy từ VỊ TRÍ trong khối STT 4-9 (thông tin vợ bên nhờ mang thai hộ) và bố cục mẫu giấy; (b) tên này TRÙNG với STT 12 (chồng bên nhờ mang thai hộ). Không sinh XML từ tên công bố." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedMotherDocumentType" ] ;
       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 "intendedMotherDocumentTypeSource" ]
       ] ;
       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 "intendedMotherDocumentType" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: LOAI_GIAYTO_VO_NMT H - Loại giấy tờ của vợ bên nhờ mang thai hộ: 1 ĐDCN, 2 hộ chiếu, 3 khác FHIR path: VNCoreRelatedPerson.identifier.type.coding.code Field note: STT 7. Kiểu công bố: Số. Bắt buộc. Tối đa 1. Dùng string vì là mã phân loại. Tên công bố chứa khoảng trắng do lỗi soạn thảo." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedMotherDocumentNumber" ] ;
       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 "intendedMotherDocumentNumberSource" ]
       ] ;
       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 "intendedMotherDocumentNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: SO_DDCN_VO_NMTH - Số giấy tờ của vợ bên nhờ mang thai hộ 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. Tối đa 15." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedMotherResidence" ] ;
       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 "intendedMotherResidenceSource" ]
       ] ;
       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 "intendedMotherResidence" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NOI_CU_TRU_VO_NMTH - Nơi cư trú của vợ bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.address.text Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 1024." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedMotherResidenceProvinceCode" ] ;
       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 "intendedMotherResidenceProvinceCodeSource" ]
       ] ;
       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 "intendedMotherResidenceProvinceCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MATINH_CU_TRU - Mã tỉnh nơi cư trú của bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.address.extension[province].valueCoding.code Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2. Theo QĐ 19/2025/QĐ-TTg. TÊN TRÙNG với STT 19 (bên mang thai hộ)." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedMotherResidenceWardCode" ] ;
       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 "intendedMotherResidenceWardCodeSource" ]
       ] ;
       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 "intendedMotherResidenceWardCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MAXA_CU_TRU - Mã xã/phường nơi cư trú của bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.address.extension[ward].valueCoding.code Field note: STT 8. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 5. Theo QĐ 19/2025/QĐ-TTg. TÊN TRÙNG với STT 19." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedMotherSocialInsuranceNumber" ] ;
       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 "intendedMotherSocialInsuranceNumberSource" ]
       ] ;
       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 "intendedMotherSocialInsuranceNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_BHXH_ME - Mã số BHXH của vợ bên nhờ mang thai hộ (nếu có) FHIR path: VNCoreRelatedPerson.identifier.value Field note: STT 9. Kiểu công bố: Số. Không bắt buộc. Tối đa 10. Dùng string để giữ số 0 đầu. TÊN TRÙNG với STT 20; tên gọi ME cũng không phân biệt được vai trò." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedMotherHealthInsuranceNumber" ] ;
       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 "intendedMotherHealthInsuranceNumberSource" ]
       ] ;
       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 "intendedMotherHealthInsuranceNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_THE_ME - Mã thẻ BHYT của vợ bên nhờ mang thai hộ (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. Tối đa 15. TÊN TRÙNG với STT 20." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedFatherName" ] ;
       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 "intendedFatherNameSource" ]
       ] ;
       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 "intendedFatherName" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: HOTEN_CHONG_NMTH - Họ, chữ đệm, tên khai sinh của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 10. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedFatherBirthDate" ] ;
       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 "intendedFatherBirthDateSource" ]
       ] ;
       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 "intendedFatherBirthDate" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NGAYSINH_CHONG_NM TH - Ngày sinh của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.birthDate Mapping note: [MULTI-INSTANCE] Bốn ngày sinh thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship. Bốn chỉ tiêu thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship: mã vai của VNSurrogacyPartyRoleCS đặt cạnh mã HL7 v3 GESTM cho người sinh trẻ. KHÔNG có extension vai trò mang thai hộ — thiết kế đó đã bị bỏ ở vòng 3 ngày 14/08/2026; đính chính mô tả ngày 16/08/2026." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedFatherEthnicityCode" ] ;
       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 "intendedFatherEthnicityCodeSource" ]
       ] ;
       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 "intendedFatherEthnicityCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_DANTOC_CHONG_N MTH - Mã dân tộc của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.extension[ethnicity].valueCodeableConcept.coding.code Field note: STT 12. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2. TÊN TRÙNG HOÀN TOÀN với STT 6 (vợ bên nhờ mang thai hộ) — đây là cặp trùng nghiêm trọng nhất vì cùng là mã dân tộc, không phân biệt được bằng giá trị." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedFatherDocumentType" ] ;
       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 "intendedFatherDocumentTypeSource" ]
       ] ;
       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 "intendedFatherDocumentType" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: LOAI_GIAYTO_CHONG_ NMTH - Loại giấy tờ của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.identifier.type.coding.code Field note: STT 13. Kiểu công bố: Số. Bắt buộc. Tối đa 1. Tên công bố chứa khoảng trắng." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedFatherDocumentNumber" ] ;
       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 "intendedFatherDocumentNumberSource" ]
       ] ;
       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 "intendedFatherDocumentNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: SO_DDCN_CHONG_NMT H - Số giấy tờ của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.identifier[CCCD].value | VNCoreRelatedPerson.identifier[HC].value Field note: STT 13. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 15. Tên công bố chứa khoảng trắng." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "intendedFatherResidence" ] ;
       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 "intendedFatherResidenceSource" ]
       ] ;
       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 "intendedFatherResidence" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NOI_CU_TRU_CHONG_N MTH - Nơi cư trú của chồng bên nhờ mang thai hộ FHIR path: VNCoreRelatedPerson.address.text Field note: STT 14. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 1024. Tên công bố chứa khoảng trắng. Phụ lục II KHÔNG công bố mã tỉnh/xã riêng cho địa chỉ này." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateMotherName" ] ;
       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 "surrogateMotherNameSource" ]
       ] ;
       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 "surrogateMotherName" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: HOTEN_VO_MTH - Họ, chữ đệm, tên khai sinh của vợ bên mang thai hộ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 15. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255. Đây là người trực tiếp sinh con." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateMotherBirthDate" ] ;
       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 "surrogateMotherBirthDateSource" ]
       ] ;
       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 "surrogateMotherBirthDate" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NGAYSINH_VO_MTH - Ngày sinh của vợ bên mang thai hộ FHIR path: VNCoreRelatedPerson.birthDate Mapping note: [MULTI-INSTANCE] Bốn ngày sinh thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship. Bốn chỉ tiêu thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship: mã vai của VNSurrogacyPartyRoleCS đặt cạnh mã HL7 v3 GESTM cho người sinh trẻ. KHÔNG có extension vai trò mang thai hộ — thiết kế đó đã bị bỏ ở vòng 3 ngày 14/08/2026; đính chính mô tả ngày 16/08/2026." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateMotherEthnicityCode" ] ;
       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 "surrogateMotherEthnicityCodeSource" ]
       ] ;
       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 "surrogateMotherEthnicityCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_DANTOC_CHONG_ MTH - Mã dân tộc của VỢ bên mang thai hộ FHIR path: VNCoreRelatedPerson.extension[ethnicity].valueCodeableConcept.coding.code Field note: STT 17. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2. HAI XUNG ĐỘT: (a) tên công bố mang chữ CHONG nhưng diễn giải nói NGUYÊN VĂN Ghi mã dân tộc của người vợ bên mang thai hộ — khác STT 6, ở đây văn bản tự mâu thuẫn tường minh; (b) trùng tên với STT 23 (chồng bên mang thai hộ)." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateMotherDocumentType" ] ;
       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 "surrogateMotherDocumentTypeSource" ]
       ] ;
       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 "surrogateMotherDocumentType" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: LOAI_GIAYTO_VO_MTH - Loại giấy tờ của vợ bên mang thai hộ FHIR path: VNCoreRelatedPerson.identifier.type.coding.code Field note: STT 18. Kiểu công bố: Số. Bắt buộc. Tối đa 1." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateMotherDocumentNumber" ] ;
       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 "surrogateMotherDocumentNumberSource" ]
       ] ;
       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 "surrogateMotherDocumentNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: SO_DDCN_VO_MTH - Số giấy tờ của vợ bên mang thai hộ FHIR path: VNCoreRelatedPerson.identifier[CCCD].value | VNCoreRelatedPerson.identifier[HC].value Field note: STT 18. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 15." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateMotherResidence" ] ;
       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 "surrogateMotherResidenceSource" ]
       ] ;
       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 "surrogateMotherResidence" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NOI_CU_TRU_VO_MTH - Nơi cư trú của vợ bên mang thai hộ FHIR path: VNCoreRelatedPerson.address.text Field note: STT 19. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 1024." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateMotherResidenceProvinceCode" ] ;
       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 "surrogateMotherResidenceProvinceCodeSource" ]
       ] ;
       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 "surrogateMotherResidenceProvinceCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MATINH_CU_TRU - Mã tỉnh nơi cư trú của bên mang thai hộ FHIR path: VNCoreRelatedPerson.address.extension[province].valueCoding.code Field note: STT 19. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 2. TÊN TRÙNG với STT 8 (bên nhờ mang thai hộ)." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateMotherResidenceWardCode" ] ;
       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 "surrogateMotherResidenceWardCodeSource" ]
       ] ;
       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 "surrogateMotherResidenceWardCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MAXA_CU_TRU - Mã xã/phường nơi cư trú của bên mang thai hộ FHIR path: VNCoreRelatedPerson.address.extension[ward].valueCoding.code Field note: STT 19. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 5. TÊN TRÙNG với STT 8." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateMotherSocialInsuranceNumber" ] ;
       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 "surrogateMotherSocialInsuranceNumberSource" ]
       ] ;
       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 "surrogateMotherSocialInsuranceNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_BHXH_ME - Mã số BHXH của vợ bên mang thai hộ (nếu có) FHIR path: VNCoreRelatedPerson.identifier.value Field note: STT 20. Kiểu công bố: Số. Không bắt buộc. Tối đa 10. TÊN TRÙNG với STT 9." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateMotherHealthInsuranceNumber" ] ;
       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 "surrogateMotherHealthInsuranceNumberSource" ]
       ] ;
       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 "surrogateMotherHealthInsuranceNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_THE_ME - Mã thẻ BHYT của vợ bên mang thai hộ (nếu có) FHIR path: VNCoreCoverage.identifier[BHYT].value Field note: STT 20. Kiểu công bố: Chuỗi. Không bắt buộc. Tối đa 15. TÊN TRÙNG với STT 9." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateFatherName" ] ;
       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 "surrogateFatherNameSource" ]
       ] ;
       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 "surrogateFatherName" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: HOTEN_CHONG_MTH - Họ, chữ đệm, tên khai sinh của chồng bên mang thai hộ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 21. Kiểu công bố: Chuỗi. Bảng đánh BẮT BUỘC nhưng mẫu giấy ghi '(nếu có)' và chú thích cho phép bỏ trống — model theo mẫu, 0..1. Tối đa 255." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateFatherBirthDate" ] ;
       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 "surrogateFatherBirthDateSource" ]
       ] ;
       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 "surrogateFatherBirthDate" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: NGAYSINH_CHONG_MTH - Ngày sinh của chồng bên mang thai hộ FHIR path: VNCoreRelatedPerson.birthDate Mapping note: [MULTI-INSTANCE] Bốn ngày sinh thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship. Bốn chỉ tiêu thuộc BỐN RelatedPerson khác nhau (cha/mẹ nhờ mang thai hộ và cha/mẹ mang thai hộ), phân biệt bằng RelatedPerson.relationship: mã vai của VNSurrogacyPartyRoleCS đặt cạnh mã HL7 v3 GESTM cho người sinh trẻ. KHÔNG có extension vai trò mang thai hộ — thiết kế đó đã bị bỏ ở vòng 3 ngày 14/08/2026; đính chính mô tả ngày 16/08/2026." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateFatherEthnicityCode" ] ;
       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 "surrogateFatherEthnicityCodeSource" ]
       ] ;
       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 "surrogateFatherEthnicityCode" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: MA_DANTOC_CHONG_ MTH - Mã dân tộc của chồng bên mang thai hộ FHIR path: VNCoreRelatedPerson.extension[ethnicity].valueCodeableConcept.coding.code Field note: STT 23. Kiểu công bố: Chuỗi. Bảng đánh BẮT BUỘC, mẫu cho phép bỏ trống. Tối đa 2. TÊN TRÙNG với STT 17 (vợ bên mang thai hộ)." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateFatherDocumentType" ] ;
       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 "surrogateFatherDocumentTypeSource" ]
       ] ;
       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 "surrogateFatherDocumentType" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: LOAI_GIAYTO_CHONG_MTH - Loại giấy tờ của chồng bên mang thai hộ FHIR path: VNCoreRelatedPerson.identifier.type.coding.code Field note: STT 24. Kiểu công bố: Số. Bảng đánh BẮT BUỘC, mẫu cho phép bỏ trống. Tối đa 1." ]
     ], [
       fhir:index -1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "surrogateFatherDocumentNumber" ] ;
       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 "surrogateFatherDocumentNumberSource" ]
       ] ;
       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 "surrogateFatherDocumentNumber" ]
       ] ;
       fhir:StructureMap.group.rule.documentation [ fhir:value "Target field: SO_DDCN_CHONG_MTH - Số giấy tờ của chồng bên mang thai hộ FHIR path: VNCoreRelatedPerson.identifier[CCCD].value | VNCoreRelatedPerson.identifier[HC].value Field note: STT 24. Kiểu công bố: Chuỗi. Bảng đánh BẮT BUỘC, mẫu cho phép bỏ trống. 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 25. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 12. Văn bản ghi yyyyMMddHHss nhưng diễn giải nói hai ký tự cuối là PHÚT — ngữ nghĩa thực là yyyyMMddHHmm." ]
     ], [
       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 26. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 1024. Mã theo QĐ 19/2025/QĐ-TTg." ]
     ], [
       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 28. Kiểu công bố: Số. Bắt buộc. Tối đa 1." ]
     ], [
       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 29. Kiểu công bố: Chuỗi. Không bắt buộc. Tối đa 10." ]
     ], [
       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 30. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 15." ]
     ], [
       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 30. Kiểu công bố: Chuỗi. Không bắt buộc. Tối đa 255." ]
     ], [
       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: HOTEN_THAN_NHAN - Họ, chữ đệm, tên thân nhân của trẻ FHIR path: VNCoreRelatedPerson.name.text Field note: STT 31. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255. Phụ lục I dùng tên chỉ tiêu THAN_NHAN cho cùng nội dung — hai phụ lục đặt tên khác nhau." ]
     ], [
       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 32. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255." ]
     ], [
       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: VNCoreCompositionSurrogacyBirthCertificate.attester.party.display Field note: STT 33. Kiểu công bố: Chuỗi. Bắt buộc. Tối đa 255." ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/StructureMap/vn-sm-surrogacy-birth-certificate.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

