mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-23 08:23:00 +08:00
76 lines
No EOL
1.2 KiB
TypeScript
76 lines
No EOL
1.2 KiB
TypeScript
import gql from 'graphql-tag';
|
|
|
|
|
|
export const ADD_PATIENT = gql`
|
|
mutation AddPatient($payload: PatientInputType!){
|
|
createPatient(payload: $payload) {
|
|
... on PatientType {
|
|
__typename
|
|
uid
|
|
clientPatientId
|
|
patientId
|
|
firstName
|
|
middleName
|
|
lastName
|
|
age
|
|
gender
|
|
dateOfBirth
|
|
ageDobEstimated
|
|
client {
|
|
name
|
|
district {
|
|
name
|
|
province {
|
|
name
|
|
}
|
|
}
|
|
}
|
|
phoneHome
|
|
phoneMobile
|
|
consentSms
|
|
}
|
|
|
|
... on OperationError {
|
|
__typename
|
|
error
|
|
suggestion
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export const UPDATE_PATIENT = gql`
|
|
mutation EditPatient($uid: FelicityID!,$payload: PatientInputType!){
|
|
updatePatient(uid: $uid, payload: $payload) {
|
|
... on PatientType {
|
|
__typename
|
|
uid
|
|
clientPatientId
|
|
patientId
|
|
firstName
|
|
middleName
|
|
lastName
|
|
age
|
|
gender
|
|
dateOfBirth
|
|
ageDobEstimated
|
|
client {
|
|
name
|
|
district {
|
|
name
|
|
province {
|
|
name
|
|
}
|
|
}
|
|
}
|
|
phoneHome
|
|
phoneMobile
|
|
consentSms
|
|
}
|
|
|
|
... on OperationError {
|
|
__typename
|
|
error
|
|
suggestion
|
|
}
|
|
}
|
|
}`; |