felicity-lims/webapp/graphql/operations/patient.mutations.graphql
2024-11-20 06:39:33 +02:00

155 lines
3.4 KiB
GraphQL

mutation AddIdentification($name: String!) {
createIdentification(name: $name) {
... on IdentificationType {
__typename
uid
name
}
... on OperationError {
__typename
error
suggestion
}
}
}
mutation EditIdentification($uid: String!, $name: String!) {
updateIdentification(uid: $uid, name: $name) {
... on IdentificationType {
__typename
uid
name
}
... on OperationError {
__typename
error
suggestion
}
}
}
mutation AddPatient($payload: PatientInputType!) {
createPatient(payload: $payload) {
... on PatientType {
__typename
uid
clientPatientId
patientId
firstName
middleName
lastName
age
gender
dateOfBirth
ageDobEstimated
client {
uid
name
district {
name
province {
name
}
}
}
phoneHome
phoneMobile
consentSms
identifications {
uid
value
identificationUid
identification {
uid
name
}
}
countryUid
country {
uid
name
}
provinceUid
province {
uid
name
}
districtUid
district {
uid
name
}
}
... on OperationError {
__typename
error
suggestion
}
}
}
mutation EditPatient($uid: String!, $payload: PatientInputType!) {
updatePatient(uid: $uid, payload: $payload) {
... on PatientType {
__typename
uid
clientPatientId
patientId
firstName
middleName
lastName
age
gender
dateOfBirth
ageDobEstimated
client {
uid
name
district {
name
province {
name
}
}
}
phoneHome
phoneMobile
consentSms
identifications {
uid
value
identificationUid
identification {
uid
name
}
}
countryUid
country {
uid
name
}
provinceUid
province {
uid
name
}
districtUid
district {
uid
name
}
}
... on OperationError {
__typename
error
suggestion
}
}
}