@natch-the-storage/heathershaw-platform-types 1.19.18 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/validators.d.ts +120 -5
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -317,6 +317,7 @@ export interface ChargeOrder {
|
|
|
317
317
|
customerIp?: string;
|
|
318
318
|
orderUpdate?: Omit<OrderUpdate, 'id' | 'directUserProfileId' | 'partnerPharmacyProfileId' | 'patientRecordId'>;
|
|
319
319
|
patientRecordUpdate?: Omit<PatientRecordUpdate, 'id'>;
|
|
320
|
+
isStaff?: boolean;
|
|
320
321
|
}
|
|
321
322
|
export interface PaperScriptReminder {
|
|
322
323
|
id: number;
|
|
@@ -662,6 +663,12 @@ export declare const CompoundDirectAnimalId: {
|
|
|
662
663
|
};
|
|
663
664
|
};
|
|
664
665
|
export declare const AnimalSpeciesKeys: [keyof typeof CompoundDirectAnimalId, ...(keyof typeof CompoundDirectAnimalId)[]];
|
|
666
|
+
export interface CDEPrescription {
|
|
667
|
+
type: string;
|
|
668
|
+
/** If true, indicates this is an eRx script, if false or undefined, assume it is a paper script */
|
|
669
|
+
isETP2?: boolean;
|
|
670
|
+
fileUrl?: string;
|
|
671
|
+
}
|
|
665
672
|
export interface CDScriptPriceOption {
|
|
666
673
|
id: number;
|
|
667
674
|
quantity: number;
|
|
@@ -722,10 +729,7 @@ export interface CDScript {
|
|
|
722
729
|
repeatsTotal: number;
|
|
723
730
|
repeatsLeft: number;
|
|
724
731
|
supplyNumber: number;
|
|
725
|
-
ePrescription?:
|
|
726
|
-
type: string;
|
|
727
|
-
isETP2?: boolean; /** If true, indicates this is an eRx script, if false or undefined, assume it is a paper script */
|
|
728
|
-
};
|
|
732
|
+
ePrescription?: CDEPrescription;
|
|
729
733
|
};
|
|
730
734
|
formulation: {
|
|
731
735
|
formulationId: number;
|
|
@@ -737,6 +741,117 @@ export interface CDScript {
|
|
|
737
741
|
};
|
|
738
742
|
itemCount: number;
|
|
739
743
|
}
|
|
744
|
+
export interface CDDispensedScript {
|
|
745
|
+
scriptId: number;
|
|
746
|
+
scriptNumber: number;
|
|
747
|
+
scriptBarcode: string;
|
|
748
|
+
scriptType: string;
|
|
749
|
+
name: string;
|
|
750
|
+
quantity: number;
|
|
751
|
+
itemCount: number;
|
|
752
|
+
isReorderable: boolean;
|
|
753
|
+
isArchived: boolean;
|
|
754
|
+
disableRiskAssessment: boolean;
|
|
755
|
+
comment?: string;
|
|
756
|
+
notes?: string;
|
|
757
|
+
draftScriptId?: number;
|
|
758
|
+
compound: Pick<CDFormulation, 'formulationId' | 'isCapsule' | 'unit' | 'dosageFormName'> & {
|
|
759
|
+
/** Expiry date of compounded product - ISO timestamp */
|
|
760
|
+
productExpiryDate: string;
|
|
761
|
+
expiryDays: number;
|
|
762
|
+
};
|
|
763
|
+
prescription: {
|
|
764
|
+
originalScriptNumber: string;
|
|
765
|
+
instructions: string;
|
|
766
|
+
/** yyyy-mm-dd ISO date */
|
|
767
|
+
datePrescribed?: string;
|
|
768
|
+
isExpired: boolean;
|
|
769
|
+
repeatsLeft: number;
|
|
770
|
+
repeatsTotal: number;
|
|
771
|
+
supplyNumber: number;
|
|
772
|
+
isRepeatDispensed: boolean;
|
|
773
|
+
/** Rx expiry date - yyyy-mm-dd ISO date */
|
|
774
|
+
expiryDate?: string;
|
|
775
|
+
customer?: CDCustomer;
|
|
776
|
+
additionalSupplyNumber: number;
|
|
777
|
+
comment?: '';
|
|
778
|
+
labelInstructions?: '';
|
|
779
|
+
ePrescription?: CDEPrescription;
|
|
780
|
+
};
|
|
781
|
+
/** Date a pharmacist has dispensed the script - ISO timestamp yyyy-mm-ddThh:mm:ss.000Z */
|
|
782
|
+
dateDispensed: string;
|
|
783
|
+
/** Date the script was generated - ISO timestamp yyyy-mm-ddThh:mm:ss.000Z */
|
|
784
|
+
createdDate: string;
|
|
785
|
+
/** ISO timestamp yyyy-mm-ddThh:mm:ss.000Z */
|
|
786
|
+
modifiedDate: string;
|
|
787
|
+
formulationProperties: CDScriptProperties[];
|
|
788
|
+
repeatChain: CDDispensedScriptRepeatChain[];
|
|
789
|
+
}
|
|
790
|
+
export interface CDDispensedScriptRepeatChain {
|
|
791
|
+
key: string;
|
|
792
|
+
repeatsLeft: number;
|
|
793
|
+
isDeleted: boolean;
|
|
794
|
+
isEmpty: boolean;
|
|
795
|
+
/** Supply number of the item. */
|
|
796
|
+
supplyNumber?: number;
|
|
797
|
+
/** Script number of the item */
|
|
798
|
+
number?: string;
|
|
799
|
+
quantity?: number | string;
|
|
800
|
+
date?: string;
|
|
801
|
+
draftScriptId?: number;
|
|
802
|
+
dispensedScriptId?: number;
|
|
803
|
+
}
|
|
804
|
+
/** The script item retrieved from a customer_scripts search on compound direct */
|
|
805
|
+
export interface CDSearchScripts {
|
|
806
|
+
key: string;
|
|
807
|
+
id: number;
|
|
808
|
+
isDispensed: boolean;
|
|
809
|
+
scriptType: 'compound' | 'stockProduct' | 'retail' | 'drug' | 'externalBatchStock';
|
|
810
|
+
price: number;
|
|
811
|
+
repeatsLeft: number;
|
|
812
|
+
repeatsTotal: number;
|
|
813
|
+
labelName: string;
|
|
814
|
+
/** Dispensing instructions / SIG */
|
|
815
|
+
instructions: string;
|
|
816
|
+
isRepeatDispensed: boolean;
|
|
817
|
+
/** Quantity on the script */
|
|
818
|
+
quantity: number;
|
|
819
|
+
/** Number of items on the script. */
|
|
820
|
+
itemCount: number;
|
|
821
|
+
/** Date and time the record was created
|
|
822
|
+
* ISO timestamp yyyy-mm-ddThh:mm:ss.000Z */
|
|
823
|
+
createdDate: string;
|
|
824
|
+
/** Whether the script can be reordered */
|
|
825
|
+
isReorderable: boolean;
|
|
826
|
+
/** Whether the script is archived */
|
|
827
|
+
isArchived: boolean;
|
|
828
|
+
/** Whether the script is expired */
|
|
829
|
+
isExpired: boolean;
|
|
830
|
+
draftScriptId?: number;
|
|
831
|
+
dispensedScriptId?: number;
|
|
832
|
+
isEPrescription?: boolean;
|
|
833
|
+
unit?: string;
|
|
834
|
+
/** ISO timestamp yyyy-mm-ddThh:mm:ss.000Z */
|
|
835
|
+
dateDispensed?: '2026-06-19T06:29:02.000Z';
|
|
836
|
+
/** ISO date - yyyy-mm-dd */
|
|
837
|
+
datePrescribed?: string;
|
|
838
|
+
supplyNumber?: number;
|
|
839
|
+
totalQuantityPrescribed?: number;
|
|
840
|
+
totalQuantityRemaining?: number;
|
|
841
|
+
minimumInterval?: number;
|
|
842
|
+
deferred?: boolean;
|
|
843
|
+
owing?: boolean;
|
|
844
|
+
originalQuantity?: number;
|
|
845
|
+
isVariableSupply?: boolean;
|
|
846
|
+
/** ISO date - yyyy-mm-dd */
|
|
847
|
+
expiryDate?: string;
|
|
848
|
+
/** Number of days the supply covers */
|
|
849
|
+
daysSupply?: 30;
|
|
850
|
+
refillReminderEnabled?: boolean;
|
|
851
|
+
/** Default next refill reminder date
|
|
852
|
+
* ISO date - yyyy-mm-dd */
|
|
853
|
+
defaultNextRefillReminderDate?: string;
|
|
854
|
+
}
|
|
740
855
|
/**
|
|
741
856
|
* A customer object from Compound Direct
|
|
742
857
|
* @dateOfBirth IsoDateString, only date portion
|
|
@@ -755,7 +870,7 @@ export interface CDCustomer {
|
|
|
755
870
|
email: string;
|
|
756
871
|
createdDate: string;
|
|
757
872
|
modifiedDate: string;
|
|
758
|
-
isAnimal:
|
|
873
|
+
isAnimal: boolean;
|
|
759
874
|
dateOfBirth: string;
|
|
760
875
|
isMobileInvalid: boolean;
|
|
761
876
|
note: string;
|