0.1.0 - draft

NyTimelosingIG - Local Development build (v0.1.0). See the Directory of published versions

Resource Profile: hn-basis-flag

Official URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-Flag Version: 0.1.0
Draft as of 2024-06-01 Computable Name: HnBasisFlag

Basisprofil for Flag used in ‘ny timeløsning.

Usage:

  • This Resource Profile is not used by any profiles in this Implementation Guide

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from Flag

NameFlagsCard.TypeDescription & Constraintsdoco
.. Flag 0..*FlagKey information to flag to healthcare providers
... status
.... statusPeriod 0..1Periodhn-basis-flagStatusPeriod
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod
..... value[x] 0..1PeriodPeriod for flag status
... category
.... coding C0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
... code 1..1CodeableConceptCoded or textual message to display to user
Binding: hn-appointment-flag-code-vs (extensible)
.... coding C0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Flag.codeextensibleHnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs)

Constraints

IdGradePath(s)DetailsRequirements
inv-4errorFlag.category.coding, Flag.code.codingIf code is used in a codable consept the system must be used
: code > '' implies (system > '' )
NameFlagsCard.TypeDescription & Constraintsdoco
.. Flag 0..*FlagKey information to flag to healthcare providers
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... modifierExtension ?!N0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... status ?!ΣN1..1codeactive | inactive | entered-in-error
Binding: FlagStatus (required): Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or was entered in error.

.... statusPeriod 0..1Periodhn-basis-flagStatusPeriod
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod
..... extension 0..0
..... url 1..1uri"http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod"
..... value[x] 0..1PeriodPeriod for flag status
.... coding ΣC0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
... subject ΣCN1..1Reference(Patient | Location | Group | Organization | Practitioner | PlanDefinition | Medication | Procedure)Who/What is flag about?

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Flag.statusrequiredFlagStatus
Flag.codeextensibleHnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs)

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorFlagIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorFlagIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorFlagIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorFlagIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceFlagA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
inv-4errorFlag.code.codingIf code is used in a codable consept the system must be used
: code > '' implies (system > '' )
ref-1errorFlag.subjectSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
NameFlagsCard.TypeDescription & Constraintsdoco
.. Flag 0..*FlagKey information to flag to healthcare providers
... id Σ0..1idLogical id of this artifact
... meta ΣN0..1MetaMetadata about the resource
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... text N0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... modifierExtension ?!N0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... identifier ΣN0..*IdentifierBusiness identifier
... status ?!ΣN1..1codeactive | inactive | entered-in-error
Binding: FlagStatus (required): Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or was entered in error.

.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... statusPeriod 0..1Periodhn-basis-flagStatusPeriod
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod"
..... value[x] 0..1PeriodPeriod for flag status
.... value 0..1codePrimitive value for code
Max Length: 1048576
... category ΣN0..*CodeableConceptClinical, administrative, etc.
Binding: FlagCategory (example): A general category for flags for filtering/display purposes.


.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding ΣC0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
.... text ΣN0..1stringPlain text representation of the concept
... code Σ1..1CodeableConceptCoded or textual message to display to user
Binding: hn-appointment-flag-code-vs (extensible)
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding ΣC0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
.... text ΣN0..1stringPlain text representation of the concept
... subject ΣCN1..1Reference(Patient | Location | Group | Organization | Practitioner | PlanDefinition | Medication | Procedure)Who/What is flag about?
... period ΣCN0..1PeriodTime period when flag is active
... encounter ΣCN0..1Reference(Encounter)Alert relevant during encounter
... author ΣCN0..1Reference(Device | Organization | Patient | Practitioner | PractitionerRole)Flag creator

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Flag.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Flag.statusrequiredFlagStatus
Flag.categoryexampleFlagCategory
Flag.codeextensibleHnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs)

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorFlagIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorFlagIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorFlagIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorFlagIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceFlagA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
inv-4errorFlag.category.coding, Flag.code.codingIf code is used in a codable consept the system must be used
: code > '' implies (system > '' )
per-1errorFlag.periodIf present, start SHALL have a lower value than end
: start.hasValue().not() or end.hasValue().not() or (start <= end)
ref-1errorFlag.subject, Flag.encounter, Flag.authorSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))

This structure is derived from Flag

Summary

Extensions

This structure refers to these extensions:

Differential View

This structure is derived from Flag

NameFlagsCard.TypeDescription & Constraintsdoco
.. Flag 0..*FlagKey information to flag to healthcare providers
... status
.... statusPeriod 0..1Periodhn-basis-flagStatusPeriod
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod
..... value[x] 0..1PeriodPeriod for flag status
... category
.... coding C0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
... code 1..1CodeableConceptCoded or textual message to display to user
Binding: hn-appointment-flag-code-vs (extensible)
.... coding C0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Flag.codeextensibleHnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs)

Constraints

IdGradePath(s)DetailsRequirements
inv-4errorFlag.category.coding, Flag.code.codingIf code is used in a codable consept the system must be used
: code > '' implies (system > '' )

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Flag 0..*FlagKey information to flag to healthcare providers
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... modifierExtension ?!N0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... status ?!ΣN1..1codeactive | inactive | entered-in-error
Binding: FlagStatus (required): Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or was entered in error.

.... statusPeriod 0..1Periodhn-basis-flagStatusPeriod
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod
..... extension 0..0
..... url 1..1uri"http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod"
..... value[x] 0..1PeriodPeriod for flag status
.... coding ΣC0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
... subject ΣCN1..1Reference(Patient | Location | Group | Organization | Practitioner | PlanDefinition | Medication | Procedure)Who/What is flag about?

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Flag.statusrequiredFlagStatus
Flag.codeextensibleHnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs)

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorFlagIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorFlagIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorFlagIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorFlagIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceFlagA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
inv-4errorFlag.code.codingIf code is used in a codable consept the system must be used
: code > '' implies (system > '' )
ref-1errorFlag.subjectSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Flag 0..*FlagKey information to flag to healthcare providers
... id Σ0..1idLogical id of this artifact
... meta ΣN0..1MetaMetadata about the resource
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... text N0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... modifierExtension ?!N0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... identifier ΣN0..*IdentifierBusiness identifier
... status ?!ΣN1..1codeactive | inactive | entered-in-error
Binding: FlagStatus (required): Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or was entered in error.

.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... statusPeriod 0..1Periodhn-basis-flagStatusPeriod
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..0
..... url 1..1uri"http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod"
..... value[x] 0..1PeriodPeriod for flag status
.... value 0..1codePrimitive value for code
Max Length: 1048576
... category ΣN0..*CodeableConceptClinical, administrative, etc.
Binding: FlagCategory (example): A general category for flags for filtering/display purposes.


.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding ΣC0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
.... text ΣN0..1stringPlain text representation of the concept
... code Σ1..1CodeableConceptCoded or textual message to display to user
Binding: hn-appointment-flag-code-vs (extensible)
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding ΣC0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
.... text ΣN0..1stringPlain text representation of the concept
... subject ΣCN1..1Reference(Patient | Location | Group | Organization | Practitioner | PlanDefinition | Medication | Procedure)Who/What is flag about?
... period ΣCN0..1PeriodTime period when flag is active
... encounter ΣCN0..1Reference(Encounter)Alert relevant during encounter
... author ΣCN0..1Reference(Device | Organization | Patient | Practitioner | PractitionerRole)Flag creator

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Flag.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Flag.statusrequiredFlagStatus
Flag.categoryexampleFlagCategory
Flag.codeextensibleHnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs)

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorFlagIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorFlagIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorFlagIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorFlagIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceFlagA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
inv-4errorFlag.category.coding, Flag.code.codingIf code is used in a codable consept the system must be used
: code > '' implies (system > '' )
per-1errorFlag.periodIf present, start SHALL have a lower value than end
: start.hasValue().not() or end.hasValue().not() or (start <= end)
ref-1errorFlag.subject, Flag.encounter, Flag.authorSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))

This structure is derived from Flag

Summary

Extensions

This structure refers to these extensions:

 

Other representations of profile: CSV, Excel, Schematron