au.gov.nehta.vendorlibrary.mdm.segments
Class PV1.Builder

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.mdm.segments.PV1.Builder
Enclosing class:
PV1

public static final class PV1.Builder
extends java.lang.Object

PV1.Builder Build class used to construct and validate an PV1 object.


Constructor Summary
PV1.Builder()
           
 
Method Summary
 PV1 build()
          Build PV1 and validate necessary fields.
 PV1.Builder consultingDoctor(XCN value)
          Set consulting doctor.
 PV1.Builder patientClass(PatientClass value)
          Set patient class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PV1.Builder

public PV1.Builder()
Method Detail

patientClass

public PV1.Builder patientClass(PatientClass value)
Set patient class.

Parameters:
value - Patient class (not null).
Returns:
PV1.Builder

consultingDoctor

public PV1.Builder consultingDoctor(XCN value)
Set consulting doctor.

Parameters:
value - Consulting doctor (not null).
Returns:
PV1.Builder

build

public PV1 build()
          throws MDMValidationException
Build PV1 and validate necessary fields.

Returns:
PV1
Throws:
MDMValidationException - Thrown when validation of the PV1 contents fails.