Skip to content

Universal Extension

Canonicalhttps://fhir.apps.health/StructureDefinition/nexus-universal
Statusdraft · 1.33.0
BaseExtension (constraint)
ContextStructureDefinition (element)
SourceFSH · JSON

Declares that this profile describes every instance of its resource type, not only instances that declare it in meta.profile. A consumer may validate any instance of the type against a profile that carries this flag, whether or not the instance names it.

FSH

The authored source of truth: extensions/Universal.fsh (edit on GitHub). One FSH file may define several related artifacts.

// Universal.fsh
// The flag a profile carries when it describes EVERY instance of its resource type, not only the
// instances that declare it. Set through `* insert UniversalProfile` (rulesets.fsh).
//
// A positive flag, for the same reason as SmartExposed: silence means "only instances that declare
// me", which is the safe default for a new profile, and a type with two candidate profiles (Basic,
// Consent, Device) can say that neither is universal without either having to be.
//
// NOT INHERITED, AND THE COMPILE STEP ENFORCES IT. SUSHI copies every root extension of a parent
// profile into its child, and FSH has no rule that removes one, so a child of a universal profile
// would otherwise claim every instance of the type -- a second universal profile for it, and a wrong
// one. The IG's compile step drops the copied flag from any profile whose parent carries it, and
// the build's root-extension check refuses a compiled child that still has it.

Extension: NexusUniversal
Id: nexus-universal
Title: "Universal"
Description: """
Declares that this profile describes every instance of its resource type, not only instances that
declare it in `meta.profile`. A consumer may validate any instance of the type against a profile that
carries this flag, whether or not the instance names it.

**Absent means declared-only.** A profile without the flag applies to the instances that list it in
`meta.profile` and to no others: a List is not a template, and a ServiceRequest is not a referral,
unless it says so.

**At most one per resource type.** Two profiles that both claimed every instance of one type would
contradict each other wherever their rules differ, so a type carries the flag on one profile or on
none.

**Not inherited.** A profile derived from a universal profile narrows it, so it describes only the
instances that declare it, and does not carry the flag.
"""
* ^url = "https://fhir.apps.health/StructureDefinition/nexus-universal"
* ^status = #draft
* ^experimental = false
* ^publisher = "WELLSTAR Technologies Corp."
* ^context[0].type = #element
* ^context[0].expression = "StructureDefinition"
* . ^short = "This profile describes every instance of its resource type"
* value[x] 1..1
* value[x] only boolean
* valueBoolean = true