Package ca.cdr.api.pub.hl7v2.out
Class OutboundMappingInstructions.Builder
java.lang.Object
ca.cdr.api.pub.hl7v2.out.OutboundMappingInstructions.Builder
- Enclosing class:
- OutboundMappingInstructions
Factory class for
OutboundMappingInstructions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionWhen resolving FHIR resources to use as source data for generating HL7 v2.x messages, this method can be used to specify that a specific version of a given resource should be used.addSourceDataResourceVersionsFromMessageHeaderFocus
(IBaseResource theMessageHeader) Examine a MessageHeader resource to extract the list of resources found inMessageHeader.focus
, and for any versioned references apply them toaddSourceDataResourceVersion(IIdType)
.build()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addSourceDataResourceVersion
When resolving FHIR resources to use as source data for generating HL7 v2.x messages, this method can be used to specify that a specific version of a given resource should be used. This can be used to achieve point-in-time architecture with your messages.- Parameters:
theId
- The complete ID, must include the resource type, resource ID, and version.- Returns:
- Returns a reference to the builder for easy method chaining
-
build
-
addSourceDataResourceVersionsFromMessageHeaderFocus
public OutboundMappingInstructions.Builder addSourceDataResourceVersionsFromMessageHeaderFocus(@Nonnull IBaseResource theMessageHeader) Examine a MessageHeader resource to extract the list of resources found inMessageHeader.focus
, and for any versioned references apply them toaddSourceDataResourceVersion(IIdType)
.- Parameters:
theMessageHeader
- The MessageHeader to extract from
-