Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ############################################## Queries ##########################################
- # Therapists
- type User {
- userId: String @unique # userID from auth0
- userFullname: String
- userRoles: String
- userSpecialty: String
- userAvatar: String
- userEmail: String
- userEmailVerified: String
- userSignatureBase64: String
- userFavoriteList: String
- company: Company
- patient: [Patient]
- }
- type Patient {
- patientId: String @unique
- patientDemographics: String
- patientRecTherapyFrequency: String
- patientRecOtherServices: String
- patientRecMedicalNecessity: String
- patientRecRehabPotential: Int
- patientCcTo: String
- patientFirstName: String
- patientMiddleName: String
- patientLastName: String
- patientDoBirth: String
- patientDoLoss: String
- patientDxIcd10: String
- patientMrn: String
- patientClaimNumber: String
- patientInsurance: String
- patientPhysician: String
- patientMisc: String
- goals: [Goal]
- }
- # An individual billing code
- type BillingCode {
- billingCodeId: ID @unique
- billingCodeCPT: String
- billingCodeTitle: String
- userSpecialty: Int
- billingCodeUntimed: Int # Untimed billing codes dont follow 8-min rule
- }
- # A goal - may be from an initial evaluation or added during course of therapy
- type Goal {
- goalsId: ID @unique
- goalsTitle: String
- goalsIsDischarged: Int
- DailyNoteGoal: [DailyNoteGoal]
- }
- type Company {
- companyId: ID @unique
- companyName: String
- companyLogo: String
- companyDomain: String
- # Billing type - by faculty or by student - based in Config file
- companyBillingType: Int
- # PNG image company logo thats base64 encoded
- companyLogoBase64: String
- # Goal bank for companywide use
- companyGoalBank: String
- # random company token generated to allow users to join
- companyJoinToken: String
- users: [User]
- billingCodes: [BillingCode]
- }
- ############################################## Query Daily Notes ##########################################
- type DailyNote {
- DailyNoteId: String @unique
- DailyNoteDate: String
- DailyNoteTherapyStartTime: String
- DailyNoteTherapyEndTime: String
- DailyNoteSecondTherapyStartTime: String
- DailyNoteSecondTherapyEndTime: String
- DailyNoteTherapyLocation: Int
- DailyNoteTraveledMinutes: Int
- DailyNoteTraveledMiles: Int
- DailyNoteTraveledRoundtrip: String
- DailyNoteSubjective: String
- DailyNoteObjective: String
- DailyNotePlan: String
- DailyNoteSubjectiveToProgress: String
- DailyNoteObjectiveToProgress: String
- DailyNotePlanToProgress: String
- DailyNoteStatus: Int
- DailyNoteReviewerUserId: String
- DailyNoteReviewerComments: String
- DailyNoteTotalMinutes: Int
- DailyNoteTotalUnits: Int
- DailyNoteBillingCodes: [DailyNoteBillingCode]
- DailyNoteGoal: [DailyNoteGoal]
- patient: Patient
- author: User @relation(name: "Author")
- reviewer: User @relation(name: "Reviewer")
- }
- type DailyNoteBillingCode {
- DailyNoteBillingCodeId: String @unique
- DailyNoteBillingCodeMinutes: Int
- DailyNoteBillingCodeUnits: Int
- billingCode: BillingCode
- }
- type DailyNoteGoal {
- DailyNoteGoalsId: ID @unique
- DailyNoteGoalsBody: String
- goal: Goal
- }
- ############################################## Query Cancellation Notes ##########################################
- # A Full Cancellation Note
- type CancellationNote {
- cancellationId: String @unique
- cancellationStatus: Int
- cancellationDate: String
- cancellationReason: String
- # Author user
- author: User
- patient: Patient
- }
- ############################################## Query Progress Notes ##########################################
- # A Full Progress Note
- type ProgressNote {
- ProgressNoteId: String @unique
- ProgressNoteStatus: Int
- ProgressNoteDate: String
- ProgressNoteStartDate: String
- ProgressNoteEndDate: String
- ProgressNoteCancellations: String
- ProgressNoteSubjective: String
- ProgressNoteObjective: String
- ProgressNotePlan: String
- ProgressNoteReviewerUserId: String
- ProgressNoteGoals: [DailyNoteGoal]
- author: User @relation(name: "ProgressNoteToAuthor")
- reviewer: User @relation(name: "ProgressNoteToReviewer")
- patient: Patient
- }
- # A Full Progress Note
- type ProgressNoteDateRange {
- patientId: String
- ProgressNoteId: String
- compiledCancellationForDateRange: String
- compiledSubjectiveForDateRange: String
- compiledObjectiveForDateRange: String
- compiledGoalsForDateRange: [DailyNoteGoal]
- compiledPlanForDateRange: String
- patient: Patient
- }
- ############################################## Query Evaluation Notes ##########################################
- # An initial evaluation
- type Evaluation {
- evaluationUuid: ID @unique
- evaluationDate: String
- evaluationStartTime: String
- evaluationEndTime: String
- evaluationSchema: String
- evaluationResults: String
- evaluationStatus: Int
- evaluationReviewerComments: String
- evaluationFinalLocation: String
- goals: [Goal]
- author: User @relation(name: "EvaluationToAuthor")
- reviewer: User @relation(name: "EvaluationToReviewer")
- patient: Patient
- }
- # An initial evaluation
- type EvaluationTemplate {
- evaluationTemplateUuid: ID @unique
- evaluationTemplateLabel: String
- evaluationTemplateSchema: String
- author: User
- }
Add Comment
Please, Sign In to add comment