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: Inventory

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

Usage:

  • Refer to this Resource:

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraintsdoco
.. Inventory 0..*DomainResourceInventory
... 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
... Item 1..1Reference(Medication | DeviceDefinition)
... batch 0..*BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... location 1..1Reference(Location)
.... number 0..1string
.... package 1..1Reference(PackagedProductDefinition)
.... quantity 1..1decimal
.... validity 0..1dateTime
... bodySite 0..1CodeableConceptBinding: BRViaAcesso (required)
... group 0..1Reference(Group)
... identifier 1..*Identifier
... package 0..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... inventory 1..1Reference(PackagedProductDefinition)
.... supply 1..1Reference(PackagedProductDefinition)
.... use 1..1Reference(PackagedProductDefinition)
... resupply 1..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... ideal 1..1decimal
.... maximum 1..1decimal
.... minimum 1..1decimal
... technicalSpecifications 0..*string
... total 1..1decimal

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Inventory.bodySiterequiredBRViaAcesso

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorInventoryIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorInventoryIf 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-4errorInventoryIf 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-5errorInventoryIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceInventoryA 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
.. Inventory 0..*DomainResourceInventory
... 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
... Item 1..1Reference(Medication | DeviceDefinition)
... active 1..1boolean
... batch 0..*BackboneElement
.... 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
.... location 1..1Reference(Location)
.... number 0..1string
.... package 1..1Reference(PackagedProductDefinition)
.... quantity 1..1decimal
.... validity 0..1dateTime
... bodySite 0..1CodeableConceptBinding: BRViaAcesso (required)
... group 0..1Reference(Group)
... identifier 1..*Identifier
... 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
.... inventory 1..1Reference(PackagedProductDefinition)
.... supply 1..1Reference(PackagedProductDefinition)
.... use 1..1Reference(PackagedProductDefinition)
... resupply 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
.... ideal 1..1decimal
.... maximum 1..1decimal
.... minimum 1..1decimal
... technicalSpecifications 0..*string
... total 1..1decimal

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Inventory.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Inventory.bodySiterequiredBRViaAcesso

Constraints

IdGradePath(s)DetailsRequirements
dom-r4bwarningInventory.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
.. Inventory 0..*DomainResourceInventory
... 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
... Item 1..1Reference(Medication | DeviceDefinition)
... batch 0..*BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... location 1..1Reference(Location)
.... number 0..1string
.... package 1..1Reference(PackagedProductDefinition)
.... quantity 1..1decimal
.... validity 0..1dateTime
... bodySite 0..1CodeableConceptBinding: BRViaAcesso (required)
... group 0..1Reference(Group)
... identifier 1..*Identifier
... package 0..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... inventory 1..1Reference(PackagedProductDefinition)
.... supply 1..1Reference(PackagedProductDefinition)
.... use 1..1Reference(PackagedProductDefinition)
... resupply 1..1BackboneElement
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... ideal 1..1decimal
.... maximum 1..1decimal
.... minimum 1..1decimal
... technicalSpecifications 0..*string
... total 1..1decimal

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Inventory.bodySiterequiredBRViaAcesso

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorInventoryIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorInventoryIf 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-4errorInventoryIf 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-5errorInventoryIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceInventoryA 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
.. Inventory 0..*DomainResourceInventory
... 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
... Item 1..1Reference(Medication | DeviceDefinition)
... active 1..1boolean
... batch 0..*BackboneElement
.... 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
.... location 1..1Reference(Location)
.... number 0..1string
.... package 1..1Reference(PackagedProductDefinition)
.... quantity 1..1decimal
.... validity 0..1dateTime
... bodySite 0..1CodeableConceptBinding: BRViaAcesso (required)
... group 0..1Reference(Group)
... identifier 1..*Identifier
... 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
.... inventory 1..1Reference(PackagedProductDefinition)
.... supply 1..1Reference(PackagedProductDefinition)
.... use 1..1Reference(PackagedProductDefinition)
... resupply 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
.... ideal 1..1decimal
.... maximum 1..1decimal
.... minimum 1..1decimal
... technicalSpecifications 0..*string
... total 1..1decimal

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Inventory.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Inventory.bodySiterequiredBRViaAcesso

Constraints

IdGradePath(s)DetailsRequirements
dom-r4bwarningInventory.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