Skip to content

Required Fields Rules

Required fields rules ensure that essential fields are present in resource definitions.

Severity: Warning Fixable: No

Profiles should define constraints on required fields.

Example:

// ✓ Good
Profile: PatientProfile
* name 1..1 MS
* gender 1..1 MS
* birthDate 1..1 MS

Severity: Warning Fixable: No

ValueSets must have title and description.

Example:

// ✓ Good
ValueSet: AdministrativeGenderVS
Title: "Administrative Gender Value Set"
Description: "Codes for administrative gender"
* include codes from system http://hl7.org/fhir/administrative-gender
// ✗ Bad
ValueSet: AdministrativeGenderVS
* include codes from system http://hl7.org/fhir/administrative-gender

Severity: Warning Fixable: No

CodeSystems must have title, description, and content type.

Example:

// ✓ Good
CodeSystem: ContactPointUseCS
Title: "Contact Point Use"
Description: "Codes for contact point usage"
* ^content = #complete

Required fields ensure:

  • Complete resource definitions
  • Proper IG documentation
  • FHIR specification compliance