mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 00:42:59 +08:00
55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
TypeScript
|
import gql from 'graphql-tag';
|
||
|
|
||
|
export const ADD_PATIENT = gql`
|
||
|
mutation AddPatient(
|
||
|
$clientPatientId: String!,
|
||
|
$firstName: String!,
|
||
|
$middleName: String,
|
||
|
$lastName: String!,
|
||
|
$age: String!,
|
||
|
$gender: Int!,
|
||
|
$dateOfBirth: String,
|
||
|
$ageDobEstimated: Boolean,
|
||
|
$clientUid: Int!,
|
||
|
$phoneMobile: String!,
|
||
|
$consentSms: Boolean,
|
||
|
){
|
||
|
createPatient(
|
||
|
clientPatientId: $clientPatientId,
|
||
|
firstName: $firstName,
|
||
|
middleName: $middleName,
|
||
|
lastName: $lastName,
|
||
|
age: $age,
|
||
|
gender: $gender,
|
||
|
dateOfBirth: $dateOfBirth,
|
||
|
ageDobEstimated: $ageDobEstimated,
|
||
|
clientUid: $clientUid,
|
||
|
phoneMobile: $phoneMobile,
|
||
|
consentSms: $consentSms
|
||
|
) {
|
||
|
patient {
|
||
|
uid
|
||
|
clientPatientId
|
||
|
patientId
|
||
|
firstName
|
||
|
middleName
|
||
|
lastName
|
||
|
age
|
||
|
gender
|
||
|
dateOfBirth
|
||
|
ageDobEstimated
|
||
|
client {
|
||
|
name
|
||
|
district {
|
||
|
name
|
||
|
province {
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
phoneHome
|
||
|
phoneMobile
|
||
|
consentSms
|
||
|
}
|
||
|
}
|
||
|
}`;
|