Guest User

Untitled

a guest
Feb 22nd, 2019
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. ############################################## Queries ##########################################
  2. # Therapists
  3. type User {
  4. userId: String @unique # userID from auth0
  5. userFullname: String
  6. userRoles: String
  7. userSpecialty: String
  8. userAvatar: String
  9. userEmail: String
  10. userEmailVerified: String
  11. userSignatureBase64: String
  12. userFavoriteList: String
  13. company: Company
  14. patient: [Patient]
  15. }
  16. type Patient {
  17. patientId: String @unique
  18. patientDemographics: String
  19. patientRecTherapyFrequency: String
  20. patientRecOtherServices: String
  21. patientRecMedicalNecessity: String
  22. patientRecRehabPotential: Int
  23. patientCcTo: String
  24. patientFirstName: String
  25. patientMiddleName: String
  26. patientLastName: String
  27. patientDoBirth: String
  28. patientDoLoss: String
  29. patientDxIcd10: String
  30. patientMrn: String
  31. patientClaimNumber: String
  32. patientInsurance: String
  33. patientPhysician: String
  34. patientMisc: String
  35. goals: [Goal]
  36. }
  37. # An individual billing code
  38. type BillingCode {
  39. billingCodeId: ID @unique
  40. billingCodeCPT: String
  41. billingCodeTitle: String
  42. userSpecialty: Int
  43. billingCodeUntimed: Int # Untimed billing codes dont follow 8-min rule
  44. }
  45. # A goal - may be from an initial evaluation or added during course of therapy
  46. type Goal {
  47. goalsId: ID @unique
  48. goalsTitle: String
  49. goalsIsDischarged: Int
  50. DailyNoteGoal: [DailyNoteGoal]
  51. }
  52. type Company {
  53. companyId: ID @unique
  54. companyName: String
  55. companyLogo: String
  56. companyDomain: String
  57. # Billing type - by faculty or by student - based in Config file
  58. companyBillingType: Int
  59. # PNG image company logo thats base64 encoded
  60. companyLogoBase64: String
  61. # Goal bank for companywide use
  62. companyGoalBank: String
  63. # random company token generated to allow users to join
  64. companyJoinToken: String
  65. users: [User]
  66. billingCodes: [BillingCode]
  67. }
  68. ############################################## Query Daily Notes ##########################################
  69. type DailyNote {
  70. DailyNoteId: String @unique
  71. DailyNoteDate: String
  72. DailyNoteTherapyStartTime: String
  73. DailyNoteTherapyEndTime: String
  74. DailyNoteSecondTherapyStartTime: String
  75. DailyNoteSecondTherapyEndTime: String
  76. DailyNoteTherapyLocation: Int
  77. DailyNoteTraveledMinutes: Int
  78. DailyNoteTraveledMiles: Int
  79. DailyNoteTraveledRoundtrip: String
  80. DailyNoteSubjective: String
  81. DailyNoteObjective: String
  82. DailyNotePlan: String
  83. DailyNoteSubjectiveToProgress: String
  84. DailyNoteObjectiveToProgress: String
  85. DailyNotePlanToProgress: String
  86. DailyNoteStatus: Int
  87. DailyNoteReviewerUserId: String
  88. DailyNoteReviewerComments: String
  89. DailyNoteTotalMinutes: Int
  90. DailyNoteTotalUnits: Int
  91. DailyNoteBillingCodes: [DailyNoteBillingCode]
  92. DailyNoteGoal: [DailyNoteGoal]
  93. patient: Patient
  94. author: User @relation(name: "Author")
  95. reviewer: User @relation(name: "Reviewer")
  96. }
  97. type DailyNoteBillingCode {
  98. DailyNoteBillingCodeId: String @unique
  99. DailyNoteBillingCodeMinutes: Int
  100. DailyNoteBillingCodeUnits: Int
  101. billingCode: BillingCode
  102. }
  103. type DailyNoteGoal {
  104. DailyNoteGoalsId: ID @unique
  105. DailyNoteGoalsBody: String
  106. goal: Goal
  107. }
  108. ############################################## Query Cancellation Notes ##########################################
  109. # A Full Cancellation Note
  110. type CancellationNote {
  111. cancellationId: String @unique
  112. cancellationStatus: Int
  113. cancellationDate: String
  114. cancellationReason: String
  115. # Author user
  116. author: User
  117. patient: Patient
  118. }
  119. ############################################## Query Progress Notes ##########################################
  120. # A Full Progress Note
  121. type ProgressNote {
  122. ProgressNoteId: String @unique
  123. ProgressNoteStatus: Int
  124. ProgressNoteDate: String
  125. ProgressNoteStartDate: String
  126. ProgressNoteEndDate: String
  127. ProgressNoteCancellations: String
  128. ProgressNoteSubjective: String
  129. ProgressNoteObjective: String
  130. ProgressNotePlan: String
  131. ProgressNoteReviewerUserId: String
  132. ProgressNoteGoals: [DailyNoteGoal]
  133. author: User @relation(name: "ProgressNoteToAuthor")
  134. reviewer: User @relation(name: "ProgressNoteToReviewer")
  135. patient: Patient
  136. }
  137. # A Full Progress Note
  138. type ProgressNoteDateRange {
  139. patientId: String
  140. ProgressNoteId: String
  141. compiledCancellationForDateRange: String
  142. compiledSubjectiveForDateRange: String
  143. compiledObjectiveForDateRange: String
  144. compiledGoalsForDateRange: [DailyNoteGoal]
  145. compiledPlanForDateRange: String
  146. patient: Patient
  147. }
  148. ############################################## Query Evaluation Notes ##########################################
  149. # An initial evaluation
  150. type Evaluation {
  151. evaluationUuid: ID @unique
  152. evaluationDate: String
  153. evaluationStartTime: String
  154. evaluationEndTime: String
  155. evaluationSchema: String
  156. evaluationResults: String
  157. evaluationStatus: Int
  158. evaluationReviewerComments: String
  159. evaluationFinalLocation: String
  160. goals: [Goal]
  161. author: User @relation(name: "EvaluationToAuthor")
  162. reviewer: User @relation(name: "EvaluationToReviewer")
  163. patient: Patient
  164. }
  165. # An initial evaluation
  166. type EvaluationTemplate {
  167. evaluationTemplateUuid: ID @unique
  168. evaluationTemplateLabel: String
  169. evaluationTemplateSchema: String
  170. author: User
  171. }
Add Comment
Please, Sign In to add comment