Skip to content

Commit

Permalink
(feat) : Use social health authority identification number (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldkibet committed Jan 5, 2025
1 parent 0183645 commit bd3b8e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json

# Runtime data
pids
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class PatientMapper extends Mapper<HIEPatient, FormValues> {
const updatedIdentifiers: Record<string, PatientIdentifierValue> = { ...currentFormValues.identifiers };
// Map Social Health Authority Unique Identification Number to HIE Patient ID
// See https://github.com/palladiumkenya/openmrs-module-kenyaemr/blob/1e1d281eaba8041c45318e60ca0730449b8e4197/api/src/main/distro/metadata/identifierTypes.xml#L33
updatedIdentifiers.socialHealthInsuranceNumber = {
...currentFormValues.identifiers['socialHealthInsuranceNumber'],
updatedIdentifiers.socialHealthAuthorityIdentificationNumber = {
...currentFormValues.identifiers['socialHealthAuthorityIdentificationNumber'],
identifierValue: hiePatient.id,
};

Expand Down

0 comments on commit bd3b8e0

Please sign in to comment.