public static final class MSH.Builder extends Object
MSH.Builder
Build class used to construct and validate an (@link MSH} object.| Constructor and Description |
|---|
Builder()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MSH |
build()
Build
MSH and validate necessary fields. |
MSH.Builder |
messageControlId(String value)
Set the message control ID.
|
MSH.Builder |
messageDateTime(Date value)
Set the date/time message.
|
MSH.Builder |
receivingApplication(HD value)
Set the receiving application.
|
MSH.Builder |
receivingFacility(HD value)
Set the receiving facility.
|
MSH.Builder |
sendingApplication(HD value)
Set the sending application.
|
MSH.Builder |
sendingFacility(HD value)
Set the sending facility.
|
public MSH.Builder messageDateTime(Date value)
value - Date/time message (not null).MSH.Builder.public MSH.Builder messageControlId(String value)
value - Message control ID (not null nor blank).MSH.Builder.public MSH.Builder sendingApplication(HD value)
value - Sending application (not null).MSH.Builder.public MSH.Builder sendingFacility(HD value)
value - Sending facility (not null).MSH.Builder.public MSH.Builder receivingApplication(HD value)
value - Receiving application (not null).MSH.Builder.public MSH.Builder receivingFacility(HD value)
value - Receiving facility (not null).MSH.Builder.public MSH build() throws MDMValidationException
MSH and validate necessary fields.MSHMDMValidationException - Thrown when validation of the MSH contents fails.Copyright © 2021. All rights reserved.