Guia de Implementação do AnHealth
0.2.0 - CI Build

Guia de Implementação do AnHealth - Local Development build (v0.2.0). See the Directory of published versions

Resource Profile: InventoryEvent

Official URL: https://ancode.app/fhir/StructureDefinition/InventoryEvent Version: 0.2.0
Draft as of 2023-01-23 Computable Name: InventoryEvent

Usage:

  • This Resource 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.

NameFlagsCard.TypeDescription & Constraintsdoco
.. InventoryEvent 0..*DomainResourceInventoryEvent
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... balance 1..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... final 1..1decimal
.... previous 1..1decimal
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... number 1..1string
.... validity 1..1dateTime
... event 0..1Reference(Resource)
... identifier 1..*Identifier
... inventory 1..1Reference(Inventory)
... item 1..1Reference(Medication | DeviceDefinition)
... location 0..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 0..1Reference(Location)
.... origin 0..1Reference(Location)
... observation 0..*string
... package 0..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 0..1Reference(PackagedProductDefinition)
.... origin 0..1Reference(PackagedProductDefinition)
... quantity 1..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 1..1decimal
.... factor 1..1decimal
.... origin 1..1decimal
... reason 1..1CodeableConceptBinding: InventoryEventReason (required)
... type 1..1CodeableConceptBinding: InventoryEventType (required)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
InventoryEvent.reasonrequiredInventoryEventReason
InventoryEvent.typerequiredInventoryEventType

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorInventoryEventIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorInventoryEventIf 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.exists() and ('#'+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(uri) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorInventoryEventIf 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-5errorInventoryEventIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceInventoryEventA 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** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. InventoryEvent 0..*DomainResourceInventoryEvent
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred): IETF language tag

Additional BindingsPurpose
AllLanguagesMax Binding
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... balance 1..1BackboneElement
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... final 1..1decimal
.... previous 1..1decimal
... batch 0..1BackboneElement
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... number 1..1string
.... validity 1..1dateTime
... event 0..1Reference(Resource)
... identifier 1..*Identifier
... inventory 1..1Reference(Inventory)
... item 1..1Reference(Medication | DeviceDefinition)
... location 0..1BackboneElement
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 0..1Reference(Location)
.... origin 0..1Reference(Location)
... observation 0..*string
... package 0..1BackboneElement
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 0..1Reference(PackagedProductDefinition)
.... origin 0..1Reference(PackagedProductDefinition)
... quantity 1..1BackboneElement
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 1..1decimal
.... factor 1..1decimal
.... origin 1..1decimal
... reason 1..1CodeableConceptBinding: InventoryEventReason (required)
... type 1..1CodeableConceptBinding: InventoryEventType (required)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
InventoryEvent.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
InventoryEvent.reasonrequiredInventoryEventReason
InventoryEvent.typerequiredInventoryEventType

Constraints

IdGradePath(s)DetailsRequirements
dom-r4bwarningInventoryEvent.containedContaining new R4B resources within R4 resources may cause interoperability issues if instances are shared with R4 systems
: ($this is Citation or $this is Evidence or $this is EvidenceReport or $this is EvidenceVariable or $this is MedicinalProductDefinition or $this is PackagedProductDefinition or $this is AdministrableProductDefinition or $this is Ingredient or $this is ClinicalUseDefinition or $this is RegulatedAuthorization or $this is SubstanceDefinition or $this is SubscriptionStatus or $this is SubscriptionTopic) implies (%resource is Citation or %resource is Evidence or %resource is EvidenceReport or %resource is EvidenceVariable or %resource is MedicinalProductDefinition or %resource is PackagedProductDefinition or %resource is AdministrableProductDefinition or %resource is Ingredient or %resource is ClinicalUseDefinition or %resource is RegulatedAuthorization or %resource is SubstanceDefinition or %resource is SubscriptionStatus or %resource is SubscriptionTopic)
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. InventoryEvent 0..*DomainResourceInventoryEvent
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... balance 1..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... final 1..1decimal
.... previous 1..1decimal
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... number 1..1string
.... validity 1..1dateTime
... event 0..1Reference(Resource)
... identifier 1..*Identifier
... inventory 1..1Reference(Inventory)
... item 1..1Reference(Medication | DeviceDefinition)
... location 0..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 0..1Reference(Location)
.... origin 0..1Reference(Location)
... observation 0..*string
... package 0..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 0..1Reference(PackagedProductDefinition)
.... origin 0..1Reference(PackagedProductDefinition)
... quantity 1..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 1..1decimal
.... factor 1..1decimal
.... origin 1..1decimal
... reason 1..1CodeableConceptBinding: InventoryEventReason (required)
... type 1..1CodeableConceptBinding: InventoryEventType (required)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
InventoryEvent.reasonrequiredInventoryEventReason
InventoryEvent.typerequiredInventoryEventType

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorInventoryEventIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorInventoryEventIf 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.exists() and ('#'+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(uri) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorInventoryEventIf 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-5errorInventoryEventIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceInventoryEventA 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** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. InventoryEvent 0..*DomainResourceInventoryEvent
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred): IETF language tag

Additional BindingsPurpose
AllLanguagesMax Binding
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... balance 1..1BackboneElement
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... final 1..1decimal
.... previous 1..1decimal
... batch 0..1BackboneElement
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... number 1..1string
.... validity 1..1dateTime
... event 0..1Reference(Resource)
... identifier 1..*Identifier
... inventory 1..1Reference(Inventory)
... item 1..1Reference(Medication | DeviceDefinition)
... location 0..1BackboneElement
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 0..1Reference(Location)
.... origin 0..1Reference(Location)
... observation 0..*string
... package 0..1BackboneElement
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 0..1Reference(PackagedProductDefinition)
.... origin 0..1Reference(PackagedProductDefinition)
... quantity 1..1BackboneElement
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... destination 1..1decimal
.... factor 1..1decimal
.... origin 1..1decimal
... reason 1..1CodeableConceptBinding: InventoryEventReason (required)
... type 1..1CodeableConceptBinding: InventoryEventType (required)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
InventoryEvent.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
InventoryEvent.reasonrequiredInventoryEventReason
InventoryEvent.typerequiredInventoryEventType

Constraints

IdGradePath(s)DetailsRequirements
dom-r4bwarningInventoryEvent.containedContaining new R4B resources within R4 resources may cause interoperability issues if instances are shared with R4 systems
: ($this is Citation or $this is Evidence or $this is EvidenceReport or $this is EvidenceVariable or $this is MedicinalProductDefinition or $this is PackagedProductDefinition or $this is AdministrableProductDefinition or $this is Ingredient or $this is ClinicalUseDefinition or $this is RegulatedAuthorization or $this is SubstanceDefinition or $this is SubscriptionStatus or $this is SubscriptionTopic) implies (%resource is Citation or %resource is Evidence or %resource is EvidenceReport or %resource is EvidenceVariable or %resource is MedicinalProductDefinition or %resource is PackagedProductDefinition or %resource is AdministrableProductDefinition or %resource is Ingredient or %resource is ClinicalUseDefinition or %resource is RegulatedAuthorization or %resource is SubstanceDefinition or %resource is SubscriptionStatus or %resource is SubscriptionTopic)
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

 

Other representations of profile: CSV, Excel, Schematron