public static final class PID.Builder extends Object
PID.Builder
Build class used to construct and validate a PID object.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PID |
build()
Build PID and validate necessary fields.
|
PID.Builder |
dateTimeOfBirth(Date value)
Set patient date/time of birth.
|
PID.Builder |
patientAddress(XAD value)
Set patient address.
|
PID.Builder |
patientIdentifiers(List<CX> values)
Set patient identifiers.
|
PID.Builder |
patientName(XPN value)
Set patient name.
|
PID.Builder |
sex(Sex value)
Set patient sex.
|
public PID.Builder patientIdentifiers(List<CX> values)
values - List of patient identifiers (not null).PID.Builderpublic PID.Builder patientName(XPN value)
value - Patient name (not null).PID.Builderpublic PID.Builder dateTimeOfBirth(Date value)
value - Patient date/time of birth (not null).PID.Builderpublic PID.Builder patientAddress(XAD value)
value - Patient address (not null).PID.Builderpublic PID.Builder sex(Sex value)
value - Patient sex (not null).PID.Builderpublic PID build() throws MDMValidationException
PIDMDMValidationException - Thrown when validation of the PID contents fails.Copyright © 2021. All rights reserved.