@photonhealth/elements 0.23.8 → 0.23.10

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.
@@ -36,5 +36,4 @@ export type PrescribeProps = {
36
36
  disableList?: DisableList;
37
37
  groupId?: string;
38
38
  };
39
- export declare const ScreenDraftedPrescriptionsQuery: import("graphql").DocumentNode;
40
39
  export declare function PrescribeWorkflow(props: PrescribeProps): import("solid-js").JSX.Element;
@@ -1,4 +1,3 @@
1
- import { ScreeningAlertType } from '@photonhealth/components';
2
1
  import { DisableList } from '../PrescribeWorkflow';
3
2
  export declare const DraftPrescriptionForm: (props: {
4
3
  hideAddToTemplates: boolean;
@@ -7,8 +6,6 @@ export declare const DraftPrescriptionForm: (props: {
7
6
  weight?: number;
8
7
  weightUnit?: string;
9
8
  prefillNotes?: string;
10
- screenDraftedPrescriptions: () => void;
11
- screeningAlerts: ScreeningAlertType[];
12
9
  catalogId?: string;
13
10
  allowOffCatalogSearch?: boolean;
14
11
  disableList?: DisableList;
@@ -1,12 +1,10 @@
1
- import { RoutingConstraint, ScreeningAlertType } from '@photonhealth/components';
1
+ import { RoutingConstraint } from '@photonhealth/components';
2
2
  export declare function getPrescriptionRoutingConstraints(routingConstraints: RoutingConstraint[]): Map<string, RoutingConstraint>;
3
3
  export declare const DraftPrescriptions: (props: {
4
4
  prescriptionFormRef: HTMLDivElement | undefined;
5
5
  actions: Record<string, (...args: any) => any>;
6
6
  store: Record<string, any>;
7
7
  expandForm: () => void;
8
- handleDraftPrescriptionsChange: () => void;
9
- screeningAlerts: ScreeningAlertType[];
10
8
  routingConstraints: RoutingConstraint[];
11
9
  enableOrder: boolean;
12
10
  }) => import("solid-js").JSX.Element;
@@ -1,4 +1,3 @@
1
- import { ScreeningAlertType } from '@photonhealth/components';
2
1
  import { DisableList } from '../PrescribeWorkflow';
3
2
  export declare const PrescriptionCard: (props: {
4
3
  actions: Record<string, (...args: any) => any>;
@@ -7,8 +6,6 @@ export declare const PrescriptionCard: (props: {
7
6
  weight?: number;
8
7
  weightUnit?: string;
9
8
  prefillNotes?: string;
10
- screenDraftedPrescriptions: () => void;
11
- screeningAlerts: ScreeningAlertType[];
12
9
  enableOrder: boolean;
13
10
  catalogId?: string;
14
11
  allowOffCatalogSearch?: boolean;
@@ -1,4 +1,4 @@
1
- import { SupervisorPrefill, TemplateOverrides } from '@photonhealth/components';
1
+ import { DiagnosisCodesPrefill, SupervisorPrefill, TemplateOverrides } from '@photonhealth/components';
2
2
  import { PrescribeProps } from './components/PrescribeWorkflow';
3
3
  import '@shoelace-style/shoelace/dist/components/alert/alert';
4
4
  import '@shoelace-style/shoelace/dist/components/icon-button/icon-button';
@@ -15,5 +15,6 @@ export interface PrescribeWorkflowComponentProps extends PrescribeProps {
15
15
  enableDeliveryPharmacies: boolean;
16
16
  mailOrderIds?: string;
17
17
  supervisor?: SupervisorPrefill;
18
+ diagnosisCodes?: DiagnosisCodesPrefill;
18
19
  }
19
20
  export declare const PhotonPrescribeWorkflowComponent: (props: PrescribeWorkflowComponentProps) => import("solid-js").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { Address, Patient, Pharmacy } from '@photonhealth/sdk/dist/types';
2
- import { MeUserQueryQuery, SupervisorCardFragment } from '@photonhealth/sdk/dist/clinical-api/types';
2
+ import { DiagnosisCodeType, MeUserQueryQuery, PrescriptionScreeningAlert, PrescriptionScreeningAlertInvolvedAllergen, PrescriptionScreeningAlertInvolvedDraftedPrescription, PrescriptionScreeningAlertInvolvedExistingPrescription, PrescriptionScreeningAlertInvolvedCondition, SupervisorCardFragment } from '@photonhealth/sdk/dist/clinical-api/types';
3
3
  type MeUser = MeUserQueryQuery['me'];
4
4
  export declare function generatePatient(overrides?: Partial<Patient>): Patient;
5
5
  export declare function generateAddress(overrides?: Partial<Address>): Address;
@@ -14,4 +14,14 @@ export declare function generateSupervisorPrefill(overrides?: Partial<Supervisor
14
14
  export declare function generateGqlSupervisor(overrides?: Partial<SupervisorCardFragment>): SupervisorCardFragment;
15
15
  export declare function generateUser(overrides?: Partial<MeUser>): MeUser;
16
16
  export declare function generatePharmacy(overrides?: Partial<Pharmacy>): Pharmacy;
17
+ type DiagnosisCodePrefillShape = {
18
+ code: string;
19
+ type: DiagnosisCodeType | string;
20
+ };
21
+ export declare function generateDiagnosisCodePrefill(overrides?: Partial<DiagnosisCodePrefillShape>): DiagnosisCodePrefillShape;
22
+ type InvolvedEntity = PrescriptionScreeningAlertInvolvedAllergen | PrescriptionScreeningAlertInvolvedDraftedPrescription | PrescriptionScreeningAlertInvolvedExistingPrescription | PrescriptionScreeningAlertInvolvedCondition;
23
+ type PrescriptionScreeningAlertWithInvolvedEntities = Omit<PrescriptionScreeningAlert, 'involvedEntities'> & {
24
+ involvedEntities: InvolvedEntity[];
25
+ };
26
+ export declare function generatePrescriptionScreeningAlert(overrides?: Partial<PrescriptionScreeningAlertWithInvolvedEntities>): PrescriptionScreeningAlertWithInvolvedEntities;
17
27
  export {};
@@ -5,9 +5,11 @@ export declare function renderPrescribeWorkflow(props?: Partial<PrescribeWorkflo
5
5
  analyticsEvents: CustomEvent<any>[];
6
6
  attestationResolvedEvents: Event[];
7
7
  supervisorErrorEvents: CustomEvent<any>[];
8
+ diagnosisCodeErrorEvents: CustomEvent<any>[];
8
9
  waitForPrescribeForm: () => Promise<void>;
9
10
  waitForSignatureAttestationModal: () => Promise<void>;
10
11
  addDraftPrescription: () => Promise<void>;
12
+ waitForDraftPrescription: () => Promise<void>;
11
13
  getByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@solidjs/testing-library").Matcher, options?: import("@solidjs/testing-library").SelectorMatcherOptions | undefined) => ReturnType<import("@solidjs/testing-library").GetByText<T>>) & ((id: import("@solidjs/testing-library").Matcher, options?: import("@solidjs/testing-library").SelectorMatcherOptions | undefined) => HTMLElement);
12
14
  getAllByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@solidjs/testing-library").Matcher, options?: import("@solidjs/testing-library").SelectorMatcherOptions | undefined) => ReturnType<import("@solidjs/testing-library").AllByText<T>>) & ((id: import("@solidjs/testing-library").Matcher, options?: import("@solidjs/testing-library").SelectorMatcherOptions | undefined) => HTMLElement[]);
13
15
  queryByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@solidjs/testing-library").Matcher, options?: import("@solidjs/testing-library").SelectorMatcherOptions | undefined) => ReturnType<import("@solidjs/testing-library").QueryByText<T>>) & ((id: import("@solidjs/testing-library").Matcher, options?: import("@solidjs/testing-library").SelectorMatcherOptions | undefined) => HTMLElement | null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photonhealth/elements",
3
- "version": "0.23.8",
3
+ "version": "0.23.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",