Generated Narrative: StructureDefinition new-obligation Name Flags Card. Type Description & Constraints Extension 0..* Extension New Obligation Extension #xD; extension 1..* Extension Extension #xD; Slices for extension Content/Rules for all slices #xD; extension:code S 1..1 Extension Composite code describing the nature of the obligation #xD; extension 0..0 Extension #xD; url 1..1 uri "code" #xD; value[x] 0..1 code Value of extension Binding: Proposed Obligation Codes VS (complete) (required) #xD; extension:elementId S 0..1 Extension When the obligation is on the profile itself, not a particular element, a list of elements to which it applies #xD; extension 0..0 Extension #xD; url 1..1 uri "elementId" #xD; value[x] 0..1 string Value of extension #xD; extension:actor S 0..1 Extension who is acting on behalf or for this obligation #xD; extension 0..0 Extension #xD; url 1..1 uri "actor" #xD; value[x] 0..1 canonical(ActorDefinition) Value of extension #xD; extension:documentation S 0..1 Extension an explanation of what is intended with this specific obligation instance - beyond the formal definition #xD; extension 0..0 Extension #xD; url 1..1 uri "documentation" #xD; value[x] 0..1 string Value of extension #xD; extension:valueCalculation S 0..1 Extension a specific formula how the value for the attached field can be created/calculated; this is esp. for FHIR narratives #xD; extension 0..0 Extension #xD; url 1..1 uri "valueCalculation" #xD; value[x] 0..1 string Value of extension #xD; extension:referenceElementId S 0..1 Extension references, eg. names, the element on which the value depends #xD; extension 0..0 Extension #xD; url 1..1 uri "referenceElementId" #xD; value[x] 0..1 string Value of extension #xD; extension:usage S 0..1 Extension how to use this obligation, eg. for specific debatable fields like gender etc. #xD; extension 0..0 Extension #xD; url 1..1 uri "usage" #xD; value[x] 0..1 UsageContext Value of extension #xD; extension:filter S 0..1 Extension When the obligation is on the profile itself, not a particular element, a list of elements to which it applies #xD; extension 0..0 Extension #xD; url 1..1 uri "filter" #xD; value[x] 0..1 string Value of extension #xD; extension:filterDocumentation S 0..1 Extension an explanation of what the filter should achieve #xD; extension 0..0 Extension #xD; url 1..1 uri "filterDocumentation" #xD; value[x] 0..1 string Value of extension #xD; extension:process S 0..* Extension process ... #xD; extension 0..0 Extension #xD; url 1..1 uri "process" #xD; value[x] 0..1 canonical(code) Value of extension #xD; url 1..1 uri "http://obligation.oemig.de/fhir/StructureDefinition/new-obligation" #xD; value[x] 0..0 Value of extension #xD; Documentation for this format
Modified Extension to handle the obligations as I would like to see it. Also allowing for my own codesystems - where necessary.
All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
Must have either extensions or value[x], not both
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Extensions are always sliced by (at least) url
Composite code describing the nature of the obligation
Source of the definition for the extension code - a logical name or a URL.
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.
Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).
When the obligation is on the profile itself, not a particular element, a list of elements to which it applies
Limits obligation to some repeats by FHIRPath
who is acting on behalf or for this obligation
an explanation of what is intended with this specific obligation instance - beyond the formal definition
a specific formula how the value for the attached field can be created/calculated; this is esp. for FHIR narratives
references, eg. names, the element on which the value depends
how to use this obligation, eg. for specific debatable fields like gender etc.
an explanation of what the filter should achieve