This page is part of the U.S. Physical Activity IG (v1.0.0: STU 1.0) based on FHIR R4. This is the current published version.  For a full list of available versions, see the Directory of published versions 
| Official URL: http://hl7.org/fhir/us/physical-activity/StructureDefinition/reference-rest | Version: 1.0.0 | |||
| Standards status: Trial-use | Maturity Level: 2 | Computable Name: ReferenceRest | ||
A Reference data type where the referenced resource is expected to be resolvable RESTfully.
Usage:
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from Reference
| Name | Flags | Card. | Type | Description & Constraints  | 
|---|---|---|---|---|
|   Reference | C | 0..* | Reference | A reference from one resource to another | 
|    reference | SΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL | 
|    display | SΣ | 0..1 | string | Text alternative for the resource | 
|  Documentation for this format | ||||
| Id | Grade | Path(s) | Details | Requirements | 
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
| ref-1 | error | Reference | SHALL 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')) | 
| Name | Flags | Card. | Type | Description & Constraints  | 
|---|---|---|---|---|
|   Reference | C | 0..* | Reference | A reference from one resource to another | 
|    id | 0..1 | string | Unique id for inter-element referencing | |
|    extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
|    reference | SΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL | 
|    type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | 
|    identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | 
|    display | SΣ | 0..1 | string | Text alternative for the resource | 
|  Documentation for this format | ||||
| Path | Conformance | ValueSet | 
| Reference.type | extensible | ResourceType | 
| Id | Grade | Path(s) | Details | Requirements | 
| 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() | |
| ref-1 | error | Reference | SHALL 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')) | 
Differential View
This structure is derived from Reference
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints  | 
|---|---|---|---|---|
|   Reference | C | 0..* | Reference | A reference from one resource to another | 
|    reference | SΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL | 
|    display | SΣ | 0..1 | string | Text alternative for the resource | 
|  Documentation for this format | ||||
| Id | Grade | Path(s) | Details | Requirements | 
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
| ref-1 | error | Reference | SHALL 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
| Name | Flags | Card. | Type | Description & Constraints  | 
|---|---|---|---|---|
|   Reference | C | 0..* | Reference | A reference from one resource to another | 
|    id | 0..1 | string | Unique id for inter-element referencing | |
|    extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
|    reference | SΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL | 
|    type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). | 
|    identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | 
|    display | SΣ | 0..1 | string | Text alternative for the resource | 
|  Documentation for this format | ||||
| Path | Conformance | ValueSet | 
| Reference.type | extensible | ResourceType | 
| Id | Grade | Path(s) | Details | Requirements | 
| 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() | |
| ref-1 | error | Reference | SHALL 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')) | 
Other representations of profile: CSV, Excel, Schematron