Physical Activity Implementation Guide
1.0.0-ballot - STU1 ballot-draft United States of America flag

This page is part of the U.S. Physical Activity IG (v1.0.0-ballot: STU 1.0 Ballot 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions

Data Type Profile: Reference - RESTful or Logical

Official URL: http://hl7.org/fhir/us/physical-activity/StructureDefinition/reference-rest-or-logical Version: 1.0.0-ballot
Active as of 2023-03-28 Computable Name: ReferenceRestOrLogical

A Reference data type where the referenced resource could be resolvable RESTfully or pointed to logically.

Usage:

Formal Views of Profile Content

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

This structure is derived from Reference

NameFlagsCard.TypeDescription & Constraintsdoco
.. Reference C0..*ReferenceA reference from one resource to another
PA-ident-1: reference or identifier must be present
PA-ident-2: If reference is not present, display must be present
... reference SC0..1stringLiteral reference, Relative, internal or absolute URL
... identifier SC0..1IdentifierLogical reference, when literal reference is not known
.... system 0..1uriThe namespace for the identifier value
Required Pattern: http://hl7.org/fhir/sid/us-npi
.... value S1..1stringThe value that is unique
... display SC0..1stringText alternative for the resource

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
PA-ident-1errorReferencereference or identifier must be present
: reference.exists() or identifier.exists()
PA-ident-2errorReferenceIf reference is not present, display must be present
: reference.exists().not() implies display.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. Reference C0..*ReferenceA reference from one resource to another
PA-ident-1: reference or identifier must be present
PA-ident-2: If reference is not present, display must be present
... reference SΣC0..1stringLiteral reference, Relative, internal or absolute URL
... identifier SΣC0..1IdentifierLogical reference, when literal reference is not known
.... use ?!Σ0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... system Σ0..1uriThe namespace for the identifier value
Required Pattern: http://hl7.org/fhir/sid/us-npi
.... value SΣ1..1stringThe value that is unique
Example General: 123456
... display SΣC0..1stringText alternative for the resource

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Reference.identifier.userequiredIdentifierUse

Constraints

IdGradePath(s)DetailsRequirements
PA-ident-1errorReferencereference or identifier must be present
: reference.exists() or identifier.exists()
PA-ident-2errorReferenceIf reference is not present, display must be present
: reference.exists().not() implies display.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ref-1errorReferenceSHALL 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'))
NameFlagsCard.TypeDescription & Constraintsdoco
.. Reference C0..*ReferenceA reference from one resource to another
PA-ident-1: reference or identifier must be present
PA-ident-2: If reference is not present, display must be present
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... reference SΣC0..1stringLiteral reference, Relative, internal or absolute URL
... identifier SΣC0..1IdentifierLogical reference, when literal reference is not known
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... use ?!Σ0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... type Σ0..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

.... system Σ0..1uriThe namespace for the identifier value
Required Pattern: http://hl7.org/fhir/sid/us-npi
.... value SΣ1..1stringThe value that is unique
Example General: 123456
.... period Σ0..1PeriodTime period when id is/was valid for use
.... assigner Σ0..1Reference(Organization)Organization that issued id (may be just text)
... display SΣC0..1stringText alternative for the resource

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Reference.typeextensibleResourceType
Reference.identifier.userequiredIdentifierUse
Reference.identifier.typeextensibleIdentifier Type Codes

Constraints

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

This structure is derived from Reference

Summary

Mandatory: 0 element (1 nested mandatory element)
Must-Support: 4 elements

Differential View

This structure is derived from Reference

NameFlagsCard.TypeDescription & Constraintsdoco
.. Reference C0..*ReferenceA reference from one resource to another
PA-ident-1: reference or identifier must be present
PA-ident-2: If reference is not present, display must be present
... reference SC0..1stringLiteral reference, Relative, internal or absolute URL
... identifier SC0..1IdentifierLogical reference, when literal reference is not known
.... system 0..1uriThe namespace for the identifier value
Required Pattern: http://hl7.org/fhir/sid/us-npi
.... value S1..1stringThe value that is unique
... display SC0..1stringText alternative for the resource

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
PA-ident-1errorReferencereference or identifier must be present
: reference.exists() or identifier.exists()
PA-ident-2errorReferenceIf reference is not present, display must be present
: reference.exists().not() implies display.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Reference C0..*ReferenceA reference from one resource to another
PA-ident-1: reference or identifier must be present
PA-ident-2: If reference is not present, display must be present
... reference SΣC0..1stringLiteral reference, Relative, internal or absolute URL
... identifier SΣC0..1IdentifierLogical reference, when literal reference is not known
.... use ?!Σ0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... system Σ0..1uriThe namespace for the identifier value
Required Pattern: http://hl7.org/fhir/sid/us-npi
.... value SΣ1..1stringThe value that is unique
Example General: 123456
... display SΣC0..1stringText alternative for the resource

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Reference.identifier.userequiredIdentifierUse

Constraints

IdGradePath(s)DetailsRequirements
PA-ident-1errorReferencereference or identifier must be present
: reference.exists() or identifier.exists()
PA-ident-2errorReferenceIf reference is not present, display must be present
: reference.exists().not() implies display.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ref-1errorReferenceSHALL 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

NameFlagsCard.TypeDescription & Constraintsdoco
.. Reference C0..*ReferenceA reference from one resource to another
PA-ident-1: reference or identifier must be present
PA-ident-2: If reference is not present, display must be present
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... reference SΣC0..1stringLiteral reference, Relative, internal or absolute URL
... identifier SΣC0..1IdentifierLogical reference, when literal reference is not known
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... use ?!Σ0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... type Σ0..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

.... system Σ0..1uriThe namespace for the identifier value
Required Pattern: http://hl7.org/fhir/sid/us-npi
.... value SΣ1..1stringThe value that is unique
Example General: 123456
.... period Σ0..1PeriodTime period when id is/was valid for use
.... assigner Σ0..1Reference(Organization)Organization that issued id (may be just text)
... display SΣC0..1stringText alternative for the resource

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Reference.typeextensibleResourceType
Reference.identifier.userequiredIdentifierUse
Reference.identifier.typeextensibleIdentifier Type Codes

Constraints

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

This structure is derived from Reference

Summary

Mandatory: 0 element (1 nested mandatory element)
Must-Support: 4 elements

 

Other representations of profile: CSV, Excel, Schematron