pub struct CapabilityStatementRestResourceSearchParamBuilder { /* private fields */ }
Expand description
Builder for CapabilityStatementRestResourceSearchParam
.
Implementations§
Source§impl CapabilityStatementRestResourceSearchParamBuilder
impl CapabilityStatementRestResourceSearchParamBuilder
Sourcepub fn id(
self,
value: String,
) -> CapabilityStatementRestResourceSearchParamBuilder
pub fn id( self, value: String, ) -> CapabilityStatementRestResourceSearchParamBuilder
Unique id for inter-element referencing
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Sourcepub fn extension(
self,
value: Vec<Extension>,
) -> CapabilityStatementRestResourceSearchParamBuilder
pub fn extension( self, value: Vec<Extension>, ) -> CapabilityStatementRestResourceSearchParamBuilder
Additional content defined by implementations
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 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>,
) -> CapabilityStatementRestResourceSearchParamBuilder
pub fn modifier_extension( self, value: Vec<Extension>, ) -> CapabilityStatementRestResourceSearchParamBuilder
Extensions that cannot be ignored even if unrecognized
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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 name(
self,
value: String,
) -> CapabilityStatementRestResourceSearchParamBuilder
pub fn name( self, value: String, ) -> CapabilityStatementRestResourceSearchParamBuilder
Name for parameter in search url
The label used for the search parameter in this particular system’s API - i.e. the ‘name’ portion of the name-value pair that will appear as part of the search URL. This SHOULD be the same as the SearchParameter.code of the defining SearchParameter. However, it can sometimes differ if necessary to disambiguate when a server supports multiple SearchParameters that happen to share the same code.
Parameter names cannot overlap with standard parameter names, and standard parameters cannot be redefined. There is no correspondence whatsoever between CapabilityStatement’s searchParam.name and SearchParameter.name - the latter is used as a class name when generating code for the search parameter.
Sourcepub fn name_ext(
self,
value: FieldExtension,
) -> CapabilityStatementRestResourceSearchParamBuilder
pub fn name_ext( self, value: FieldExtension, ) -> CapabilityStatementRestResourceSearchParamBuilder
Extension field.
Sourcepub fn definition(
self,
value: String,
) -> CapabilityStatementRestResourceSearchParamBuilder
pub fn definition( self, value: String, ) -> CapabilityStatementRestResourceSearchParamBuilder
Source of definition for parameter
An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to SearchParameter.url). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs.
This SHOULD be present, and matches refers to a SearchParameter by its canonical URL. If systems wish to document their support for modifiers, comparators, target resource types, and chained parameters, they should do using a search parameter resource. This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs.
Sourcepub fn definition_ext(
self,
value: FieldExtension,
) -> CapabilityStatementRestResourceSearchParamBuilder
pub fn definition_ext( self, value: FieldExtension, ) -> CapabilityStatementRestResourceSearchParamBuilder
Extension field.
Sourcepub fn type(
self,
value: SearchParamType,
) -> CapabilityStatementRestResourceSearchParamBuilder
pub fn type( self, value: SearchParamType, ) -> CapabilityStatementRestResourceSearchParamBuilder
SearchParamType; number | date | string | token | reference | composite | quantity | uri | special
The type of value a search parameter refers to, and how the content is interpreted.
While this can be looked up from the definition, it is included here as a convenience for systems that autogenerate a query interface based on the server capability statement. It SHALL be the same as the type in the search parameter definition.
Sourcepub fn type_ext(
self,
value: FieldExtension,
) -> CapabilityStatementRestResourceSearchParamBuilder
pub fn type_ext( self, value: FieldExtension, ) -> CapabilityStatementRestResourceSearchParamBuilder
Extension field.
Sourcepub fn documentation(
self,
value: String,
) -> CapabilityStatementRestResourceSearchParamBuilder
pub fn documentation( self, value: String, ) -> CapabilityStatementRestResourceSearchParamBuilder
Server-specific usage
This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms.
Sourcepub fn documentation_ext(
self,
value: FieldExtension,
) -> CapabilityStatementRestResourceSearchParamBuilder
pub fn documentation_ext( self, value: FieldExtension, ) -> CapabilityStatementRestResourceSearchParamBuilder
Extension field.
Sourcepub fn build(
self,
) -> Result<CapabilityStatementRestResourceSearchParam, BuilderError>
pub fn build( self, ) -> Result<CapabilityStatementRestResourceSearchParam, BuilderError>
Builds a new CapabilityStatementRestResourceSearchParam
.
§Errors
If a required field has not been initialized.