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
| Official URL: https://ancode.app/fhir/StructureDefinition/Library | Version: 0.2.0 | |||
| Draft as of 2023-08-28 | Computable Name: Library | |||
Usage:
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from Library
| Name | Flags | Card. | Type | Description & Constraints![]() |
|---|---|---|---|---|
![]() | C | 0..* | Library | Represents a library of quality improvement components cnl-0: Name should be usable as an identifier for the module by machine processing applications such as code generation |
![]() ![]() | 1..1 | CodeableConcept | E.g. Education, Treatment, Assessment, etc. Binding: DefinitionTopic (required) | |
Documentation for this format | ||||
| Path | Conformance | ValueSet |
| Library.topic | required | DefinitionTopic |
| Id | Grade | Path(s) | Details | Requirements |
| cnl-0 | error | Library | Name should be usable as an identifier for the module by machine processing applications such as code generation : |
| Name | Flags | Card. | Type | Description & Constraints![]() |
|---|---|---|---|---|
![]() | C | 0..* | Library | Represents a library of quality improvement components |
![]() ![]() | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() | ?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() | ?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. |
![]() ![]() | Σ | 1..1 | CodeableConcept | logic-library | model-definition | asset-collection | module-definition Binding: LibraryType (extensible): The type of knowledge asset this library contains. |
![]() ![]() | 1..1 | CodeableConcept | E.g. Education, Treatment, Assessment, etc. Binding: DefinitionTopic (required) | |
Documentation for this format | ||||
| Path | Conformance | ValueSet |
| Library.status | required | PublicationStatus |
| Library.type | extensible | LibraryType |
| Library.topic | required | DefinitionTopic |
| Id | Grade | Path(s) | Details | Requirements |
| cnl-0 | warning | Library | Name should be usable as an identifier for the module by machine processing applications such as code generation : name.exists() implies name.matches('[A-Z]([A-Za-z0-9_]){0,254}') | |
| dom-2 | error | Library | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
| dom-3 | error | Library | If 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-4 | error | Library | If 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-5 | error | Library | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
| dom-6 | best practice | Library | A resource should have narrative for robust management : text.`div`.exists() | |
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
| Name | Flags | Card. | Type | Description & Constraints![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() | C | 0..* | Library | Represents a library of quality improvement components | ||||
![]() ![]() | Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() | Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): IETF language tag
| |||||
![]() ![]() | 0..1 | Narrative | Text summary of the resource, for human interpretation | |||||
![]() ![]() | 0..* | Resource | Contained, inline Resources | |||||
![]() ![]() | 0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() | ?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() | Σ | 0..1 | uri | Canonical identifier for this library, represented as a URI (globally unique) | ||||
![]() ![]() | Σ | 0..* | Identifier | Additional identifier for the library | ||||
![]() ![]() | Σ | 0..1 | string | Business version of the library | ||||
![]() ![]() | ΣC | 0..1 | string | Name for this library (computer friendly) | ||||
![]() ![]() | Σ | 0..1 | string | Name for this library (human friendly) | ||||
![]() ![]() | 0..1 | string | Subordinate title of the library | |||||
![]() ![]() | ?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. | ||||
![]() ![]() | Σ | 0..1 | boolean | For testing purposes, not real usage | ||||
![]() ![]() | Σ | 1..1 | CodeableConcept | logic-library | model-definition | asset-collection | module-definition Binding: LibraryType (extensible): The type of knowledge asset this library contains. | ||||
![]() ![]() | 0..1 | Type of individual the library content is focused on Binding: SubjectType (extensible): The possible types of subjects for a library (E.g. Patient, Practitioner, Organization, Location, etc.). | ||||||
![]() ![]() ![]() | CodeableConcept | |||||||
![]() ![]() ![]() | Reference(Group) | |||||||
![]() ![]() | Σ | 0..1 | dateTime | Date last changed | ||||
![]() ![]() | Σ | 0..1 | string | Name of the publisher (organization or individual) | ||||
![]() ![]() | Σ | 0..* | ContactDetail | Contact details for the publisher | ||||
![]() ![]() | Σ | 0..1 | markdown | Natural language description of the library | ||||
![]() ![]() | Σ | 0..* | UsageContext | The context that the content is intended to support | ||||
![]() ![]() | Σ | 0..* | CodeableConcept | Intended jurisdiction for library (if applicable) Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use. | ||||
![]() ![]() | 0..1 | markdown | Why this library is defined | |||||
![]() ![]() | 0..1 | string | Describes the clinical usage of the library | |||||
![]() ![]() | 0..1 | markdown | Use and/or publishing restrictions | |||||
![]() ![]() | 0..1 | date | When the library was approved by publisher | |||||
![]() ![]() | 0..1 | date | When the library was last reviewed | |||||
![]() ![]() | Σ | 0..1 | Period | When the library is expected to be used | ||||
![]() ![]() | 1..1 | CodeableConcept | E.g. Education, Treatment, Assessment, etc. Binding: DefinitionTopic (required) | |||||
![]() ![]() | 0..* | ContactDetail | Who authored the content | |||||
![]() ![]() | 0..* | ContactDetail | Who edited the content | |||||
![]() ![]() | 0..* | ContactDetail | Who reviewed the content | |||||
![]() ![]() | 0..* | ContactDetail | Who endorsed the content | |||||
![]() ![]() | 0..* | RelatedArtifact | Additional documentation, citations, etc. | |||||
![]() ![]() | 0..* | ParameterDefinition | Parameters defined by the library | |||||
![]() ![]() | 0..* | DataRequirement | What data is referenced by this library | |||||
![]() ![]() | Σ | 0..* | Attachment | Contents of the library, either embedded or referenced | ||||
Documentation for this format | ||||||||
| Path | Conformance | ValueSet | ||||
| Library.language | preferred | CommonLanguages
| ||||
| Library.status | required | PublicationStatus | ||||
| Library.type | extensible | LibraryType | ||||
| Library.subject[x] | extensible | SubjectType | ||||
| Library.jurisdiction | extensible | Jurisdiction ValueSet | ||||
| Library.topic | required | DefinitionTopic |
| Id | Grade | Path(s) | Details | Requirements |
| dom-r4b | warning | Library.contained | Containing 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-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
This structure is derived from Library
Differential View
This structure is derived from Library
| Name | Flags | Card. | Type | Description & Constraints![]() |
|---|---|---|---|---|
![]() | C | 0..* | Library | Represents a library of quality improvement components cnl-0: Name should be usable as an identifier for the module by machine processing applications such as code generation |
![]() ![]() | 1..1 | CodeableConcept | E.g. Education, Treatment, Assessment, etc. Binding: DefinitionTopic (required) | |
Documentation for this format | ||||
| Path | Conformance | ValueSet |
| Library.topic | required | DefinitionTopic |
| Id | Grade | Path(s) | Details | Requirements |
| cnl-0 | error | Library | Name should be usable as an identifier for the module by machine processing applications such as code generation : |
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints![]() |
|---|---|---|---|---|
![]() | C | 0..* | Library | Represents a library of quality improvement components |
![]() ![]() | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() | ?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() | ?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. |
![]() ![]() | Σ | 1..1 | CodeableConcept | logic-library | model-definition | asset-collection | module-definition Binding: LibraryType (extensible): The type of knowledge asset this library contains. |
![]() ![]() | 1..1 | CodeableConcept | E.g. Education, Treatment, Assessment, etc. Binding: DefinitionTopic (required) | |
Documentation for this format | ||||
| Path | Conformance | ValueSet |
| Library.status | required | PublicationStatus |
| Library.type | extensible | LibraryType |
| Library.topic | required | DefinitionTopic |
| Id | Grade | Path(s) | Details | Requirements |
| cnl-0 | warning | Library | Name should be usable as an identifier for the module by machine processing applications such as code generation : name.exists() implies name.matches('[A-Z]([A-Za-z0-9_]){0,254}') | |
| dom-2 | error | Library | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
| dom-3 | error | Library | If 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-4 | error | Library | If 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-5 | error | Library | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
| dom-6 | best practice | Library | A resource should have narrative for robust management : text.`div`.exists() | |
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() | C | 0..* | Library | Represents a library of quality improvement components | ||||
![]() ![]() | Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() | Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): IETF language tag
| |||||
![]() ![]() | 0..1 | Narrative | Text summary of the resource, for human interpretation | |||||
![]() ![]() | 0..* | Resource | Contained, inline Resources | |||||
![]() ![]() | 0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() | ?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() | Σ | 0..1 | uri | Canonical identifier for this library, represented as a URI (globally unique) | ||||
![]() ![]() | Σ | 0..* | Identifier | Additional identifier for the library | ||||
![]() ![]() | Σ | 0..1 | string | Business version of the library | ||||
![]() ![]() | ΣC | 0..1 | string | Name for this library (computer friendly) | ||||
![]() ![]() | Σ | 0..1 | string | Name for this library (human friendly) | ||||
![]() ![]() | 0..1 | string | Subordinate title of the library | |||||
![]() ![]() | ?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. | ||||
![]() ![]() | Σ | 0..1 | boolean | For testing purposes, not real usage | ||||
![]() ![]() | Σ | 1..1 | CodeableConcept | logic-library | model-definition | asset-collection | module-definition Binding: LibraryType (extensible): The type of knowledge asset this library contains. | ||||
![]() ![]() | 0..1 | Type of individual the library content is focused on Binding: SubjectType (extensible): The possible types of subjects for a library (E.g. Patient, Practitioner, Organization, Location, etc.). | ||||||
![]() ![]() ![]() | CodeableConcept | |||||||
![]() ![]() ![]() | Reference(Group) | |||||||
![]() ![]() | Σ | 0..1 | dateTime | Date last changed | ||||
![]() ![]() | Σ | 0..1 | string | Name of the publisher (organization or individual) | ||||
![]() ![]() | Σ | 0..* | ContactDetail | Contact details for the publisher | ||||
![]() ![]() | Σ | 0..1 | markdown | Natural language description of the library | ||||
![]() ![]() | Σ | 0..* | UsageContext | The context that the content is intended to support | ||||
![]() ![]() | Σ | 0..* | CodeableConcept | Intended jurisdiction for library (if applicable) Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use. | ||||
![]() ![]() | 0..1 | markdown | Why this library is defined | |||||
![]() ![]() | 0..1 | string | Describes the clinical usage of the library | |||||
![]() ![]() | 0..1 | markdown | Use and/or publishing restrictions | |||||
![]() ![]() | 0..1 | date | When the library was approved by publisher | |||||
![]() ![]() | 0..1 | date | When the library was last reviewed | |||||
![]() ![]() | Σ | 0..1 | Period | When the library is expected to be used | ||||
![]() ![]() | 1..1 | CodeableConcept | E.g. Education, Treatment, Assessment, etc. Binding: DefinitionTopic (required) | |||||
![]() ![]() | 0..* | ContactDetail | Who authored the content | |||||
![]() ![]() | 0..* | ContactDetail | Who edited the content | |||||
![]() ![]() | 0..* | ContactDetail | Who reviewed the content | |||||
![]() ![]() | 0..* | ContactDetail | Who endorsed the content | |||||
![]() ![]() | 0..* | RelatedArtifact | Additional documentation, citations, etc. | |||||
![]() ![]() | 0..* | ParameterDefinition | Parameters defined by the library | |||||
![]() ![]() | 0..* | DataRequirement | What data is referenced by this library | |||||
![]() ![]() | Σ | 0..* | Attachment | Contents of the library, either embedded or referenced | ||||
Documentation for this format | ||||||||
| Path | Conformance | ValueSet | ||||
| Library.language | preferred | CommonLanguages
| ||||
| Library.status | required | PublicationStatus | ||||
| Library.type | extensible | LibraryType | ||||
| Library.subject[x] | extensible | SubjectType | ||||
| Library.jurisdiction | extensible | Jurisdiction ValueSet | ||||
| Library.topic | required | DefinitionTopic |
| Id | Grade | Path(s) | Details | Requirements |
| dom-r4b | warning | Library.contained | Containing 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-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
This structure is derived from Library
Other representations of profile: CSV, Excel, Schematron