@ampath/esm-dha-workflow-app 4.0.0-next.151 → 4.0.0-next.153

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,13 +1,14 @@
1
1
  import { type Location, type Patient } from '@openmrs/esm-framework';
2
2
 
3
- export type IdentifierType = 'National ID' | 'Alien ID' | 'Passport' | 'Mandate Number' | 'Refugee ID';
3
+ export type IdentifierType = 'National ID' | 'Alien ID' | 'Passport' | 'Mandate Number' | 'Refugee ID' | 'Birth Certificate';
4
4
 
5
5
  export const IDENTIFIER_TYPES: IdentifierType[] = [
6
6
  'National ID',
7
+ 'Birth Certificate',
7
8
  'Alien ID',
8
9
  'Passport',
9
10
  'Mandate Number',
10
- 'Refugee ID',
11
+ 'Refugee ID'
11
12
  ];
12
13
 
13
14
  export enum OtpStatus {
@@ -54,6 +55,7 @@ export type RequestCustomOtpDto = {
54
55
  identificationNumber: string | number;
55
56
  identificationType: string;
56
57
  locationUuid: string;
58
+ phoneNumber: string;
57
59
  };
58
60
 
59
61
  export interface RequestCustomOtpResponse {
@@ -1,3 +1,4 @@
1
+ import { openmrsFetch } from '@openmrs/esm-framework';
1
2
  import { type HieClientEligibility, type EligibilityFilterDto } from '../../registry/types';
2
3
  import { getHieBaseUrl } from '../utils/get-base-url';
3
4
 
@@ -6,7 +7,7 @@ export async function getClientEligibityStatus(
6
7
  ): Promise<HieClientEligibility> {
7
8
  const hieBaseUrl = await getHieBaseUrl();
8
9
  const url = `${hieBaseUrl}/eligibility`;
9
- const response = await fetch(url, {
10
+ const response = await openmrsFetch(url, {
10
11
  method: 'POST',
11
12
  headers: {
12
13
  'Content-Type': 'application/json',