Skip to content

Commit

Permalink
Merge pull request #512 from masslight/develop
Browse files Browse the repository at this point in the history
release Nile v0.14
  • Loading branch information
GiladSchneider authored Oct 22, 2024
2 parents 549d8cb + 2619600 commit 1e84b12
Show file tree
Hide file tree
Showing 107 changed files with 2,040 additions and 783 deletions.
99 changes: 0 additions & 99 deletions .github/workflows/build-and-deploy-PRODUCTION.yml

This file was deleted.

136 changes: 0 additions & 136 deletions .github/workflows/build-and-deploy.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/demo.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ottehr",
"version": "0.13.0",
"version": "0.14.0",
"private": true,
"scripts": {
"test": "pnpm recursive run test",
Expand Down
5 changes: 5 additions & 0 deletions packages/ehr-utils/lib/fhir/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ export const FHIR_EXTENSION = {
url: `${PRIVATE_EXTENSION_BASE_URL}/date-of-birth-not-confirmed`,
},
},
Patient: {
weight: {
url: `${PRIVATE_EXTENSION_BASE_URL}/weight`,
},
},
};
10 changes: 9 additions & 1 deletion packages/ehr-utils/lib/helpers/practitioner.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Encounter, Practitioner } from 'fhir/r4';
import { Encounter, Identifier, Practitioner } from 'fhir/r4';
import {
FHIR_IDENTIFIER_NPI,
PRACTITIONER_QUALIFICATION_CODE_SYSTEM,
PRACTITIONER_QUALIFICATION_EXTENSION_URL,
PRACTITIONER_QUALIFICATION_STATE_SYSTEM,
Expand Down Expand Up @@ -54,3 +55,10 @@ export const checkIsEncounterForPractitioner = (encounter: Encounter, practition

return !!practitioner && !!encounterPractitioner && practitionerId === encounterPractitionerId;
};

export const getPractitionerNPIIdentitifier = (practitioner: Practitioner | undefined): Identifier | undefined => {
return practitioner?.identifier?.find((existIdentifier) => existIdentifier.system === FHIR_IDENTIFIER_NPI);
};

export const ERX_PRESCRIBER_SYSTEM_URL = 'http://api.zapehr.com/photon-prescriber-id';
export const ERX_PRACTITIONER_ENROLLED = 'http://api.zapehr.com/photon-practitioner-enrolled';
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface ChartDataFields {
ros?: FreeTextNoteDTO;
conditions?: MedicalConditionDTO[];
medications?: MedicationDTO[];
prescribedMedications?: PrescribedMedicationDTO[];
allergies?: AllergyDTO[];
procedures?: ProcedureDTO[];
proceduresNote?: FreeTextNoteDTO;
Expand Down Expand Up @@ -40,7 +41,10 @@ export interface MedicationDTO extends SaveableDTO {
name?: string;
id?: string;
}

export interface PrescribedMedicationDTO extends SaveableDTO {
name?: string;
instructions?: string;
}
export interface ProcedureDTO extends SaveableDTO {
name?: string;
}
Expand Down
1 change: 1 addition & 0 deletions packages/ehr-utils/lib/types/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from './get-telemed-appointments';
export * from './icd-search';
export * from './init-telemed-session';
export * from './patient-instructions';
export * from './sync-user';
1 change: 1 addition & 0 deletions packages/ehr-utils/lib/types/api/sync-user/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './sync-user.types';
4 changes: 4 additions & 0 deletions packages/ehr-utils/lib/types/api/sync-user/sync-user.types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface SyncUserResponse {
message: string;
updated: boolean;
}
2 changes: 1 addition & 1 deletion packages/ehr-utils/lib/types/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const TELEMED_VIDEO_ROOM_CODE = 'chime-video-meetings';
export const PHOTON_PATIENT_IDENTIFIER_SYSTEM = 'http://api.zapehr.com/photon-patient-id';
export const ERX_PATIENT_IDENTIFIER_SYSTEM = 'http://api.zapehr.com/photon-patient-id';

export const PRACTITIONER_QUALIFICATION_EXTENSION_URL =
'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/practitioner-qualification';
Expand Down
2 changes: 1 addition & 1 deletion packages/ehr-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ehr-utils",
"private": true,
"version": "0.13.0",
"version": "0.14.0",
"main": "lib/main.ts",
"types": "lib/main.ts",
"scripts": {
Expand Down
Loading

0 comments on commit 1e84b12

Please sign in to comment.