Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
feat(patients): refactor name and contact information to own interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Jan 20, 2020
1 parent c9a6913 commit 26543af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
5 changes: 5 additions & 0 deletions src/model/ContactInformation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default interface ContactInformation {
phoneNumber: string
email?: string
address?: string
}
7 changes: 7 additions & 0 deletions src/model/Name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default interface Name {
prefix?: string
givenName?: string
familyName?: string
suffix?: string
fullName?: string
}
12 changes: 3 additions & 9 deletions src/model/Patient.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import AbstractDBModel from './AbstractDBModel'
import Name from './Name'
import ContactInformation from './ContactInformation'

export default interface Patient extends AbstractDBModel {
prefix?: string
givenName?: string
familyName?: string
suffix?: string
fullName?: string
export default interface Patient extends AbstractDBModel, Name, ContactInformation {
sex: string
dateOfBirth: string
isApproximateDateOfBirth: boolean
phoneNumber: string
email?: string
address?: string
preferredLanguage?: string
occupation?: string
type?: string
Expand Down

0 comments on commit 26543af

Please sign in to comment.