Clinical Mutations

Interactive examples coming soon...

addLinkedClinicalNote :: LinkedClinicalNote

ArgumentTypeDescription
clinicalNoteIdID!
encounterIdID!

addLinkedEncounter :: LinkedEncounter

ArgumentTypeDescription
encounterIdID!
linkedEncounterIdID!
titleString!

addTreatment :: Treatment

ArgumentTypeDescription
inputTreatmentInput!

assignProblemToEncounter :: Problem

Assign a problem in the patient's problem list to the encounter

ArgumentTypeDescription
encounterIdID!
problemIdID!

attachGmailAttachmentToEncounter :: PatientDocument

ArgumentTypeDescription
attachmentIdString!
categoryString!
encounterIdID!
messageIdID!
nameString!
xAttachmentIdString!

cancelVetsourceOrder :: [Medication]

ArgumentTypeDescription
medicationIds[ID]

captureClientConsent :: String

ArgumentTypeDescription
clientConsentIdIDif existing consent already made
clientIdID
consentString!
consentFormIdID
encounterIdID
estimateIdID
locationIdID
nameString!
patientIdID
signatureString!

copyFromPreviousEncounter :: Encounter

ArgumentTypeDescription
encounterIdID!
sectionNameString!

copyMedicationsToEncounter :: Encounter

ArgumentTypeDescription
encounterIdID!
sectionNameString!

createAllergy :: Allergy

ArgumentTypeDescription
patientIdID!

createApptVitals :: Appointment

ArgumentTypeDescription
appointmentIdID!

createComplication :: 

ArgumentTypeDescription
inputComplicationInput

createCustomPatientFieldValue :: CustomPatientFieldValue

Create a custom patient field value

ArgumentTypeDescription
customPatientFieldIdID!
patientIdID!
valueString!

createCustomPatientProtocol :: CustomPatientProtocol

ArgumentTypeDescription
inputCustomPatientProtocolInput

createEncounterOrder :: Encounter

ArgumentTypeDescription
encounterIdID!

createEncounterSection :: Encounter

Inserts a new section for the given `encounter_id`'s sections at the `section_idx`th position

ArgumentTypeDescription
encounterIdID!
inputEncounterSectionInput!
sectionIdxInt!

createEncounterSectionDatum :: Encounter

Inserts the given datum for the given encounter's `section_idx` at the `datum_idx`th position

ArgumentTypeDescription
datumJSON!
datumIdxInt!
encounterIdID!
sectionIdxInt!

createEncounterType :: EncounterType

ArgumentTypeDescription
inputEncounterTypeInput

createImmunization :: Immunization

Create an immunization

ArgumentTypeDescription
inputImmunizationInput!

createParentProblem :: Problem

ArgumentTypeDescription
idID!

createPatient :: 

ArgumentTypeDescription
clientIdID!
inputPatientInputAttributes to create a patient with

createPatientComplication :: 

ArgumentTypeDescription
inputPatientComplicationInput

createPatientTag :: 

ArgumentTypeDescription
inputPatientTagInput

createProblem :: Problem

Create a new problem

ArgumentTypeDescription
inputProblemInput
patientIdID!

deleteAllergy :: 

ArgumentTypeDescription
idID!

deleteClientConsent :: ClientConsent

ArgumentTypeDescription
idID!

deleteComplication :: 

ArgumentTypeDescription
idID!

deleteEncounter :: Encounter

ArgumentTypeDescription
idID!

deleteEncounterSection :: Encounter

Deletes the corresponding section for the given `encounter_id`'s sections at the `section_idx`th position

ArgumentTypeDescription
encounterIdID!
sectionIdxInt!

deleteEncounterSectionDatum :: Encounter

Deletes the `datum_idx`th datum for the given encounter's `section_idx`

ArgumentTypeDescription
datumIdxInt!
encounterIdID!
sectionIdxInt!

deleteLinkedClinicalNote :: ClinicalNote

ArgumentTypeDescription
clinicalNoteIdID!
encounterIdID!

deleteLinkedEncounter :: Encounter

ArgumentTypeDescription
encounterIdID!
linkedEncounterIdID!

deleteMedication :: Medication

ArgumentTypeDescription
idID!

deletePatientComplication :: 

ArgumentTypeDescription
idID!

deletePatientDocument :: PatientDocument

ArgumentTypeDescription
idID!

deletePatientTag :: 

ArgumentTypeDescription
idID!

deleteProblem :: 

ArgumentTypeDescription
idID!

deleteVitals :: 

ArgumentTypeDescription
idID!

emailEncounterPdf :: [String]

ArgumentTypeDescription
encounterIdID!
typeEncounterPdfType

emailEncounterRecord :: [EmailStatus]

ArgumentTypeDescription
encounterIdID!
only[String]
patientIdID!

emailEncounterRecordToCustom :: [EmailStatus]

ArgumentTypeDescription
emailString!
encounterIdID!
only[String]
patientIdID!

emailEncounterRecordToRdvms :: [EmailStatus]

ArgumentTypeDescription
encounterIdID!
patientIdID!

emailHospitalizationNoticeToRdvms :: [EmailStatus]

ArgumentTypeDescription
encounterIdID!
patientIdID!

emailImmunizationsRecord :: String

ArgumentTypeDescription
isLatestBoolean
locationIdID
patientIdID!

emailMedicalRecordsSummary :: String

ArgumentTypeDescription
emailToString!
endNaiveDateTime
includeCommunicationsBoolean
includeDocumentsBoolean
includeExamsBoolean
includeImmunizationsBoolean
includeLabResultsBoolean
includeMedicationsBoolean
includeNotesBoolean
includePrivateBoolean
includeTasksBoolean
locationIdID
patientIdID!
startNaiveDateTime

emailRabiesCertificate :: String

ArgumentTypeDescription
ignoreHistoricalBoolean
locationIdID
patientIdID!

emailSelectedRabiesCertificates :: String

ArgumentTypeDescription
emails[]
ids[]
locationIdID
patientIdID!

encounterPdf :: String

ArgumentTypeDescription
encounterIdID!
typeEncounterPdfType

genVetsourceUrl :: String

ArgumentTypeDescription
nameString!
patientIdID

markAllNormalEncounter :: Encounter

ArgumentTypeDescription
encounterIdID!
sectionNameString!
valueString

massMicrochipRegister :: [String]

ArgumentTypeDescription
patientRegistrations[PatientRegistration]

mergePatients :: Patient

ArgumentTypeDescription
fromPatientIdID!
toPatientIdID!

movePatientToClient :: Patient

ArgumentTypeDescription
clientIdID!
patientIdID!

newEncounter :: Encounter

Create a new encounter for a patient at a location

ArgumentTypeDescription
inputEncounterInput
patientIdID!
typeIdID

orderVetsource :: [Medication]

ArgumentTypeDescription
addressIdID!
medicationIds[ID]

prescribeMedication :: Medication

Prescribe a medication

ArgumentTypeDescription
inputMedicationInput!

printLabelPrintnode :: PrintLabelResult

ArgumentTypeDescription
clientIdID
inputPrinterInput
medicationIdID
patientIdID

pushRxToCubex :: String

ArgumentTypeDescription
medicationIdID!

pushToCubex :: String

ArgumentTypeDescription
locationIdID!
patientIdID!

pushTreatmentToCubex :: String

ArgumentTypeDescription
treatmentIdID!

recordPatientWeight :: Vitals

ArgumentTypeDescription
datetimeNaiveDateTime
patientIdID!
weightDecimal!
weightUnitWeightUnit!

refillMedication :: Medication

ArgumentTypeDescription
idID!
lotNumberString
startDate
stopDate

regeneratePatientProtocols :: Boolean

Deletes all existing patient protocols for the given organization and regenerates them all. This may prove useful in reconciling patient protocol state following historical data importing, as Vetspire does not automatically generate patient protocols when importing large amounts of historical data. Warning: Once started, this process cannot be stopped, though if reconciliation is unsuccessful, no changes will be saved. Depending on the volume of data that needs to be analyzed, this endpoint may take upwards of 15 minutes to complete.

ArgumentTypeDescription
orgIdID!

registerPatientMicrochip :: Patient

ArgumentTypeDescription
locationIdID!
patientIdID!

reopenEncounter :: Encounter

ArgumentTypeDescription
idID!Encounter ID

replaceEncounterSectionDatum :: Encounter

Replaces a given datum by (section_idx x datum_idx) with provided JSON. Note that no validity checking of the datum input is performed. If you wish to simply update a given datum, you can more safetly use `replace_encounter_section_datum` instead.

ArgumentTypeDescription
datumJSON!
datumIdxInt!
encounterIdID!
sectionIdxInt!

saveMicrochip :: Patient

ArgumentTypeDescription
patientIdID!

signEncounter :: Encounter

Sign an encounter with the current user

ArgumentTypeDescription
idID!Encounter ID

surgeryLogPdf :: String

ArgumentTypeDescription
locationIdID!

transferPatient :: Patient

ArgumentTypeDescription
patientIdID!
toClientIdID!

triggerPrescription :: Medication

ArgumentTypeDescription
medicationIdID!

unassignProblemFromEncounter :: Problem

Assign a problem in the patient's problem list to the encounter

ArgumentTypeDescription
encounterIdID!
problemIdID!

updateAllergy :: Allergy

ArgumentTypeDescription
idID!
inputAllergyInput!

updateComplication :: Complication

ArgumentTypeDescription
idID!
inputComplicationInput!

updateCustomPatientFieldValue :: CustomPatientFieldValue

Update a custom patient field value

ArgumentTypeDescription
idID!
valueString!

updateCustomPatientProtocol :: CustomPatientProtocol

ArgumentTypeDescription
idID!
inputCustomPatientProtocolInput

updateEncounter :: Encounter

Update a live encounter

ArgumentTypeDescription
idID!
inputEncounterInput

updateEncounterSection :: Encounter

Updates the section corresponding to the given `section_idx` for the given `encounter_id`

ArgumentTypeDescription
encounterIdID!
inputEncounterSectionInput!
sectionIdxInt!

updateEncounterSectionDatum :: Encounter

Updates a given datum by (section_idx x datum_idx) with provided changeset

ArgumentTypeDescription
datumIdxInt!
encounterIdID!
sectionIdxInt!
updatesJSON!

updateEncounterType :: EncounterType

ArgumentTypeDescription
idID!
inputEncounterTypeInput

updateImmunization :: Immunization

ArgumentTypeDescription
idID!
inputImmunizationInput!

updateLinkedClinicalNote :: LinkedClinicalNote

Update a linked clinical note

ArgumentTypeDescription
idID!
inputLinkedClinicalNoteInput

updateLinkedEncounter :: LinkedEncounter

Update a linked encounter

ArgumentTypeDescription
idID!
inputLinkedEncounterInput

updateMedication :: Medication

Update a medication

ArgumentTypeDescription
idID!
inputMedicationInput!

updatePatient :: Patient

ArgumentTypeDescription
idID!
inputPatientInput!

updatePatientComplication :: PatientComplication

ArgumentTypeDescription
idID!
inputPatientComplicationInput!

updatePatientDocument :: PatientDocument

ArgumentTypeDescription
idID!
inputPatientDocumentInput!

updatePatientTag :: PatientTag

ArgumentTypeDescription
idID!
inputPatientTagInput!

updateProblem :: Problem

ArgumentTypeDescription
idID!
inputProblemInput!

updateVitals :: Vitals

ArgumentTypeDescription
idID!
inputVitalsInput

uploadEncounterTypeAsset :: String

ArgumentTypeDescription
assetUpload!

uploadPatientDocument :: PatientDocument

ArgumentTypeDescription
categoryString
documentUpload!
encounterIdID
encounterSectionNameString
nameString!
patientIdID!

uploadPatientImage :: Patient

ArgumentTypeDescription
documentUpload!
patientIdID!

valuesetLabel :: String

ArgumentTypeDescription
encounterIdID!
sectionNameString!