pub struct EndpointBuilder { /* private fields */ }Expand description
Builder for EndpointInner.
Implementations§
Source§impl EndpointBuilder
impl EndpointBuilder
Sourcepub fn id(self, value: String) -> EndpointBuilder
pub fn id(self, value: String) -> EndpointBuilder
Logical id of this artifact
The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.
Sourcepub fn meta(self, value: Meta) -> EndpointBuilder
pub fn meta(self, value: Meta) -> EndpointBuilder
Metadata about the resource
The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
Sourcepub fn implicit_rules(self, value: String) -> EndpointBuilder
pub fn implicit_rules(self, value: String) -> EndpointBuilder
A set of rules under which this content was created
A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc.
Sourcepub fn language(self, value: String) -> EndpointBuilder
pub fn language(self, value: String) -> EndpointBuilder
Language; Language of the resource content
The base language in which the resource is written.
Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
Sourcepub fn text(self, value: Narrative) -> EndpointBuilder
pub fn text(self, value: Narrative) -> EndpointBuilder
Text summary of the resource, for human interpretation
A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it “clinically safe” for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a “text blob” or where text is additionally entered raw or narrated and encoded information is added later.
Sourcepub fn contained(self, value: Vec<Resource>) -> EndpointBuilder
pub fn contained(self, value: Vec<Resource>) -> EndpointBuilder
Contained, inline Resources
These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.
This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels.
Sourcepub fn extension(self, value: Vec<Extension>) -> EndpointBuilder
pub fn extension(self, value: Vec<Extension>) -> EndpointBuilder
Additional content defined by implementations
May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, 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.
There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
Sourcepub fn modifier_extension(self, value: Vec<Extension>) -> EndpointBuilder
pub fn modifier_extension(self, value: Vec<Extension>) -> EndpointBuilder
Extensions that cannot be ignored
May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element’s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
Sourcepub fn identifier(self, value: Vec<Option<Identifier>>) -> EndpointBuilder
pub fn identifier(self, value: Vec<Option<Identifier>>) -> EndpointBuilder
Identifies this endpoint across multiple systems
Identifier for the organization that is used to identify the endpoint across multiple disparate systems.
Sourcepub fn identifier_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> EndpointBuilder
pub fn identifier_ext( self, value: Vec<Option<FieldExtension>>, ) -> EndpointBuilder
Extension field.
Sourcepub fn status(self, value: EndpointStatus) -> EndpointBuilder
pub fn status(self, value: EndpointStatus) -> EndpointBuilder
EndpointStatus; active | suspended | error | off | entered-in-error | test
The endpoint status represents the general expected availability of an endpoint.
This element is labeled as a modifier because the status contains codes that mark the endpoint as not currently valid. Temporary downtimes or other unexpected short-term changes in availability would not be represented in this property.
Sourcepub fn status_ext(self, value: FieldExtension) -> EndpointBuilder
pub fn status_ext(self, value: FieldExtension) -> EndpointBuilder
Extension field.
Sourcepub fn connection_type(
self,
value: Vec<Option<CodeableConcept>>,
) -> EndpointBuilder
pub fn connection_type( self, value: Vec<Option<CodeableConcept>>, ) -> EndpointBuilder
endpoint-contype; Protocol/Profile/Standard to be used with this endpoint connection
A coded value that represents the technical details of the usage of this endpoint, such as what WSDLs should be used in what way. (e.g. XDS.b/DICOM/cds-hook).
For additional connectivity details for the protocol, extensions will be used at this point, as in the XDS example. If there are multiple payload types or mimetypes they are all applicable for all connection types, and all have the same status.
Sourcepub fn connection_type_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> EndpointBuilder
pub fn connection_type_ext( self, value: Vec<Option<FieldExtension>>, ) -> EndpointBuilder
Extension field.
Sourcepub fn name(self, value: String) -> EndpointBuilder
pub fn name(self, value: String) -> EndpointBuilder
A name that this endpoint can be identified by
A friendly name that this endpoint can be referred to with.
Sourcepub fn name_ext(self, value: FieldExtension) -> EndpointBuilder
pub fn name_ext(self, value: FieldExtension) -> EndpointBuilder
Extension field.
Sourcepub fn description(self, value: String) -> EndpointBuilder
pub fn description(self, value: String) -> EndpointBuilder
Additional details about the endpoint that could be displayed as further information to identify the description beyond its name
The description of the endpoint and what it is for (typically used as supplemental information in an endpoint directory describing its usage/purpose).
Sourcepub fn description_ext(self, value: FieldExtension) -> EndpointBuilder
pub fn description_ext(self, value: FieldExtension) -> EndpointBuilder
Extension field.
Sourcepub fn environment_type(
self,
value: Vec<Option<CodeableConcept>>,
) -> EndpointBuilder
pub fn environment_type( self, value: Vec<Option<CodeableConcept>>, ) -> EndpointBuilder
endpoint-environment-type; The type of environment(s) exposed at this endpoint
The type of environment(s) exposed at this endpoint (dev, prod, test, etc.).
Sourcepub fn environment_type_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> EndpointBuilder
pub fn environment_type_ext( self, value: Vec<Option<FieldExtension>>, ) -> EndpointBuilder
Extension field.
Sourcepub fn managing_organization(self, value: Reference) -> EndpointBuilder
pub fn managing_organization(self, value: Reference) -> EndpointBuilder
Organization that manages this endpoint (might not be the organization that exposes the endpoint)
The organization that manages this endpoint (even if technically another organization is hosting this in the cloud, it is the organization associated with the data).
This property is not typically used when searching for Endpoint resources for usage. The typical usage is via the reference from an applicable Organization/Location/Practitioner resource, which is where the context is provided. Multiple Locations may reference a single endpoint, and don’t have to be within the same organization resource, but most likely within the same organizational hierarchy.
Sourcepub fn managing_organization_ext(self, value: FieldExtension) -> EndpointBuilder
pub fn managing_organization_ext(self, value: FieldExtension) -> EndpointBuilder
Extension field.
Sourcepub fn contact(self, value: Vec<Option<ContactPoint>>) -> EndpointBuilder
pub fn contact(self, value: Vec<Option<ContactPoint>>) -> EndpointBuilder
Contact details for source (e.g. troubleshooting)
Contact details for a human to contact about the endpoint. The primary use of this for system administrator troubleshooting.
Sourcepub fn contact_ext(self, value: Vec<Option<FieldExtension>>) -> EndpointBuilder
pub fn contact_ext(self, value: Vec<Option<FieldExtension>>) -> EndpointBuilder
Extension field.
Sourcepub fn period(self, value: Period) -> EndpointBuilder
pub fn period(self, value: Period) -> EndpointBuilder
Interval the endpoint is expected to be operational
The interval during which the endpoint is expected to be operational.
Temporary downtimes or other short-term changes in availability would not be represented in this property.
Sourcepub fn period_ext(self, value: FieldExtension) -> EndpointBuilder
pub fn period_ext(self, value: FieldExtension) -> EndpointBuilder
Extension field.
Sourcepub fn payload(self, value: Vec<Option<EndpointPayload>>) -> EndpointBuilder
pub fn payload(self, value: Vec<Option<EndpointPayload>>) -> EndpointBuilder
Set of payloads that are provided by this endpoint
The set of payloads that are provided/available at this endpoint.
Note that not all mimetypes or types will be listed under the one endpoint resource, there may be multiple instances that information for cases where other header data such as the endpoint address, active status/period etc. is different.
Sourcepub fn payload_ext(self, value: Vec<Option<FieldExtension>>) -> EndpointBuilder
pub fn payload_ext(self, value: Vec<Option<FieldExtension>>) -> EndpointBuilder
Extension field.
Sourcepub fn address(self, value: String) -> EndpointBuilder
pub fn address(self, value: String) -> EndpointBuilder
The technical base address for connecting to this endpoint
The uri that describes the actual end-point to connect to.
For rest-hook, and websocket, the end-point must be an http: or https: URL; for email, a mailto: url, for sms, a tel: url, and for message the endpoint can be in any form of url the server understands (usually, http: or mllp:). The URI is allowed to be relative; in which case, it is relative to the server end-point (since there may be more than one, clients should avoid using relative URIs)
This address will be to the service base, without any parameters, or sub-services or resources tacked on.
E.g. for a WADO-RS endpoint, the url should be “https://pacs.hospital.org/wado-rs”
and not “https://pacs.hospital.org/wado-rs/studies/1.2.250.1.59.40211.12345678.678910/series/1.2.250.1.59.40211.789001276.14556172.67789/instances/…”.
Sourcepub fn address_ext(self, value: FieldExtension) -> EndpointBuilder
pub fn address_ext(self, value: FieldExtension) -> EndpointBuilder
Extension field.
Sourcepub fn header(self, value: Vec<Option<String>>) -> EndpointBuilder
pub fn header(self, value: Vec<Option<String>>) -> EndpointBuilder
Usage depends on the channel type
Additional headers / information to send as part of the notification.
Exactly what these mean depends on the channel type. The can convey additional information to the recipient and/or meet security requirements.
Sourcepub fn header_ext(self, value: Vec<Option<FieldExtension>>) -> EndpointBuilder
pub fn header_ext(self, value: Vec<Option<FieldExtension>>) -> EndpointBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<EndpointInner, BuilderError>
pub fn build_inner(self) -> Result<EndpointInner, BuilderError>
Source§impl EndpointBuilder
impl EndpointBuilder
Sourcepub fn build(self) -> Result<Endpoint, BuilderError>
pub fn build(self) -> Result<Endpoint, BuilderError>
Finalize building Endpoint.