public class PrescriptionItemBuilder extends Object
Use the various methods to add data to the prescription item then call build() to get your
PrescriptionItemImpl.
build() will throw illegalArgumentException if any mandatory data is
missing.
| Constructor and Description |
|---|
PrescriptionItemBuilder()
Builds valid Prescription Items.
|
| Modifier and Type | Method and Description |
|---|---|
PrescriptionItemBuilder |
additionalComments(String additionalComments)
Add Additional Comments
may be chained with other calls |
PrescriptionItemBuilder |
addStructuredTime(SetComponentTime time)
Add a Structured Time
may be chained with other calls |
PrescriptionItemBuilder |
approachSiteCode(SNOMED_AU_Code snomed)
Add an approach site
may be chained with other calls |
PrescriptionItemBuilder |
brandSubstituteAllowed(Boolean isSubstitute)
Add an indicator for if the script allows brand Substitution
may be chained with other calls |
PrescriptionItem |
build()
Build a Prescription Item
Mandatory items are:
Prescription expiry time
Prescription written time therapeuticGoodIdentification pbs/rpbs item code prescriptionItemIdentifier brandSubstituteAllowed maximumNumberOfRepeats medicalBenefitCategoryType instructions for use (diretions) Pbs type close the gap id groundsForConcurrentSupply |
PrescriptionItem |
buildPCEHRPrescriptionItem()
Build a Prescription Item suitable for a prescription request
Mandatory items are:
Prescription expiry time
Prescription written time therapeuticGoodIdentification pbs/rpbs item code prescriptionItemIdentifier brandSubstituteAllowed maximumNumberOfRepeats medicalBenefitCategoryType instructions for use (diretions) Pbs type close the gap id |
PrescriptionItem |
buildPrescriptionRequestItem()
Build a Prescription Item suitable for a prescription request
Mandatory items are:
Prescription expiry time
Prescription written time therapeuticGoodIdentification pbs/rpbs item code prescriptionItemIdentifier brandSubstituteAllowed maximumNumberOfRepeats medicalBenefitCategoryType instructions for use (diretions) Pbs type close the gap id |
PrescriptionItemBuilder |
closeTheGap(UniqueIdentifier id)
Add a close the gap benifit id
may be chained with other calls |
PrescriptionItemBuilder |
dateTimeExpires(org.joda.time.DateTime expires)
Add a prescription expiry timestamp
may be chained with other calls |
PrescriptionItemBuilder |
dateTimeWritten(org.joda.time.DateTime written)
Add a creation timestamp
may be chained with other calls |
PrescriptionItemBuilder |
directions(String directionsForUse)
Add a Directions
may be chained with other calls |
PrescriptionItemBuilder |
dispenseQuantity(QuantityUnitDescription dispenseQuantity)
Add a DispenseQuantity.
|
PrescriptionItemBuilder |
dispensItemIdentifier(UniqueIdentifier id)
Add a Dispense item identifier
may be chained with other calls |
PrescriptionItemBuilder |
dosage(Dosage dosage)
Add a Dosage.
|
PrescriptionItemBuilder |
extemporaneousIngredient(Ingredient ingr)
Add an Ingrediten
may be called multiple times may be chained with other calls |
PrescriptionItemBuilder |
formula(String formula)
Add a formula
may be chained with other calls |
PrescriptionItemBuilder |
groundsForConcurrentSupply(GroundsForConcurrentSupply grounds)
Add a Medical Benefit Category Type
may be chained with other calls |
PrescriptionItemBuilder |
longTerm(Boolean isLongTerm)
Add an indicator describing if this item is for long term usage
may be chained with other calls |
PrescriptionItemBuilder |
maximumNumberOfRepeats(Integer repeats)
Add maximum Number Of Repeats
may be chained with other calls |
PrescriptionItemBuilder |
medicalBenefitCategoryType(MedicalBenefitCategoryType type)
Add a Medical Benefit Category Type
may be chained with other calls |
PrescriptionItemBuilder |
medicationInstruction(UniqueIdentifier id)
Add an medication instruction identifier
may be chained with other calls |
PrescriptionItemBuilder |
methodCode(SNOMED_AU_Code snomed)
Add a Method Code
may be chained with other calls |
PrescriptionItemBuilder |
minimumIntervalBetweenRepeats(SimplifiedPeriodicIntervalTime period)
Add a Minimum Interval Between Repeats
may be chained with other calls |
PrescriptionItemBuilder |
minimumIntervalBetweenRepeats(TimeQuantity timeInterval)
Add a Minimum Interval Between Repeats
may be chained with other calls |
PrescriptionItemBuilder |
pbsAuthorityApprovalNumber(UniqueIdentifier id)
THis Element Should NOT be populated if: (i) 1 the Medical Benefit Category type is PBS; and 2
the item is not listed as Authority Required, 'Authority Required (Streamlined)', or an
application to increase the maximum quantity and/or repeats has not been approved; or(ii) the
Medical Benefit Category type is neither PBS nor RPBS.
|
PrescriptionItemBuilder |
pbsAuthorityPrescriptionNumber(UniqueIdentifier id) |
PrescriptionItemBuilder |
pbsRPBSItemCode(Coded code)
Add PBSRPBSItemCode
may be chained with other calls |
PrescriptionItemBuilder |
pbsRpbsManufacturerCode(UniqueIdentifier id)
Add a PBS/RPBS Manufacturer Code
may be chained with other calls |
PrescriptionItemBuilder |
pbsType(PBSPrescriptionTypeCode type)
Add a PBS Type
may be chained with other calls |
PrescriptionItemBuilder |
prescriptionItemIdentifier(PrescriptionItemIdentifier id)
Add Prescription Item Identifier
may be chained with other calls |
PrescriptionItemBuilder |
prn(Boolean prn)
Add a prn
may be chained with other calls |
PrescriptionItemBuilder |
reasonForTherapeuticGood(String reasonForTherapeuticGood)
Add a Reason For Therapeutic Good
may be chained with other calls |
PrescriptionItemBuilder |
routeCode(SNOMED_AU_Code snomed)
Add a Route Code
may be chained with other calls |
PrescriptionItemBuilder |
setTimingDescription(String string)
Add a timming description
may be chained with other calls |
PrescriptionItemBuilder |
startCriterion(PreciseDate date)
Add a Start criterion date
may be chained with other calls |
PrescriptionItemBuilder |
stateAuthorityNumber(UniqueIdentifier stateAuthorityNumber)
Add a State Authority Number
may be chained with other calls |
PrescriptionItemBuilder |
stopCriterion(PreciseDate date)
Add a Stop criterion date
may be chained with other calls |
PrescriptionItemBuilder |
streamlinedAuthorityApprovalNumber(UniqueIdentifier id)
Add a Streamlined Authority Approval Number
may be chained with other calls |
public PrescriptionItemBuilder()
public PrescriptionItemBuilder dateTimeWritten(org.joda.time.DateTime written)
public PrescriptionItemBuilder dateTimeExpires(org.joda.time.DateTime expires)
public PrescriptionItemBuilder formula(String formula)
public PrescriptionItemBuilder dosage(Dosage dosage)
public PrescriptionItemBuilder dispenseQuantity(QuantityUnitDescription dispenseQuantity)
public PrescriptionItemBuilder dispensItemIdentifier(UniqueIdentifier id)
public PrescriptionItemBuilder minimumIntervalBetweenRepeats(TimeQuantity timeInterval)
public PrescriptionItemBuilder minimumIntervalBetweenRepeats(SimplifiedPeriodicIntervalTime period)
public PrescriptionItemBuilder stateAuthorityNumber(UniqueIdentifier stateAuthorityNumber)
public PrescriptionItemBuilder reasonForTherapeuticGood(String reasonForTherapeuticGood)
public PrescriptionItemBuilder additionalComments(String additionalComments)
public PrescriptionItemBuilder pbsRPBSItemCode(Coded code)
public PrescriptionItemBuilder prescriptionItemIdentifier(PrescriptionItemIdentifier id)
public PrescriptionItemBuilder brandSubstituteAllowed(Boolean isSubstitute)
public PrescriptionItemBuilder maximumNumberOfRepeats(Integer repeats)
public PrescriptionItemBuilder medicalBenefitCategoryType(MedicalBenefitCategoryType type)
public PrescriptionItemBuilder groundsForConcurrentSupply(GroundsForConcurrentSupply grounds)
public PrescriptionItemBuilder directions(String directionsForUse)
public PrescriptionItemBuilder pbsType(PBSPrescriptionTypeCode type)
public PrescriptionItemBuilder closeTheGap(UniqueIdentifier id)
Indicates that a subsidy under the PBS Closing the Gap Co-payment measure applies to this item.
id - An extension and root detailing the CTG benefit identifierspublic PrescriptionItemBuilder pbsAuthorityPrescriptionNumber(UniqueIdentifier id)
public PrescriptionItemBuilder pbsAuthorityApprovalNumber(UniqueIdentifier id)
id - thePbs Authority Approval Number as a root+extensionpublic PrescriptionItemBuilder prn(Boolean prn)
prn - - An indicator that states the timing of the use or administration of the medicine,
vaccine or other therapeutic good is dependent, within limits, on the conditions or symptoms of
the subject of care.public PrescriptionItemBuilder longTerm(Boolean isLongTerm)
public PrescriptionItemBuilder medicationInstruction(UniqueIdentifier id)
public PrescriptionItemBuilder streamlinedAuthorityApprovalNumber(UniqueIdentifier id)
public PrescriptionItemBuilder addStructuredTime(SetComponentTime time)
public PrescriptionItemBuilder pbsRpbsManufacturerCode(UniqueIdentifier id)
public PrescriptionItemBuilder startCriterion(PreciseDate date)
public PrescriptionItemBuilder stopCriterion(PreciseDate date)
public PrescriptionItemBuilder setTimingDescription(String string)
public PrescriptionItemBuilder approachSiteCode(SNOMED_AU_Code snomed)
public PrescriptionItemBuilder routeCode(SNOMED_AU_Code snomed)
public PrescriptionItemBuilder methodCode(SNOMED_AU_Code snomed)
public PrescriptionItemBuilder extemporaneousIngredient(Ingredient ingr)
public PrescriptionItem build() throws IllegalArgumentException
Items not allowed for a prescription request:
GroundsForConcurrentSupply
ReasonForTherapeuticGood
MinimumIntervalBetweenRepeats
IllegalArgumentException - if a mandatory data item has not been set.public PrescriptionItem buildPrescriptionRequestItem() throws IllegalArgumentException
Items not allowed for a prescription request:
GroundsForConcurrentSupply
ReasonForTherapeuticGood
MinimumIntervalBetweenRepeats
IllegalArgumentException - - if a mandatory data item has not been set. - if a supplied
field is not allowed, eg: ReasonForTheraputicGoodpublic PrescriptionItem buildPCEHRPrescriptionItem() throws IllegalArgumentException
Items not allowed for a prescription request:
GroundsForConcurrentSupply
ReasonForTherapeuticGood
MinimumIntervalBetweenRepeats
IllegalArgumentException - - if a mandatory data item has not been set. - if a supplied
field is not allowed, eg: ReasonForTheraputicGoodCopyright © 2020. All rights reserved.