Skip to main content
Requirement ID
AFF-PR-011
Category
Conformance Resources
Obligation
Recommended
Requirement
Where FHIR resources are stored as individual files, the file name SHOULD follow the format:

[resource-type]-[name]-[version].[file-extension]

Where:

  • [resource-type] is the FHIR resource type.
  • [name] is the value of the resource's name element.
  • [version] is the value of the resource's version element.
  • [file-extension] is:
    • json for JSON-formatted files; or
    • xml for XML-formatted files.
Rationale
Consistent file naming conventions improve discoverability, maintainability, version management, and collaboration across teams. A predictable naming pattern also simplifies navigation, automation, packaging, and source control activities.
Informative Note
The file naming convention used by published resources may vary depending on the authoring tooling, build process, or IG Publisher configuration.

Some tooling may not currently support this convention and may generate alternative file names. Where this occurs, teams should assess whether adherence to this convention is practical and beneficial for the specification.


Example
The following file name values demonstrate alignment with this policy requirement:
  • ValueSet-MHR_Date_Initial_Registration-26.1.0.json 
  • StructureDefinition-HCPD_Organisation-26.1.0.xml

On this page