This page is part of the FHIR Specification (v4.2.0: R5 Preview #1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions
http://www.hl7.org/Special/committees/fiwg/index.cfm | Maturity Level: N | Normative (from v4.2.0) | Compartments: Not linked to any defined compartments |
This page has been approved as part of an ANSI standard. See the Infrastructure Package for further details. |
The CanonicalResource represents resources that have a canonical URL:
As an interface, this type is never created directly - see Resource Interfaces for more details.
This interface extends the base DomainResource. The following resources implement this interface:
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
CanonicalResource | «A»N | DomainResource | Common Ancestor declaration for definitional resources + Warning: Name should be usable as an identifier for the module by machine processing applications such as code generation Elements defined in Ancestors: id, meta, implicitRules, language, text, contained, extension, modifierExtension | |
url | Σ | 0..1 | uri | Canonical identifier for this {{title}}, represented as a URI (globally unique) |
identifier | Σ | 0..* | Identifier | Additional identifier for the {{title}} |
version | Σ | 0..1 | string | Business version of the {{title}} |
name | ΣI | 0..1 | string | Name for this {{title}} (computer friendly) |
title | Σ | 0..1 | string | Name for this {{title}} (human friendly) |
status | ?!Σ | 1..1 | code | draft | active | retired | unknown PublicationStatus (Required) |
experimental | Σ | 0..1 | boolean | For testing purposes, not real usage |
date | Σ | 0..1 | dateTime | Date last changed |
publisher | Σ | 0..1 | string | Name of the publisher (organization or individual) |
contact | Σ | 0..* | ContactDetail | Contact details for the publisher |
description | 0..1 | markdown | Natural language description of the {{title}} | |
useContext | Σ | 0..* | UsageContext | The context that the content is intended to support |
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for {{title}} (if applicable) Jurisdiction (Extensible) |
purpose | 0..1 | markdown | Why this {{title}} is defined | |
copyright | 0..1 | markdown | Use and/or publishing restrictions | |
Documentation for this format |
UML Diagram (Legend)
XML Template
<[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <url value="[uri]"/><!-- 0..1 Canonical identifier for this {{title}}, represented as a URI (globally unique) --> <identifier><!-- 0..* Identifier Additional identifier for the {{title}} --></identifier> <version value="[string]"/><!-- 0..1 Business version of the {{title}} --> <name value="[string]"/><!-- 0..1 Name for this {{title}} (computer friendly) --> <title value="[string]"/><!-- 0..1 Name for this {{title}} (human friendly) --> <status value="[code]"/><!-- 1..1 draft | active | retired | unknown --> <experimental value="[boolean]"/><!-- 0..1 For testing purposes, not real usage --> <date value="[dateTime]"/><!-- 0..1 Date last changed --> <publisher value="[string]"/><!-- 0..1 Name of the publisher (organization or individual) --> <contact><!-- 0..* ContactDetail Contact details for the publisher --></contact> <description value="[markdown]"/><!-- 0..1 Natural language description of the {{title}} --> <useContext><!-- 0..* UsageContext The context that the content is intended to support --></useContext> <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for {{title}} (if applicable) --></jurisdiction> <purpose value="[markdown]"/><!-- 0..1 Why this {{title}} is defined --> <copyright value="[markdown]"/><!-- 0..1 Use and/or publishing restrictions --> </[name]>
JSON Template
{ "resourceType" : "[name]", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "url" : "<uri>", // Canonical identifier for this {{title}}, represented as a URI (globally unique) "identifier" : [{ Identifier }], // Additional identifier for the {{title}} "version" : "<string>", // Business version of the {{title}} "name" : "<string>", // C? Name for this {{title}} (computer friendly) "title" : "<string>", // Name for this {{title}} (human friendly) "status" : "<code>", // R! draft | active | retired | unknown "experimental" : <boolean>, // For testing purposes, not real usage "date" : "<dateTime>", // Date last changed "publisher" : "<string>", // Name of the publisher (organization or individual) "contact" : [{ ContactDetail }], // Contact details for the publisher "description" : "<markdown>", // Natural language description of the {{title}} "useContext" : [{ UsageContext }], // The context that the content is intended to support "jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for {{title}} (if applicable) "purpose" : "<markdown>", // Why this {{title}} is defined "copyright" : "<markdown>" // Use and/or publishing restrictions }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ a fhir:[name]; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Element: Element.extension fhir:CanonicalResource.url [ uri ]; # 0..1 Canonical identifier for this {{title}}, represented as a URI (globally unique) fhir:CanonicalResource.identifier [ Identifier ], ... ; # 0..* Additional identifier for the {{title}} fhir:CanonicalResource.version [ string ]; # 0..1 Business version of the {{title}} fhir:CanonicalResource.name [ string ]; # 0..1 Name for this {{title}} (computer friendly) fhir:CanonicalResource.title [ string ]; # 0..1 Name for this {{title}} (human friendly) fhir:CanonicalResource.status [ code ]; # 1..1 draft | active | retired | unknown fhir:CanonicalResource.experimental [ boolean ]; # 0..1 For testing purposes, not real usage fhir:CanonicalResource.date [ dateTime ]; # 0..1 Date last changed fhir:CanonicalResource.publisher [ string ]; # 0..1 Name of the publisher (organization or individual) fhir:CanonicalResource.contact [ ContactDetail ], ... ; # 0..* Contact details for the publisher fhir:CanonicalResource.description [ markdown ]; # 0..1 Natural language description of the {{title}} fhir:CanonicalResource.useContext [ UsageContext ], ... ; # 0..* The context that the content is intended to support fhir:CanonicalResource.jurisdiction [ CodeableConcept ], ... ; # 0..* Intended jurisdiction for {{title}} (if applicable) fhir:CanonicalResource.purpose [ markdown ]; # 0..1 Why this {{title}} is defined fhir:CanonicalResource.copyright [ markdown ]; # 0..1 Use and/or publishing restrictions ]
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
CanonicalResource | «A»N | DomainResource | Common Ancestor declaration for definitional resources + Warning: Name should be usable as an identifier for the module by machine processing applications such as code generation Elements defined in Ancestors: id, meta, implicitRules, language, text, contained, extension, modifierExtension | |
url | Σ | 0..1 | uri | Canonical identifier for this {{title}}, represented as a URI (globally unique) |
identifier | Σ | 0..* | Identifier | Additional identifier for the {{title}} |
version | Σ | 0..1 | string | Business version of the {{title}} |
name | ΣI | 0..1 | string | Name for this {{title}} (computer friendly) |
title | Σ | 0..1 | string | Name for this {{title}} (human friendly) |
status | ?!Σ | 1..1 | code | draft | active | retired | unknown PublicationStatus (Required) |
experimental | Σ | 0..1 | boolean | For testing purposes, not real usage |
date | Σ | 0..1 | dateTime | Date last changed |
publisher | Σ | 0..1 | string | Name of the publisher (organization or individual) |
contact | Σ | 0..* | ContactDetail | Contact details for the publisher |
description | 0..1 | markdown | Natural language description of the {{title}} | |
useContext | Σ | 0..* | UsageContext | The context that the content is intended to support |
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for {{title}} (if applicable) Jurisdiction (Extensible) |
purpose | 0..1 | markdown | Why this {{title}} is defined | |
copyright | 0..1 | markdown | Use and/or publishing restrictions | |
Documentation for this format |
XML Template
<[name] xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <url value="[uri]"/><!-- 0..1 Canonical identifier for this {{title}}, represented as a URI (globally unique) --> <identifier><!-- 0..* Identifier Additional identifier for the {{title}} --></identifier> <version value="[string]"/><!-- 0..1 Business version of the {{title}} --> <name value="[string]"/><!-- 0..1 Name for this {{title}} (computer friendly) --> <title value="[string]"/><!-- 0..1 Name for this {{title}} (human friendly) --> <status value="[code]"/><!-- 1..1 draft | active | retired | unknown --> <experimental value="[boolean]"/><!-- 0..1 For testing purposes, not real usage --> <date value="[dateTime]"/><!-- 0..1 Date last changed --> <publisher value="[string]"/><!-- 0..1 Name of the publisher (organization or individual) --> <contact><!-- 0..* ContactDetail Contact details for the publisher --></contact> <description value="[markdown]"/><!-- 0..1 Natural language description of the {{title}} --> <useContext><!-- 0..* UsageContext The context that the content is intended to support --></useContext> <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for {{title}} (if applicable) --></jurisdiction> <purpose value="[markdown]"/><!-- 0..1 Why this {{title}} is defined --> <copyright value="[markdown]"/><!-- 0..1 Use and/or publishing restrictions --> </[name]>
JSON Template
{ "resourceType" : "[name]", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "url" : "<uri>", // Canonical identifier for this {{title}}, represented as a URI (globally unique) "identifier" : [{ Identifier }], // Additional identifier for the {{title}} "version" : "<string>", // Business version of the {{title}} "name" : "<string>", // C? Name for this {{title}} (computer friendly) "title" : "<string>", // Name for this {{title}} (human friendly) "status" : "<code>", // R! draft | active | retired | unknown "experimental" : <boolean>, // For testing purposes, not real usage "date" : "<dateTime>", // Date last changed "publisher" : "<string>", // Name of the publisher (organization or individual) "contact" : [{ ContactDetail }], // Contact details for the publisher "description" : "<markdown>", // Natural language description of the {{title}} "useContext" : [{ UsageContext }], // The context that the content is intended to support "jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for {{title}} (if applicable) "purpose" : "<markdown>", // Why this {{title}} is defined "copyright" : "<markdown>" // Use and/or publishing restrictions }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ a fhir:[name]; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Element: Element.extension fhir:CanonicalResource.url [ uri ]; # 0..1 Canonical identifier for this {{title}}, represented as a URI (globally unique) fhir:CanonicalResource.identifier [ Identifier ], ... ; # 0..* Additional identifier for the {{title}} fhir:CanonicalResource.version [ string ]; # 0..1 Business version of the {{title}} fhir:CanonicalResource.name [ string ]; # 0..1 Name for this {{title}} (computer friendly) fhir:CanonicalResource.title [ string ]; # 0..1 Name for this {{title}} (human friendly) fhir:CanonicalResource.status [ code ]; # 1..1 draft | active | retired | unknown fhir:CanonicalResource.experimental [ boolean ]; # 0..1 For testing purposes, not real usage fhir:CanonicalResource.date [ dateTime ]; # 0..1 Date last changed fhir:CanonicalResource.publisher [ string ]; # 0..1 Name of the publisher (organization or individual) fhir:CanonicalResource.contact [ ContactDetail ], ... ; # 0..* Contact details for the publisher fhir:CanonicalResource.description [ markdown ]; # 0..1 Natural language description of the {{title}} fhir:CanonicalResource.useContext [ UsageContext ], ... ; # 0..* The context that the content is intended to support fhir:CanonicalResource.jurisdiction [ CodeableConcept ], ... ; # 0..* Intended jurisdiction for {{title}} (if applicable) fhir:CanonicalResource.purpose [ markdown ]; # 0..1 Why this {{title}} is defined fhir:CanonicalResource.copyright [ markdown ]; # 0..1 Use and/or publishing restrictions ]
Path | Definition | Type | Reference |
---|---|---|---|
CanonicalResource.status | The lifecycle status of an artifact. | Required | PublicationStatus |
CanonicalResource.jurisdiction | Countries and regions within which this artifact is targeted for use. | Extensible | Jurisdiction ValueSet |
id | Level | Location | Description | Expression |
cnl-0 | Warning | (base) | Name should be usable as an identifier for the module by machine processing applications such as code generation | name.matches('[A-Z]([A-Za-z0-9_]){0,254}') |
Common search parameters defined by this resource. See Searching for more information about searching in REST, messaging, and services.
Name | Type | Description | Paths |
context | token | A use context assigned to the {{title}} | {{name}}.useContext.valueCodeableConcept |
context-quantity | quantity | A quantity- or range-valued use context assigned to the {{title}} | {{name}}.useContext.valueQuantity, {{name}}.useContext.valueRange |
context-type | token | A type of use context assigned to the {{title}} | {{name}}.useContext.code |
context-type-quantity | composite | A use context type and quantity- or range-based value assigned to the {{title}} | |
context-type-value | composite | A use context type and value assigned to the {{title}} | |
date | date | The {{title}} publication date | {{name}}.date |
description | string | The description of the {{title}} | {{name}}.description |
identifier | token | External identifier for the {{title}} | {{name}}.identifier |
jurisdiction | token | Intended jurisdiction for the {{title}} | {{name}}.jurisdiction |
name | string | Computationally friendly name of the {{title}} | {{name}}.name |
publisher | string | Name of the publisher of the {{title}} | {{name}}.publisher |
status | token | The current status of the {{title}} | {{name}}.status |
title | string | The human-friendly name of the {{title}} | {{name}}.title |
url | uri | The uri that identifies the {{title}} | {{name}}.url |
version | token | The business version of the {{title}} | {{name}}.version |