public class PCEHRPrescriptionItemBuilder extends Object
Use the various methods to add data to the prescription item then call
build() to get your NPDRPrescriptionItemImpl.
build() will throw illegalArgumentException if any mandatory data is missing.
| Constructor and Description |
|---|
PCEHRPrescriptionItemBuilder()
Builds valid Prescription Items.
|
| Modifier and Type | Method and Description |
|---|---|
PCEHRPrescriptionItemBuilder |
additionalComments(String additionalComments)
Add Additional Comments
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
addStructuredTime(SetComponentTime time)
Add a Structured Time
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
brandSubstituteAllowed(Boolean isSubstitute)
Add an indicator for if the script allows brand Substitution
May be chained with other calls |
PCEHRPrescriptionItem |
build()
Build a Prescription Item
|
PCEHRPrescriptionItemBuilder |
dateTimeExpires(ZonedDateTime expires)
Add a prescription expiry timestamp
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
dateTimeWritten(ZonedDateTime written)
Add a creation timestamp
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
directions(String directionsForUse)
Add a Directions
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
dispenseQuantity(QuantityUnitDescription dispenseQuantity)
Add a DispenseQuantity.
|
PCEHRPrescriptionItemBuilder |
dispensItemIdentifier(UniqueIdentifier id)
Add a Dispense item identifier
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
form(SNOMED_AU_Code form)
Add a form (The formulation or presentation of the overall substance.)
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
formula(String formula)
Add a formula
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
maximumNumberOfRepeats(Integer repeats)
Add maximum Number Of Repeats
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
medicalBenefitCategoryType(MedicalBenefitCategoryType type)
Add a Medical Benefit Category Type
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
minimumIntervalBetweenRepeats(SimplifiedPeriodicIntervalTime period)
Add a Minimum Interval Between Repeats
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
minimumIntervalBetweenRepeats(TimeQuantity timeInterval)
Add a Minimum Interval Between Repeats
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
pbsRPBSItemCode(Coded itemAsATranslatedCode)
Add PBSRPBSItemCode
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
pbsRpbsManufacturerCode(UniqueIdentifier id)
Add a PBS/RPBS Manufacturer Code
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
pbsType(PBSPrescriptionTypeCode type)
Add a PBS Type
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
prescriptionItemIdentifier(PrescriptionItemIdentifier id)
Add Prescription Item Identifier
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
quantityDescription(String qtyDesc) |
PCEHRPrescriptionItemBuilder |
reasonForTherapeuticGood(String reasonForTherapeuticGood)
Add a Reason For Therapeutic Good
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
routeCode(SNOMED_AU_Code snomed)
Add a Route Code
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
setTimingDescription(String string)
Add a timing description
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
therapeuticGoodGenericName(String genericName)
Add a Therapeutic Good Generic Name
May be chained with other calls |
PCEHRPrescriptionItemBuilder |
therapeuticGoodGenericStrength(String strength)
Add a Therapeutic Good Generic strength
This will be represented as an NCTIS data element May be chained with other calls |
public PCEHRPrescriptionItemBuilder()
public PCEHRPrescriptionItemBuilder form(SNOMED_AU_Code form)
public PCEHRPrescriptionItemBuilder therapeuticGoodGenericName(String genericName)
public PCEHRPrescriptionItemBuilder therapeuticGoodGenericStrength(String strength)
public PCEHRPrescriptionItemBuilder dateTimeWritten(ZonedDateTime written)
public PCEHRPrescriptionItemBuilder dateTimeExpires(ZonedDateTime expires)
public PCEHRPrescriptionItemBuilder formula(String formula)
public PCEHRPrescriptionItemBuilder quantityDescription(String qtyDesc)
public PCEHRPrescriptionItemBuilder dispenseQuantity(QuantityUnitDescription dispenseQuantity)
public PCEHRPrescriptionItemBuilder dispensItemIdentifier(UniqueIdentifier id)
public PCEHRPrescriptionItemBuilder minimumIntervalBetweenRepeats(TimeQuantity timeInterval)
public PCEHRPrescriptionItemBuilder minimumIntervalBetweenRepeats(SimplifiedPeriodicIntervalTime period)
public PCEHRPrescriptionItemBuilder reasonForTherapeuticGood(String reasonForTherapeuticGood)
public PCEHRPrescriptionItemBuilder additionalComments(String additionalComments)
public PCEHRPrescriptionItemBuilder pbsRPBSItemCode(Coded itemAsATranslatedCode)
public PCEHRPrescriptionItemBuilder prescriptionItemIdentifier(PrescriptionItemIdentifier id)
public PCEHRPrescriptionItemBuilder brandSubstituteAllowed(Boolean isSubstitute)
public PCEHRPrescriptionItemBuilder maximumNumberOfRepeats(Integer repeats)
public PCEHRPrescriptionItemBuilder medicalBenefitCategoryType(MedicalBenefitCategoryType type)
public PCEHRPrescriptionItemBuilder directions(String directionsForUse)
public PCEHRPrescriptionItemBuilder pbsType(PBSPrescriptionTypeCode type)
public PCEHRPrescriptionItemBuilder addStructuredTime(SetComponentTime time)
public PCEHRPrescriptionItemBuilder pbsRpbsManufacturerCode(UniqueIdentifier id)
public PCEHRPrescriptionItemBuilder setTimingDescription(String string)
public PCEHRPrescriptionItemBuilder routeCode(SNOMED_AU_Code snomed)
public PCEHRPrescriptionItem build() throws IllegalArgumentException
Mandatory items are:
Prescription expiry time
Prescription written time
therapeuticGoodIdentification pbs/rpbs item code
prescriptionItemIdentifier
brandSubstituteAllowed
maximumNumberOfRepeats
medicalBenefitCategoryType
instructions for use (directions)
Pbs type
close the gap id
groundsForConcurrentSupply
Items not allowed for a prescription request:
GroundsForConcurrentSupply
ReasonForTherapeuticGood
MinimumIntervalBetweenRepeats
IllegalArgumentException - if a mandatory data item has not been set.Copyright © 2021. All rights reserved.