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
|
PrescriptionItem |
buildPCEHRPrescriptionItem()
Build a Prescription Item suitable for a prescription request
|
PrescriptionItem |
buildPrescriptionRequestItem()
Build a Prescription Item suitable for a prescription request
|
PrescriptionItemBuilder |
closeTheGap(UniqueIdentifier id)
Add a close the gap benefit id.
May be chained with other calls. |
PrescriptionItemBuilder |
dateTimeExpires(ZonedDateTime expires)
Add a prescription expiry timestamp.
May be chained with other calls. |
PrescriptionItemBuilder |
dateTimeWritten(ZonedDateTime 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.
May be chained with other calls. |
PrescriptionItemBuilder |
extemporaneousIngredient(Ingredient ingr)
Add an Ingredient.
May be called multiple times. |
PrescriptionItemBuilder |
formula(String formula)
Add a formula.
May be chained with other calls. |
PrescriptionItemBuilder |
groundsForConcurrentSupply(GroundsForConcurrentSupply grounds)
Add grounds for concurrent supply.
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 a 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)
Add a PBS Authority Prescription Number.
May be chained with other calls. |
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(ZonedDateTime written)
public PrescriptionItemBuilder dateTimeExpires(ZonedDateTime 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)
id - A unique identifier for the PBS Authority Prescription Number.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
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.public PrescriptionItem buildPrescriptionRequestItem() 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
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
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
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 © 2021. All rights reserved.