-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ET-493-add-new-property-to-elation-user (#527)
- Loading branch information
1 parent
065b61b
commit b7edb86
Showing
11 changed files
with
255 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
104 changes: 104 additions & 0 deletions
104
extensions/elation/actions/getPatient/config/dataPoints.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
import { type DataPointDefinition } from '@awell-health/extensions-core' | ||
|
||
export const dataPoints = { | ||
firstName: { | ||
key: 'firstName', | ||
valueType: 'string', | ||
}, | ||
lastName: { | ||
key: 'lastName', | ||
valueType: 'string', | ||
}, | ||
dob: { | ||
key: 'dob', | ||
valueType: 'date', | ||
}, | ||
sex: { | ||
key: 'sex', | ||
valueType: 'string', | ||
}, | ||
primaryPhysicianId: { | ||
key: 'primaryPhysicianId', | ||
valueType: 'number', | ||
}, | ||
caregiverPracticeId: { | ||
key: 'caregiverPracticeId', | ||
valueType: 'number', | ||
}, | ||
mainPhone: { | ||
key: 'mainPhone', | ||
valueType: 'telephone', | ||
}, | ||
mobilePhone: { | ||
key: 'mobilePhone', | ||
valueType: 'telephone', | ||
}, | ||
email: { | ||
key: 'email', | ||
valueType: 'string', | ||
}, | ||
middleName: { | ||
key: 'middleName', | ||
valueType: 'string', | ||
}, | ||
actualName: { | ||
key: 'actualName', | ||
valueType: 'string', | ||
}, | ||
genderIdentity: { | ||
key: 'genderIdentity', | ||
valueType: 'string', | ||
}, | ||
legalGenderMarker: { | ||
key: 'legalGenderMarker', | ||
valueType: 'string', | ||
}, | ||
pronouns: { | ||
key: 'pronouns', | ||
valueType: 'string', | ||
}, | ||
sexualOrientation: { | ||
key: 'sexualOrientation', | ||
valueType: 'string', | ||
}, | ||
ssn: { | ||
key: 'ssn', | ||
valueType: 'string', | ||
}, | ||
ethnicity: { | ||
key: 'ethnicity', | ||
valueType: 'string', | ||
}, | ||
race: { | ||
key: 'race', | ||
valueType: 'string', | ||
}, | ||
preferredLanguage: { | ||
key: 'preferredLanguage', | ||
valueType: 'string', | ||
}, | ||
notes: { | ||
key: 'notes', | ||
valueType: 'string', | ||
}, | ||
previousFirstName: { | ||
key: 'previousFirstName', | ||
valueType: 'string', | ||
}, | ||
previousLastName: { | ||
key: 'previousLastName', | ||
valueType: 'string', | ||
}, | ||
status: { | ||
key: 'status', | ||
valueType: 'string', | ||
}, | ||
preferredServiceLocationId: { | ||
key: 'preferredServiceLocationId', | ||
valueType: 'number', | ||
}, | ||
patientObject: { | ||
key: 'patientObject', | ||
valueType: 'json', | ||
}, | ||
} satisfies Record<string, DataPointDefinition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { | ||
FieldType, | ||
NumericIdSchema, | ||
type Field, | ||
} from '@awell-health/extensions-core' | ||
import z, { type ZodTypeAny } from 'zod' | ||
|
||
export const fields = { | ||
patientId: { | ||
id: 'patientId', | ||
label: 'Patient ID', | ||
description: 'The Elation patient ID', | ||
type: FieldType.NUMERIC, | ||
required: true, | ||
}, | ||
} satisfies Record<string, Field> | ||
|
||
export const FieldsValidationSchema = z.object({ | ||
patientId: NumericIdSchema, | ||
} satisfies Record<keyof typeof fields, ZodTypeAny>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { fields, FieldsValidationSchema } from './fields' | ||
export { dataPoints } from './dataPoints' |
Oops, something went wrong.