Reference class
Reference A reference from one resource to another.
- Annotations
-
- @freezed
Constructors
-
Reference({@JsonKey(name: 'id') String? fhirId, @JsonKey(name: 'extension') List<
FhirExtension> ? extension_, String? reference, @JsonKey(name: '_reference') Element? referenceElement, FhirUri? type, @JsonKey(name: '_type') Element? typeElement, Identifier? identifier, String? display, @JsonKey(name: '_display') Element? displayElement}) -
Reference A reference from one resource to another.
constfactory
-
Reference.fromJson(Map<
String, dynamic> json) -
Factory constructor, accepts Map<String, dynamic> as an argument
factory
- Reference.fromJsonString(String source)
-
Acts like a constructor, returns a Reference, accepts a
String as an argument, mostly because I got tired of typing it out
factory
- Reference.fromYaml(dynamic yaml)
-
Factory constructor that accepts a String in YAML format as an argument
factory
Properties
-
copyWith
→ $ReferenceCopyWith<
Reference> -
no setterinherited
- display → String?
-
display
Plain text narrative that identifies the resource in addition to the resource reference.no setterinherited - displayElement → Element?
-
displayElement
Extensions for displayno setterinherited -
extension_
→ List<
FhirExtension> ? -
extension_
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.no setterinherited - fhirId → String?
-
id Unique id for the element within a resource (for internal
references). This may be any string value that does not contain spaces.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → Identifier?
-
identifier
An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.no setterinherited - reference → String?
-
reference
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.no setterinherited - referenceElement → Element?
-
referenceElement
Extensions for referenceno setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → FhirUri?
-
type
The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).no setterinherited - typeElement → Element?
-
typeElement
Extensions for typeno setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toJsonString(
) → String - Another convenience method because more and more I'm transmitting FHIR data as a String and not a Map
-
toString(
) → String -
A string representation of this object.
inherited
-
toYaml(
) → String - Produces a Yaml formatted String version of the object
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited