HL7 Vietnam VN Core FHIR Implementation Guide

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 Viet Nam cờ

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

Phần mở rộng: Thời hạn lưu trữ log audit — VN Audit Retention Period - Mô tả chi tiết

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.

ShortThời hạn lưu trữ log audit — VN Audit Retention PeriodOptional Extensions Element
Control0..*
This element is affected by the following invariants: ele-1
Is Modifierfalse
Invariantsele-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.

ShortExtensionAdditional 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.

Control0..0*
TypeExtension
Is Modifierfalse
Summaryfalse
Alternate Namesextensions, user content
Invariantsele-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())
SlicingThis element introduces a set of slices on Extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
  • value @ url
  • 4. Extension.url
    Definition

    Source of the definition for the extension code - a logical name or a URL.

    Shortidentifies 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.

    Control1..1
    Typeuri
    Is Modifierfalse
    XML FormatIn the XML format, this property is represented as an attribute.
    Summaryfalse
    Fixed Valuehttp://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).

    ShortPeriod với start = ngày khắc phục, end = start + tối thiểu 5 nămValue of extension
    Control10..1
    TypePeriod, 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] NoteSeeChoice of Data Typesfor further information about how to use [x]
    Is Modifierfalse
    Summaryfalse
    Invariantsele-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.

    ShortNgà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.

    Control10..1
    This element is affected by the following invariants: per-1
    TypedateTime
    Is Modifierfalse
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Summarytrue
    Invariantsele-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.

    ShortNgà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.

    Control0..1
    This element is affected by the following invariants: per-1
    TypedateTime
    Is Modifierfalse
    Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
    Summarytrue
    Meaning if MissingIf the end of the period is missing, it means that the period is ongoing
    Invariantsele-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).

    ShortThời hạn lưu trữ log audit — VN Audit Retention Period
    Invariantsvn-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
    Control0..0
    4. Extension.url
    Fixed Valuehttp://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.

    ShortPeriod với start = ngày khắc phục, end = start + tối thiểu 5 năm
    Control1..?
    TypePeriod, 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] NoteSeeChoice of Data Typesfor further information about how to use [x]
    8. Extension.value[x].start
    ShortNgày khắc phục xong sự cố — mốc bắt đầu thời hạn lưu
    Control1..?
    10. Extension.value[x].end
    ShortNgà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).

    ShortThời hạn lưu trữ log audit — VN Audit Retention Period
    Control0..*
    This element is affected by the following invariants: ele-1
    Is Modifierfalse
    Invariantsele-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.

    ShortUnique id for inter-element referencing
    Control0..1
    Typestring
    Is Modifierfalse
    XML FormatIn the XML format, this property is represented as an attribute.
    Summaryfalse
    4. Extension.extension
    Definition

    An Extension

    ShortExtension
    Control0..0
    TypeExtension
    Is Modifierfalse
    Summaryfalse
    Invariantsele-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())
    SlicingThis element introduces a set of slices on Extension.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
    • value @ url
    • 6. Extension.url
      Definition

      Source of the definition for the extension code - a logical name or a URL.

      Shortidentifies 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.

      Control1..1
      Typeuri
      Is Modifierfalse
      XML FormatIn the XML format, this property is represented as an attribute.
      Summaryfalse
      Fixed Valuehttp://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.

      ShortPeriod với start = ngày khắc phục, end = start + tối thiểu 5 năm
      Control1..1
      TypePeriod
      [x] NoteSeeChoice of Data Typesfor further information about how to use [x]
      Is Modifierfalse
      Summaryfalse
      Invariantsele-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.

      ShortUnique id for inter-element referencing
      Control0..1
      Typestring
      Is Modifierfalse
      XML FormatIn the XML format, this property is represented as an attribute.
      Summaryfalse
      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.

      ShortAdditional 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.

      Control0..*
      TypeExtension
      Is Modifierfalse
      Summaryfalse
      Alternate Namesextensions, user content
      Invariantsele-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())
      SlicingThis element introduces a set of slices on Extension.value[x].extension. The slices areUnordered and Open, and can be differentiated using the following discriminators:
      • value @ url
      • 14. Extension.value[x].start
        Definition

        The start of the period. The boundary is inclusive.

        ShortNgà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.

        Control1..1
        This element is affected by the following invariants: per-1
        TypedateTime
        Is Modifierfalse
        Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
        Summarytrue
        Invariantsele-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.

        ShortNgà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.

        Control0..1
        This element is affected by the following invariants: per-1
        TypedateTime
        Is Modifierfalse
        Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
        Summarytrue
        Meaning if MissingIf the end of the period is missing, it means that the period is ongoing
        Invariantsele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()))