Skip to content

Commit

Permalink
added support for various abha qr in scan and pull (ohcnetwork#7565)
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar authored Apr 18, 2024
1 parent c331b84 commit 48db450
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Components/ABDM/LinkABHANumberModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ const ScanABHAQRSection = ({
body: {
patientId,
hidn: abha?.hidn,
phr: abha?.hid,
phr: (abha?.phr ?? abha?.hid) as string,
name: abha?.name,
gender: abha?.gender,
dob: abha?.dob.replace(/\//g, "-"),
address: abha?.address,
"dist name": abha?.district_name,
"dist name": abha?.["dist name"] ?? abha?.district_name,
"state name": abha?.["state name"],
},
});
Expand Down
8 changes: 5 additions & 3 deletions src/Components/ABDM/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,12 @@ export interface ILinkViaQRBody {
export interface ABHAQRContent {
address: string;
distlgd: string;
district_name: string;
district_name?: string;
dob: string;
gender: "M";
hid: string;
gender: "M" | "F" | "O";
hid?: string;
phr?: string;
"dist name"?: string;
hidn: string;
mobile: string;
name: string;
Expand Down

0 comments on commit 48db450

Please sign in to comment.