Hướng dẫn triển khai FHIR cốt lõi Việt Nam — VN Core FHIR Implementation Guide
0.10.0 - Draft for Community Review
Hướng dẫn triển khai FHIR cốt lõi Việt Nam — VN Core FHIR Implementation Guide - Draft for Community Review (v0.10.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Draft tại thời điểm 2026-07-31 |
Các định nghĩa cho vn-ext-audit-retention phần mở rộng
Guidance on how to interpret the contents of this table can be foundhere
| 0. Extension | |
| Definition | Thời hạn lưu hồ sơ sự cố vi phạm dữ liệu cá nhân, ghi trên AuditEvent của chính sự cố đó. Phạm vi hẹp — đọc kỹ trước khi dùng. Căn cứ NĐ 356/2025/NĐ-CP Điều 29 khoản 1 điểm c: 'Tổ chức phải lưu hồ sơ vi phạm trong thời gian tối thiểu 5 năm kể từ ngày khắc phục xong sự cố' — và điều khoản này áp cho hồ sơ sự cố liên quan dữ liệu vị trí và dữ liệu sinh trắc học, không phải cho nhật ký truy cập nói chung. Vì vậy extension này CHỈ dùng trên AuditEvent ghi nhận một sự cố vi phạm thuộc phạm vi trên. KHÔNG dùng làm thời hạn lưu trữ chung cho mọi nhật ký truy cập: thời hạn lưu nhật ký là chính sách ở cấp hệ thống và cấp phân loại dữ liệu, gắn một khoảng thời gian tuỳ ý lên mọi AuditEvent vừa sai căn cứ vừa làm tăng lượng dữ liệu phải giữ. Trước 0.10.0, phần mô tả có câu 'khuyến nghị mặc định 5 năm cho mọi loại DLCN nhạy cảm' — đó là mở rộng quá phạm vi điều khoản, đã gỡ (kiểm toán 31/07/2026 — analysis/77 mục C1). Optional Extension Element - found in all resources. |
| Short | Thời hạn lưu trữ log audit — VN Audit Retention PeriodOptional Extensions Element |
| Control | 0..* This element is affected by the following invariants: ele-1 |
| Is Modifier | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())vn-audit-retention-minimum: Ngày kết thúc đã khai không được chắc chắn sớm hơn năm năm sau ngày khắc phục sự cố. A declared end SHALL NOT be demonstrably earlier than five years after remediation. ( value.ofType(Period).all((end >= start + 5 years).all($this)))ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| 2. Extension.extension | |
| Definition | An Extension May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. |
| Short | ExtensionAdditional content defined by implementations |
| Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. |
| Control | 0..0* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
| Slicing | This element introduces a set of slices on Extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 4. Extension.url | |
| Definition | Source of the definition for the extension code - a logical name or a URL. |
| Short | identifies the meaning of the extension |
| Comments | The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension. |
| Control | 1..1 |
| Type | uri |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| Fixed Value | http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-audit-retention |
| 6. Extension.value[x] | |
| Definition | Khoảng lưu hồ sơ sự cố thuộc phạm vi Điều 29. Không có end nghĩa là chưa ấn định ngày kết thúc, không có nghĩa thời hạn bằng 0. Invariant chỉ bác ngày kết thúc chắc chắn ngắn hơn năm năm; ngày có độ chính xác không đủ để so sánh cần được bên triển khai xác minh. Profile không chứng minh ngày khắc phục là thật hoặc hệ thống đã lưu hồ sơ đủ thời hạn. The invariant rejects a demonstrably short declared period; it does not certify remediation evidence, uncertain date precision or actual storage retention. Value of extension - must be one of a constrained set of the data types (see Extensibility for a list). |
| Short | Period với start = ngày khắc phục, end = start + tối thiểu 5 nămValue of extension |
| Control | 10..1 |
| Type | Period, date, Meta, Address, Attachment, integer, Count, DataRequirement, Dosage, uuid, Identifier, Coding, SampledData, id, positiveInt, Distance, Duration, canonical, Range, RelatedArtifact, base64Binary, UsageContext, Timing, decimal, CodeableConcept, ParameterDefinition, dateTime, code, string, Contributor, oid, instant, ContactPoint, HumanName, Money, markdown, Ratio, Age, Reference, TriggerDefinition, Quantity, uri, url, Annotation, ContactDetail, boolean, Expression, Signature, unsignedInt, time |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 8. Extension.value[x].start | |
| Definition | The start of the period. The boundary is inclusive. |
| Short | Ngày khắc phục xong sự cố — mốc bắt đầu thời hạn lưuStarting time with inclusive boundary |
| Comments | If the low element is missing, the meaning is that the low boundary is not known. |
| Control | 10..1 This element is affected by the following invariants: per-1 |
| Type | dateTime |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 10. Extension.value[x].end | |
| Definition | The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time. |
| Short | Ngày dự kiến kết thúc retention (≥ start + 5 năm theo NĐ 356/2025/NĐ-CP Điều 29)End time with inclusive boundary, if not ongoing |
| Comments | The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03. |
| Control | 0..1 This element is affected by the following invariants: per-1 |
| Type | dateTime |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Summary | true |
| Meaning if Missing | If the end of the period is missing, it means that the period is ongoing |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
Guidance on how to interpret the contents of this table can be foundhere
| 0. Extension | |
| Definition | Thời hạn lưu hồ sơ sự cố vi phạm dữ liệu cá nhân, ghi trên AuditEvent của chính sự cố đó. Phạm vi hẹp — đọc kỹ trước khi dùng. Căn cứ NĐ 356/2025/NĐ-CP Điều 29 khoản 1 điểm c: 'Tổ chức phải lưu hồ sơ vi phạm trong thời gian tối thiểu 5 năm kể từ ngày khắc phục xong sự cố' — và điều khoản này áp cho hồ sơ sự cố liên quan dữ liệu vị trí và dữ liệu sinh trắc học, không phải cho nhật ký truy cập nói chung. Vì vậy extension này CHỈ dùng trên AuditEvent ghi nhận một sự cố vi phạm thuộc phạm vi trên. KHÔNG dùng làm thời hạn lưu trữ chung cho mọi nhật ký truy cập: thời hạn lưu nhật ký là chính sách ở cấp hệ thống và cấp phân loại dữ liệu, gắn một khoảng thời gian tuỳ ý lên mọi AuditEvent vừa sai căn cứ vừa làm tăng lượng dữ liệu phải giữ. Trước 0.10.0, phần mô tả có câu 'khuyến nghị mặc định 5 năm cho mọi loại DLCN nhạy cảm' — đó là mở rộng quá phạm vi điều khoản, đã gỡ (kiểm toán 31/07/2026 — analysis/77 mục C1). |
| Short | Thời hạn lưu trữ log audit — VN Audit Retention Period |
| Invariants | vn-audit-retention-minimum: Ngày kết thúc đã khai không được chắc chắn sớm hơn năm năm sau ngày khắc phục sự cố. A declared end SHALL NOT be demonstrably earlier than five years after remediation. (value.ofType(Period).all((end >= start + 5 years).all($this))) |
| 2. Extension.extension | |
| Control | 0..0 |
| 4. Extension.url | |
| Fixed Value | http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-audit-retention |
| 6. Extension.value[x] | |
| Definition | Khoảng lưu hồ sơ sự cố thuộc phạm vi Điều 29. Không có end nghĩa là chưa ấn định ngày kết thúc, không có nghĩa thời hạn bằng 0. Invariant chỉ bác ngày kết thúc chắc chắn ngắn hơn năm năm; ngày có độ chính xác không đủ để so sánh cần được bên triển khai xác minh. Profile không chứng minh ngày khắc phục là thật hoặc hệ thống đã lưu hồ sơ đủ thời hạn. The invariant rejects a demonstrably short declared period; it does not certify remediation evidence, uncertain date precision or actual storage retention. |
| Short | Period với start = ngày khắc phục, end = start + tối thiểu 5 năm |
| Control | 1..? |
| Type | Period, date, Meta, Address, Attachment, integer, Count, DataRequirement, Dosage, uuid, Identifier, Coding, SampledData, id, positiveInt, Distance, Duration, canonical, Range, RelatedArtifact, base64Binary, UsageContext, Timing, decimal, CodeableConcept, ParameterDefinition, dateTime, code, string, Contributor, oid, instant, ContactPoint, HumanName, Money, markdown, Ratio, Age, Reference, TriggerDefinition, Quantity, uri, url, Annotation, ContactDetail, boolean, Expression, Signature, unsignedInt, time |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| 8. Extension.value[x].start | |
| Short | Ngày khắc phục xong sự cố — mốc bắt đầu thời hạn lưu |
| Control | 1..? |
| 10. Extension.value[x].end | |
| Short | Ngày dự kiến kết thúc retention (≥ start + 5 năm theo NĐ 356/2025/NĐ-CP Điều 29) |
Guidance on how to interpret the contents of this table can be foundhere
| 0. Extension | |
| Definition | Thời hạn lưu hồ sơ sự cố vi phạm dữ liệu cá nhân, ghi trên AuditEvent của chính sự cố đó. Phạm vi hẹp — đọc kỹ trước khi dùng. Căn cứ NĐ 356/2025/NĐ-CP Điều 29 khoản 1 điểm c: 'Tổ chức phải lưu hồ sơ vi phạm trong thời gian tối thiểu 5 năm kể từ ngày khắc phục xong sự cố' — và điều khoản này áp cho hồ sơ sự cố liên quan dữ liệu vị trí và dữ liệu sinh trắc học, không phải cho nhật ký truy cập nói chung. Vì vậy extension này CHỈ dùng trên AuditEvent ghi nhận một sự cố vi phạm thuộc phạm vi trên. KHÔNG dùng làm thời hạn lưu trữ chung cho mọi nhật ký truy cập: thời hạn lưu nhật ký là chính sách ở cấp hệ thống và cấp phân loại dữ liệu, gắn một khoảng thời gian tuỳ ý lên mọi AuditEvent vừa sai căn cứ vừa làm tăng lượng dữ liệu phải giữ. Trước 0.10.0, phần mô tả có câu 'khuyến nghị mặc định 5 năm cho mọi loại DLCN nhạy cảm' — đó là mở rộng quá phạm vi điều khoản, đã gỡ (kiểm toán 31/07/2026 — analysis/77 mục C1). |
| Short | Thời hạn lưu trữ log audit — VN Audit Retention Period |
| Control | 0..* This element is affected by the following invariants: ele-1 |
| Is Modifier | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists())vn-audit-retention-minimum: Ngày kết thúc đã khai không được chắc chắn sớm hơn năm năm sau ngày khắc phục sự cố. A declared end SHALL NOT be demonstrably earlier than five years after remediation. ( value.ofType(Period).all((end >= start + 5 years).all($this))) |
| 2. Extension.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 |
| Type | string |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 4. Extension.extension | |
| Definition | An Extension |
| Short | Extension |
| Control | 0..0 |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) |
| Slicing | This element introduces a set of slices on Extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 6. Extension.url | |
| Definition | Source of the definition for the extension code - a logical name or a URL. |
| Short | identifies the meaning of the extension |
| Comments | The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension. |
| Control | 1..1 |
| Type | uri |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| Fixed Value | http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-audit-retention |
| 8. Extension.value[x] | |
| Definition | Khoảng lưu hồ sơ sự cố thuộc phạm vi Điều 29. Không có end nghĩa là chưa ấn định ngày kết thúc, không có nghĩa thời hạn bằng 0. Invariant chỉ bác ngày kết thúc chắc chắn ngắn hơn năm năm; ngày có độ chính xác không đủ để so sánh cần được bên triển khai xác minh. Profile không chứng minh ngày khắc phục là thật hoặc hệ thống đã lưu hồ sơ đủ thời hạn. The invariant rejects a demonstrably short declared period; it does not certify remediation evidence, uncertain date precision or actual storage retention. |
| Short | Period với start = ngày khắc phục, end = start + tối thiểu 5 năm |
| Control | 1..1 |
| Type | Period |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| Is Modifier | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 10. Extension.value[x].id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 |
| Type | string |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 12. Extension.value[x].extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. |
| Short | Additional content defined by implementations |
| Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists()) |
| Slicing | This element introduces a set of slices on Extension.value[x].extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 14. Extension.value[x].start | |
| Definition | The start of the period. The boundary is inclusive. |
| Short | Ngày khắc phục xong sự cố — mốc bắt đầu thời hạn lưu |
| Comments | If the low element is missing, the meaning is that the low boundary is not known. |
| Control | 1..1 This element is affected by the following invariants: per-1 |
| Type | dateTime |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 16. Extension.value[x].end | |
| Definition | The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time. |
| Short | Ngày dự kiến kết thúc retention (≥ start + 5 năm theo NĐ 356/2025/NĐ-CP Điều 29) |
| Comments | The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03. |
| Control | 0..1 This element is affected by the following invariants: per-1 |
| Type | dateTime |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Summary | true |
| Meaning if Missing | If the end of the period is missing, it means that the period is ongoing |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |