Skip to main content
Requirement ID
AFF-PR-086
Category
FHIRPath & Constraints
Obligation
Mandatory
Requirement
The identifier of a constraint SHALL follow the format:
  • const-[sequence-number]-[element-name (optional)]-[short-name]

Where:

  • [sequence-number] is the constraint sequence number within the resource, starting at 1.
  • [element-name] is the name of the relevant FHIR element, where applicable.
  • [short-name] is a short abbreviation or acronym describing the constraint's purpose or context.
  • A single underscore (_) character is the separator that must be present between components of the value. The separator must not be present at the beginning and the end of the overall value.
Rationale
Using a consistent identifier format for constraints improves readability, maintainability, and traceability across Agency FHIR Specifications. Meaningful constraint identifiers help implementers understand validation rules, interpret error messages, and locate related documentation more efficiently.
Informative Note
Where multiple constraints apply to the same element, the sequence number helps distinguish them while maintaining a consistent naming structure.
Example
The following constraint identifier example values demonstrate correct alignment with this policy requirement: 
  • const-1-gender-RSG_required 
  • const-2-qualification-registration_required

On this page