@photonhealth/elements 0.14.13 → 0.15.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.
@@ -1,26 +1,7 @@
1
1
  import { ScreeningAlertType } from '@photonhealth/components';
2
+ import { Prescription } from '@photonhealth/sdk/dist/types';
2
3
  import '@shoelace-style/shoelace/dist/components/icon/icon';
3
4
  import '@shoelace-style/shoelace/dist/components/button/button';
4
- export type AddDraftPrescription = {
5
- id: string;
6
- effectiveDate: string;
7
- treatment: {
8
- id: string;
9
- name: string;
10
- };
11
- dispenseAsWritten: boolean;
12
- dispenseQuantity: number;
13
- dispenseUnit: string;
14
- daysSupply: number;
15
- refillsInput: number;
16
- instructions: string;
17
- notes: string;
18
- fillsAllowed: number;
19
- addToTemplates: boolean;
20
- templateName: string;
21
- catalogId?: string;
22
- externalId?: string;
23
- };
24
5
  export declare const AddPrescriptionCard: (props: {
25
6
  hideAddToTemplates: boolean;
26
7
  actions: Record<string, (...args: any) => any>;
@@ -31,14 +12,9 @@ export declare const AddPrescriptionCard: (props: {
31
12
  enableCombineAndDuplicate?: boolean;
32
13
  screenDraftedPrescriptions: () => void;
33
14
  draftedPrescriptionChanged: () => void;
34
- onDraftPrescriptionCreated: (draft: AddDraftPrescription) => void;
15
+ onDraftPrescriptionCreated: (draft: Prescription) => void;
35
16
  screeningAlerts: ScreeningAlertType[];
36
17
  catalogId?: string;
37
18
  allowOffCatalogSearch?: boolean;
38
19
  enableOrder: boolean;
39
20
  }) => import("solid-js").JSX.Element;
40
- export declare function isTreatmentInDraftPrescriptions(treatmentId: string, draftedPrescriptions: {
41
- treatment: {
42
- id: string;
43
- };
44
- }[]): boolean;
@@ -1,8 +1,7 @@
1
- import type { TemplateOverrides } from '@photonhealth/components';
2
1
  import { ScreeningAlertType } from '@photonhealth/components';
3
2
  export declare const DraftPrescriptionCard: (props: {
4
3
  templateIds: string[];
5
- templateOverrides: TemplateOverrides;
4
+ templateOverrides: any;
6
5
  prescriptionIds: string[];
7
6
  prescriptionRef: HTMLDivElement | undefined;
8
7
  actions: Record<string, (...args: any) => any>;
@@ -3,5 +3,6 @@ export declare const OrderCard: (props: {
3
3
  actions: Record<string, (...args: any) => any>;
4
4
  enableLocalPickup: boolean;
5
5
  enableSendToPatient: boolean;
6
+ enableDeliveryPharmacies: boolean;
6
7
  mailOrderIds?: string;
7
8
  }) => import("solid-js").JSX.Element;
@@ -1,7 +1,5 @@
1
1
  import { PhotonClientStore } from '@photonhealth/components';
2
- import { Treatment } from '@photonhealth/sdk/dist/types';
3
2
  import type { Address } from '../photon-prescribe-workflow';
4
- import { MedHistoryPrescription } from '@photonhealth/components/dist/packages/components/src/systems/PatientMedHistory';
5
3
  interface PatientCardStoreProp {
6
4
  patient?: {
7
5
  value?: {
@@ -24,6 +22,5 @@ export declare const PatientCard: (props: {
24
22
  enableMedHistoryLinks?: boolean;
25
23
  enableMedHistoryRefillButton?: boolean;
26
24
  hidePatientCard?: boolean;
27
- onRefillClick?: (prescription: MedHistoryPrescription, treatment: Treatment) => void;
28
25
  }) => import("solid-js").JSX.Element;
29
26
  export {};
@@ -26,6 +26,7 @@ export type PrescribeProps = {
26
26
  enableMedHistoryLinks: boolean;
27
27
  enableMedHistoryRefillButton: boolean;
28
28
  enableCombineAndDuplicate: boolean;
29
+ enableDeliveryPharmacies: boolean;
29
30
  mailOrderIds?: string;
30
31
  pharmacyId?: string;
31
32
  loading: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photonhealth/elements",
3
- "version": "0.14.13",
3
+ "version": "0.15.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",