diff --git a/src/model/ContactInformation.ts b/src/model/ContactInformation.ts new file mode 100644 index 0000000000..96a494861d --- /dev/null +++ b/src/model/ContactInformation.ts @@ -0,0 +1,5 @@ +export default interface ContactInformation { + phoneNumber: string + email?: string + address?: string +} diff --git a/src/model/Name.ts b/src/model/Name.ts new file mode 100644 index 0000000000..cdd1bd536f --- /dev/null +++ b/src/model/Name.ts @@ -0,0 +1,7 @@ +export default interface Name { + prefix?: string + givenName?: string + familyName?: string + suffix?: string + fullName?: string +} diff --git a/src/model/Patient.ts b/src/model/Patient.ts index 91f55de26e..0f4e8bef1d 100644 --- a/src/model/Patient.ts +++ b/src/model/Patient.ts @@ -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