Created
June 18, 2020 18:32
-
-
Save azanli/cb6e4966f18863647c91704f4378a57d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @flow */ | |
/** All built-in and custom scalars, mapped to their actual values */ | |
export type Scalars = {| | |
ID: string, | |
String: string, | |
Boolean: boolean, | |
Int: number, | |
Float: number, | |
/** Enum that specifies where the ClinicalProcedure came from */ | |
ClinicalProcedureSourceType: any, | |
/** The value of a Clinical Result Range */ | |
ClinicalResultRangeValue: any, | |
/** The value of a Clinical Result */ | |
ClinicalResultValue: any, | |
/** A date time in "YYYY-MM-DD'T'HH:MM:SSZ" format (assumes UTC timezone) or since Epoch in milliseconds */ | |
Instant: any, | |
/** A local date in "YYYY-MM-DD" format (assumes UTC timezone) */ | |
LocalDate: any, | |
/** A local date time in "YYYY-MM-DD'T'HH:MM:SS" format (converts to UTC timezone) */ | |
LocalDateTime: any, | |
/** A phone number in the United States */ | |
PhoneNumber: any, | |
/** A fully qualified URL */ | |
Url: any, | |
/** A zip code in the United States */ | |
ZipCode: any, | |
|}; | |
/** Historical data about use of Rally products and features */ | |
export type ActivityProfile = {| | |
__typename?: 'ActivityProfile', | |
/** When the individual has last activity on Engage Mobile aka Rally Mobile */ | |
lastActivityEngageApp?: ?TimestampInference, | |
/** When the individual completed a search on FPC for Urgent */ | |
searchUrgentCare?: ?TimestampInference, | |
/** When the individual completed a search on FPC for Mental Health Care */ | |
searchBehavioralHealthCare?: ?TimestampInference, | |
|}; | |
/** Data Representation of a typical United States Address */ | |
export type AddressUsa = {| | |
__typename?: 'AddressUSA', | |
street: $ElementType<Scalars, 'String'>, | |
city: $ElementType<Scalars, 'String'>, | |
state: $ElementType<Scalars, 'String'>, | |
zip: $ElementType<Scalars, 'ZipCode'>, | |
|}; | |
/** Information about the Individual's active and inactive allergies */ | |
export type Allergy = {| | |
__typename?: 'Allergy', | |
/** Object ID of the record stored in Health Vault */ | |
externalRefId?: ?$ElementType<Scalars, 'String'>, | |
/** Object ID and source of the record stored in Health Vault */ | |
ref: Ref, | |
/** Whether the user has requested that this record should be hidden on the UI */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** The specific allergen (ex: 'Peanut') */ | |
name?: ?AllergySourceVocabTerm, | |
/** Whether the allergy is active or not */ | |
status?: ?$ElementType<Scalars, 'String'>, | |
/** The severity of the the reaction (ex: 'Severe') */ | |
severity?: ?SourceVocabTerm, | |
/** The Individual's reaction to the allergen (ex: 'Anaphylaxis') */ | |
reaction?: ?AllergyReaction, | |
/** When the allergy was last updated in YYYY-MM-DD'T'HH:MM:SS format */ | |
updatedDate?: ?$ElementType<Scalars, 'LocalDateTime'>, | |
/** while it is not a 'type' it is actually a more verbose definition of the allergy */ | |
adverseReactionType?: ?$ElementType<Scalars, 'String'>, | |
/** The individual's reaction to the record (ex: 'Confusing', 'Inaccurate, 'Correct') */ | |
userReaction?: ?Reaction, | |
/** The individual's feedback to the record containing Reaction, Comment and Additional Details */ | |
userFeedback?: ?UserFeedback, | |
/** Describes the present state of the person's event. */ | |
presenceStateTerm?: ?$ElementType<Scalars, 'String'>, | |
/** Array of sensitivity classes assigned to this item. Empty array when none apply. */ | |
sensitivityClasses: Array<$ElementType<Scalars, 'String'>>, | |
/** A textual description of the data acquisition method. */ | |
dataSources: Array<$ElementType<Scalars, 'String'>>, | |
|}; | |
/** Source Vocab Term that describes the Individual's reaction to the allergen (ex: 'Anaphylaxis') */ | |
export type AllergyReaction = {| | |
__typename?: 'AllergyReaction', | |
/** IHR Term for the reaction */ | |
term?: ?$ElementType<Scalars, 'String'>, | |
/** A textual description of a high-level category for the adverse reaction. */ | |
description: $ElementType<Scalars, 'String'>, | |
/** The most recent source vocab. that added/updated the reaction */ | |
vocabSource?: ?$ElementType<Scalars, 'String'>, | |
/** The most recent source vocab code that represents the reaction */ | |
vocabCode?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** The specific health term and what health code is it attached to */ | |
export type AllergySourceVocabTerm = {| | |
__typename?: 'AllergySourceVocabTerm', | |
/** The actual text of the term itself (ex: 'Lung Disease', 'Ibuprofen', etc.) */ | |
term: $ElementType<Scalars, 'String'>, | |
/** The coding standard or set we're using for this term (ex: 'ICD', 'CPT', 'HCPCS', etc.) */ | |
vocabSource?: ?$ElementType<Scalars, 'String'>, | |
/** The actual code within this set that represents the term (ex: 'A01.01') */ | |
vocabCode?: ?$ElementType<Scalars, 'String'>, | |
/** A consumer-friendly textual description of the immunization. (ex. 'Immunization Given') */ | |
laymanTerm?: ?$ElementType<Scalars, 'String'>, | |
/** icd10cmCode */ | |
icd10cmCode?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** The data associated with an Applicability Fact */ | |
export type ApplicabilityFact = {| | |
__typename?: 'ApplicabilityFact', | |
/** probability */ | |
probability: $ElementType<Scalars, 'Float'>, | |
/** threshold */ | |
threshold: $ElementType<Scalars, 'Float'>, | |
/** true/false/NA */ | |
available?: ?$ElementType<Scalars, 'Boolean'>, | |
/** Integer model identifier */ | |
factModelId: $ElementType<Scalars, 'Int'>, | |
/** Name for the fact model */ | |
factModelName: $ElementType<Scalars, 'String'>, | |
/** Model Version (free form) */ | |
factModelVersion: $ElementType<Scalars, 'String'>, | |
|}; | |
/** Facts and features derived from Machine Learning */ | |
export type ApplicabilityFactProfile = {| | |
__typename?: 'ApplicabilityFactProfile', | |
facts: Array<ApplicabilityFact>, | |
|}; | |
/** An inference described with a boolean value */ | |
export type BooleanInference = {| | |
__typename?: 'BooleanInference', | |
/** The value of the inference */ | |
value: $ElementType<Scalars, 'Boolean'>, | |
/** When the inference was originally computed */ | |
computedAt: $ElementType<Scalars, 'Instant'>, | |
/** The external source of the data */ | |
source: $ElementType<Scalars, 'String'>, | |
|}; | |
/** Defines the person / entity to which the individual is related */ | |
export type CareTeamMember = {| | |
__typename?: 'CareTeamMember', | |
/** Object ID of the record stored in Health Vault */ | |
externalRefId?: ?$ElementType<Scalars, 'String'>, | |
/** Object ID and source of the record stored in Health Vault */ | |
ref: Ref, | |
/** Whether the user has requested that this record should be hidden on the UI */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** Name of the person / entity related to the individual */ | |
name: $ElementType<Scalars, 'String'>, | |
/** | |
* A textual description of the role the person / entity plays in relation to the individual | |
* (ex: Insurer, Health Proxy, Primary Care Physician) | |
*/ | |
role: $ElementType<Scalars, 'String'>, | |
/** Description of the role the Individual plays in the relationship (ex: 'Member', 'Patient', etc.) */ | |
relationship: $ElementType<Scalars, 'String'>, | |
/** List of addresses of the person / entity */ | |
addresses: Array<AddressUsa>, | |
/** Phone number of the person / entity */ | |
phoneNumber?: ?$ElementType<Scalars, 'PhoneNumber'>, | |
/** Date that the relationship became effective in YYYY/MM/DD format */ | |
startDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** Date that the relationship ended or will end in YYYY/MM/DD format */ | |
endDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The individual's reaction to the record (ex: 'Confusing', 'Inaccurate, 'Correct') */ | |
userReaction?: ?Reaction, | |
/** The individual's feedback to the record containing Reaction, Comment and Additional Details */ | |
userFeedback?: ?UserFeedback, | |
/** The provider's prefix (title) */ | |
prefix?: ?$ElementType<Scalars, 'String'>, | |
/** The provider's first name */ | |
firstName?: ?$ElementType<Scalars, 'String'>, | |
/** The provider’s middle name (or initial), if available */ | |
middleName?: ?$ElementType<Scalars, 'String'>, | |
/** The provider's last name */ | |
lastName?: ?$ElementType<Scalars, 'String'>, | |
/** Defines the person / entity to which the individual is related. */ | |
relatedEntityName?: ?$ElementType<Scalars, 'String'>, | |
/** A National Provider Identifier or NPI is a unique 10-digit identification number issued to healthcare providers in the United States by the Centers for Medicare and Medicaid Services (CMS). */ | |
relatedEntityNPInum?: ?$ElementType<Scalars, 'String'>, | |
/** United assigned unique identifier. */ | |
relatedEntityMPIN?: ?$ElementType<Scalars, 'String'>, | |
/** A textual description of the role the individual plays in a relationship to the individual,such as Insurer, Health Proxy, Primary Care Physician, etc. */ | |
relatedEntityRoleTerm?: ?$ElementType<Scalars, 'String'>, | |
/** A textual description of the occupation of the person. One of potentially many occupations for the provider. */ | |
occupations: Array<ClinicalOccupations>, | |
/** A textual description of the occupation of the person. One of potentially many occupations for the provider. */ | |
occupation: Array<CareTeamMemberOccupations>, | |
/** A textual description of the data acquisition method. */ | |
dataSources: Array<$ElementType<Scalars, 'String'>>, | |
|}; | |
/** Concept and Specialties of a care team member */ | |
export type CareTeamMemberOccupations = {| | |
__typename?: 'CareTeamMemberOccupations', | |
/** A textual description of the occupation of the person. One of potentially many occupations for the provider. */ | |
concept: SourceVocabTermWithId, | |
/** A textual description of the specialty of the occupation. */ | |
specialties: Array<SourceVocabTermWithId>, | |
|}; | |
/** Information about Conditions or ailments of the Individual. */ | |
export type ClinicalCondition = {| | |
__typename?: 'ClinicalCondition', | |
/** Object ID of the record stored in Health Vault */ | |
externalRefId?: ?$ElementType<Scalars, 'String'>, | |
/** Object ID and source of the record stored in Health Vault */ | |
ref: Ref, | |
/** Whether the user has requested that this record should be hidden on the UI */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** Description of the Individual's condition */ | |
name: SourceVocabTerm, | |
/** Earliest known date of the condition in YYYY/MM/DD format */ | |
startDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The date the condition was first reported in YYYY/MM/DD format */ | |
onsetDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** Current State of the Individual's condition or illness */ | |
status: SourceVocabTerm, | |
/** Whether this condition is currently active */ | |
active: $ElementType<Scalars, 'Boolean'>, | |
/** When the condition was last updated in YYYY/MM/DD format */ | |
updatedDate: $ElementType<Scalars, 'LocalDate'>, | |
/** Abstract of the condition based on Healthwise data */ | |
description?: ?$ElementType<Scalars, 'String'>, | |
/** The individual's reaction to the record (ex: 'Confusing', 'Inaccurate, 'Correct') */ | |
userReaction?: ?Reaction, | |
/** The individual's feedback to the record containing Reaction, Comment and Additional Details */ | |
userFeedback?: ?UserFeedback, | |
/** clinically relevant date that can be used as a base for determining what data to include in a query that limits data by time in the format yyyy-MM-ddTHH:mm:ssZ (UTC time). */ | |
clinicallyRelevantDate?: ?$ElementType<Scalars, 'Instant'>, | |
/** Array of sensitivity classes assigned to this item. Empty array when none apply. */ | |
sensitivityClasses: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of object ids of related health conditions. Empty array when none apply. */ | |
relatedConditionIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of object ids of related health observations. Empty array when none apply. */ | |
relatedObservationIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of roles of related care team. Empty array when none apply. */ | |
relatedCareTeamRoleIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of object ids of related care team. Empty array when none apply. */ | |
relatedCareTeamIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of object ids of related care team. Empty array when none apply. */ | |
sourceClaimIds: Array<$ElementType<Scalars, 'String'>>, | |
/** A textual description of the data acquisition method. */ | |
dataSources: Array<$ElementType<Scalars, 'String'>>, | |
|}; | |
export type ClinicalMutation = {| | |
__typename?: 'ClinicalMutation', | |
/** Create a Data Inaccuracy Report to specify issues with the individual's data */ | |
createSpecificDataInaccuracyReport: DataInaccuracyReportType, | |
/** Create a Data Inaccuracy Report to general issues with the individual's data */ | |
createGeneralDataInaccuracyReport: DataInaccuracyReportType, | |
/** Hide an specific line-item */ | |
updateFeedback: $ElementType<Scalars, 'Boolean'>, | |
|}; | |
export type ClinicalMutationCreateSpecificDataInaccuracyReportArgs = {| | |
report: SpecificDataInaccuracyReportInputType, | |
|}; | |
export type ClinicalMutationCreateGeneralDataInaccuracyReportArgs = {| | |
report: GeneralDataInaccuracyReportInputType, | |
|}; | |
export type ClinicalMutationUpdateFeedbackArgs = {| | |
rallyId?: ?$ElementType<Scalars, 'String'>, | |
ref: RefInput, | |
shouldHide: $ElementType<Scalars, 'Boolean'>, | |
|}; | |
/** Concept and Specialties of a care team member */ | |
export type ClinicalOccupations = {| | |
__typename?: 'ClinicalOccupations', | |
/** A textual description of the occupation of the person. One of potentially many occupations for the provider. */ | |
concept: SourceVocabTermWithId, | |
/** A textual description of the specialty of the occupation. */ | |
specialties: Array<SourceVocabTermWithId>, | |
|}; | |
/** Contains past and current health information about the individual */ | |
export type ClinicalProfile = {| | |
__typename?: 'ClinicalProfile', | |
allergies: Array<Allergy>, | |
careteam: Array<CareTeamMember>, | |
conditions: Array<ClinicalCondition>, | |
immunizations: Array<Immunization>, | |
prescriptions: Array<Prescribed>, | |
procedures: Array<Procedure>, | |
results: Array<Result>, | |
visits: Array<Visit>, | |
serviceProviders: Array<ServiceProvider>, | |
|}; | |
/** Contains past and current health information about the individual */ | |
export type ClinicalProfileAllergiesArgs = {| | |
order?: ?OrderingInputType, | |
|}; | |
/** Contains past and current health information about the individual */ | |
export type ClinicalProfileCareteamArgs = {| | |
order?: ?OrderingInputType, | |
|}; | |
/** Contains past and current health information about the individual */ | |
export type ClinicalProfileConditionsArgs = {| | |
order?: ?OrderingInputType, | |
|}; | |
/** Contains past and current health information about the individual */ | |
export type ClinicalProfileImmunizationsArgs = {| | |
order?: ?OrderingInputType, | |
|}; | |
/** Contains past and current health information about the individual */ | |
export type ClinicalProfilePrescriptionsArgs = {| | |
order?: ?OrderingInputType, | |
|}; | |
/** Contains past and current health information about the individual */ | |
export type ClinicalProfileProceduresArgs = {| | |
order?: ?OrderingInputType, | |
|}; | |
/** Contains past and current health information about the individual */ | |
export type ClinicalProfileResultsArgs = {| | |
order?: ?OrderingInputType, | |
filter?: ?ResultFilter, | |
|}; | |
/** Contains past and current health information about the individual */ | |
export type ClinicalProfileVisitsArgs = {| | |
order?: ?OrderingInputType, | |
|}; | |
/** clinical result value filter */ | |
export type ClinicalResultValueFilter = {| | |
/** filter greater by value */ | |
gt?: ?$ElementType<Scalars, 'ClinicalResultValue'>, | |
/** filter less by value */ | |
lt?: ?$ElementType<Scalars, 'ClinicalResultValue'>, | |
/** filter equal value to */ | |
eq?: ?$ElementType<Scalars, 'ClinicalResultValue'>, | |
|}; | |
export const ClinicalTypeValues = Object.freeze({ | |
Allergy: 'Allergy', | |
CareTeam: 'CareTeam', | |
Condition: 'Condition', | |
Immunization: 'Immunization', | |
Prescription: 'Prescription', | |
Procedure: 'Procedure', | |
Result: 'Result', | |
Visit: 'Visit', | |
}); | |
/** Enum detailing what kind of clinical type is having with their data */ | |
export type ClinicalType = $Values<typeof ClinicalTypeValues>; | |
/** Information detailing what problems the individual is having with their data */ | |
export type DataInaccuracyReportType = {| | |
/** Identifier of the individual who is experiencing the issue */ | |
rallyId: $ElementType<Scalars, 'String'>, | |
/** The date and time the report was submitted by the individual in YYYY-MM-DD'T'HH:MM:SS format */ | |
reportedOn: $ElementType<Scalars, 'LocalDateTime'>, | |
/** The date and time the report was submitted to optum in YYYY-MM-DD'T'HH:MM:SS format */ | |
submittedOn?: ?$ElementType<Scalars, 'LocalDateTime'>, | |
|}; | |
/** date filter */ | |
export type DateFilter = {| | |
/** greater then filter date type */ | |
gt?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** less then filter date type */ | |
lt?: ?$ElementType<Scalars, 'LocalDate'>, | |
|}; | |
/** The root of all default inference types */ | |
export type DefaultInferencesRoot = {| | |
__typename?: 'DefaultInferencesRoot', | |
/** The schema for the probability to engage default inference */ | |
probabilityToEngage?: ?ProbabilityToEngageDefaultInference, | |
|}; | |
/** Finer-grained data about the individual's eligibility for specific products and features */ | |
export type EligibilityProfile = {| | |
__typename?: 'EligibilityProfile', | |
/** Whether the individual is eligible for the cost estimate feature */ | |
hasCostEstimate?: ?BooleanInference, | |
|}; | |
export const ExternalSourceValues = Object.freeze({ | |
Centri: 'Centri', | |
Evisor: 'Evisor', | |
}); | |
/** Enum detailing what kind of external source is having with their data */ | |
export type ExternalSource = $Values<typeof ExternalSourceValues>; | |
export const GenderValues = Object.freeze({ | |
Female: 'Female', | |
Male: 'Male', | |
Other: 'Other', | |
}); | |
/** Enum detailing the Gender of the individual, this is not an exhaustive list of all Genders */ | |
export type Gender = $Values<typeof GenderValues>; | |
/** The information needed to create a general data inaccuracy report */ | |
export type GeneralDataInaccuracyReportInputType = {| | |
/** The rally identifier of the individual who is experiencing an issue with their data */ | |
rallyId?: ?$ElementType<Scalars, 'String'>, | |
/** Email that use report the issue from health vault */ | |
email?: ?$ElementType<Scalars, 'String'>, | |
/** The location the individual found issues with their data (ex: 'Prescriptions', 'Conditions') */ | |
section: ClinicalType, | |
/** Subject of the general data inaccuracy report */ | |
subject: $ElementType<Scalars, 'String'>, | |
/** The detailed information about the individual's specific issue with their data */ | |
body: $ElementType<Scalars, 'String'>, | |
/** If a notification email should be sent to member */ | |
notification?: ?$ElementType<Scalars, 'Boolean'>, | |
/** What kind of issue does this reporting belong to (ex: 'Incorrect Information', 'General Issue') */ | |
questionType?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** This the general data inaccuracy report */ | |
export type GeneralDataInaccuracyReportType = {| | |
...DataInaccuracyReportType, | |
...{| | |
__typename?: 'GeneralDataInaccuracyReportType', | |
/** Email that use report the issue from health vault */ | |
email?: ?$ElementType<Scalars, 'String'>, | |
/** The location the individual found issues with their data (ex: 'Prescriptions', 'Conditions') */ | |
section: ClinicalType, | |
/** Subject of the general data inaccuracy report */ | |
subject: $ElementType<Scalars, 'String'>, | |
/** The detailed information about the individual's specific issue with their data */ | |
body: $ElementType<Scalars, 'String'>, | |
/** If a notification email should be sent to member */ | |
notification: $ElementType<Scalars, 'Boolean'>, | |
/** What kind of issue does this reporting belong to (ex: 'Incorrect Information', 'General Issue') */ | |
questionType?: ?$ElementType<Scalars, 'String'>, | |
/** Identifier of the individual who is experiencing the issue */ | |
rallyId: $ElementType<Scalars, 'String'>, | |
/** The date and time the report was submitted by the individual in YYYY-MM-DD'T'HH:MM:SS format */ | |
reportedOn: $ElementType<Scalars, 'LocalDateTime'>, | |
/** The date and time the report was submitted to optum in YYYY-MM-DD'T'HH:MM:SS format */ | |
submittedOn?: ?$ElementType<Scalars, 'LocalDateTime'>, | |
|}, | |
|}; | |
/** The specific health term and what health code is it attached to */ | |
export type HealthEventSourceVocabTerm = {| | |
__typename?: 'HealthEventSourceVocabTerm', | |
/** The actual text of the term itself (ex: 'Lung Disease', 'Ibuprofen', etc.) */ | |
term: $ElementType<Scalars, 'String'>, | |
/** The coding standard or set we're using for this term (ex: 'ICD', 'CPT', 'HCPCS', etc.) */ | |
vocabSource?: ?$ElementType<Scalars, 'String'>, | |
/** The actual code within this set that represents the term (ex: 'A01.01') */ | |
vocabCode?: ?$ElementType<Scalars, 'String'>, | |
/** A consumer-friendly textual description of the immunization. (ex. 'Immunization Given') */ | |
laymanTerm?: ?$ElementType<Scalars, 'String'>, | |
/** cpthcpcsCode */ | |
cpthcpcsCode?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** Information about any tests/exams or other immunizations performed on the individual */ | |
export type Immunization = {| | |
__typename?: 'Immunization', | |
/** Object ID of the record stored in Health Vault */ | |
externalRefId?: ?$ElementType<Scalars, 'String'>, | |
/** Object ID and source of the record stored in Health Vault */ | |
ref: Ref, | |
/** Whether the user has requested that this record should be hidden on the UI */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** Textual description of the Health Encounter (ex: CBC Panel, Chest X-Ray, Chemo-therapy treatment, or Office Visit) */ | |
name: SourceVocabTerm, | |
/** Date of completion for a health event in YYYY/MM/DD format */ | |
eventDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** Describes the present state of the person's event (ex: PRESENT, PAST, PLANNED OCCURRENCE) */ | |
presenceState?: ?$ElementType<Scalars, 'String'>, | |
/** When this event was last updated in YYYY/MM/DD format */ | |
updatedDate: $ElementType<Scalars, 'LocalDate'>, | |
/** The individual's reaction to the record (ex: 'Confusing', 'Inaccurate, 'Correct') */ | |
userReaction?: ?Reaction, | |
/** The individual's feedback to the record containing Reaction, Comment and Additional Details */ | |
userFeedback?: ?UserFeedback, | |
|}; | |
export type InferenceMutation = {| | |
__typename?: 'InferenceMutation', | |
/** For testing purposes only. This allows the manual creation of ProbabilityToEngage. */ | |
createProbabilityToEngage: ProbabilityToEngageInference, | |
/** For testing purposes only. This allows the manual creation of DefaultProbabilityToEngage. Exactly one global score (score without RecommendationId must be submitted per call. */ | |
createDefaultProbabilityToEngage: ProbabilityToEngageDefaultInference, | |
|}; | |
export type InferenceMutationCreateProbabilityToEngageArgs = {| | |
probabilityToEngage: Array<SimplePropensityToEngageScoreInputType>, | |
|}; | |
export type InferenceMutationCreateDefaultProbabilityToEngageArgs = {| | |
defaultProbabilityToEngage: Array< | |
SimpleDefaultProbabilityToEngageScoreInputType, | |
>, | |
|}; | |
/** The root of all inference types */ | |
export type InferencesRoot = {| | |
__typename?: 'InferencesRoot', | |
/** The inference schema for probability to engage scores per RallyId per recommendation */ | |
probabilityToEngage?: ?ProbabilityToEngageInference, | |
|}; | |
/** Represents a range that has definite bounds of normality. Supports the following formats `<\d+`, `>\d+`, or `\d+~\d+` */ | |
export type LinearRange = {| | |
__typename?: 'LinearRange', | |
/** The start of the range bounds (generally the lower bound) */ | |
start?: ?$ElementType<Scalars, 'ClinicalResultRangeValue'>, | |
/** The end of the range bounds (generally the upper bound) */ | |
end?: ?$ElementType<Scalars, 'ClinicalResultRangeValue'>, | |
/** The absolute minimum of lower bound */ | |
absoluteMin?: ?$ElementType<Scalars, 'ClinicalResultRangeValue'>, | |
/** The absolute maximum of upper bound */ | |
absoluteMax?: ?$ElementType<Scalars, 'ClinicalResultRangeValue'>, | |
|}; | |
/** Information about the prescribed Medical Device */ | |
export type MedicalDevice = {| | |
...Prescribed, | |
...{| | |
__typename?: 'MedicalDevice', | |
/** Object ID of the record stored in Health Vault */ | |
externalRefId?: ?$ElementType<Scalars, 'String'>, | |
/** Object ID and source of the record stored in Health Vault */ | |
ref: Ref, | |
/** The name of the supplier, which can be a pharmacy, hospital, or medical professional */ | |
supplier?: ?$ElementType<Scalars, 'String'>, | |
/** The name of the prescribing provider. */ | |
prescribingProvider?: ?$ElementType<Scalars, 'String'>, | |
/** Description of the medication item (ex: 'wheelchair', 'Simvastatin Oral Tablet 40 MG', etc.) */ | |
medicalDevice?: ?MedicalDeviceSourceVocabTerm, | |
/** clinically relevant date that can be used as a base for determining what data to include in a query that limits data by time in the format yyyy-MM-ddTHH:mm:ssZ (UTC time). */ | |
clinicallyRelevantDate?: ?$ElementType<Scalars, 'Instant'>, | |
/** Array of object ids of related care team. Empty array when none apply. */ | |
relatedCareTeamIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Describes the present state of the person's event. */ | |
presenceStateTerm?: ?$ElementType<Scalars, 'String'>, | |
/** A textual description of the data acquisition method. */ | |
dataSources: Array<$ElementType<Scalars, 'String'>>, | |
/** The individual's feedback to the record containing Reaction, Comment and Additional Details */ | |
userFeedback?: ?UserFeedback, | |
/** Whether the user has requested that this record should be hidden on the UI */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** Description of the Prescribed Item (ex: 'wheelchair', 'Simvastatin Oral Tablet 40 MG', etc.) */ | |
name: SourceVocabTerm, | |
/** The type of the Prescribed item */ | |
type: PrescribedType, | |
/** The current status of the Prescribed Item */ | |
status: SourceVocabTerm, | |
/** Whether the Prescribed Item is still active */ | |
active: $ElementType<Scalars, 'Boolean'>, | |
/** The most recent date the prescription was given to the Individual in YYYY/MM/DD format */ | |
dispensedDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The symptom or circumstance that warrants the need of this prescription (ex: 'High Blood Pressure') */ | |
indication?: ?$ElementType<Scalars, 'String'>, | |
/** The date the prescription was first prescribed to the Individual in YYYY/MM/DD format */ | |
prescribedDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The individual's reaction to the record (ex: 'Confusing', 'Inaccurate, 'Correct') */ | |
userReaction?: ?Reaction, | |
|}, | |
|}; | |
/** The specific health term and what health code is it attached to */ | |
export type MedicalDeviceSourceVocabTerm = {| | |
__typename?: 'MedicalDeviceSourceVocabTerm', | |
/** The actual text of the term itself (ex: 'Lung Disease', 'Ibuprofen', etc.) */ | |
term: $ElementType<Scalars, 'String'>, | |
/** The coding standard or set we're using for this term (ex: 'ICD', 'CPT', 'HCPCS', etc.) */ | |
vocabSource?: ?$ElementType<Scalars, 'String'>, | |
/** The actual code within this set that represents the term (ex: 'A01.01') */ | |
vocabCode?: ?$ElementType<Scalars, 'String'>, | |
/** A consumer-friendly textual description of the immunization. (ex. 'Immunization Given') */ | |
laymanTerm?: ?$ElementType<Scalars, 'String'>, | |
/** cpthcpcsCode */ | |
cpthcpcsCode?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** Information about a Prescribed Medication */ | |
export type Medication = {| | |
...Prescribed, | |
...{| | |
__typename?: 'Medication', | |
/** Object ID of the record stored in Health Vault */ | |
externalRefId?: ?$ElementType<Scalars, 'String'>, | |
/** Object ID and source of the record stored in Health Vault */ | |
ref: Ref, | |
/** The instructions on how the medication is to be taken. */ | |
instructions?: ?$ElementType<Scalars, 'String'>, | |
/** Represents the number of times that a prescription can be refilled. */ | |
refills?: ?$ElementType<Scalars, 'Int'>, | |
/** | |
* The total number of days’ supply of the prescription drug as dispensed by the dispensing agent. | |
* If the prescription is set to last 30 days, the number in this field would be 30 | |
*/ | |
supplyInDays?: ?$ElementType<Scalars, 'Int'>, | |
/** How frequently the medication is to be taken. */ | |
dosageFrequency?: ?$ElementType<Scalars, 'String'>, | |
/** The form this medication takes, such as Tablet or Solution. */ | |
dosageForm?: ?SourceVocabTerm, | |
/** Description of the medication item (ex: 'wheelchair', 'Simvastatin Oral Tablet 40 MG', etc.) */ | |
medication?: ?MedicationSourceVocabTerm, | |
/** The date the medication was first prescribed in the format YYYY/MM/DD. */ | |
medicationStartDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** clinically relevant date that can be used as a base for determining what data to include in a query that limits data by time in the format yyyy-MM-ddTHH:mm:ssZ (UTC time). */ | |
clinicallyRelevantDate?: ?$ElementType<Scalars, 'Instant'>, | |
/** The most recent date this prescription was filled in the format YYYY/MM/DD. */ | |
lastFillDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The date and time of the last update received from the ICUE system in the format 'yyyy-MM-ddTHH:mm:ssZ (UTC time)'. */ | |
icueLastUpdateDate?: ?$ElementType<Scalars, 'Instant'>, | |
/** A textual description of the state of the patient's medication. */ | |
medicationStatus?: ?SourceVocabTerm, | |
/** The total number of days’ supply of the prescription drug as dispensed by the dispensing agent.If the prescription is set to last 30 days. The number in this field would be: 30. */ | |
daysSupply?: ?$ElementType<Scalars, 'Int'>, | |
/** The number of doses of medication taken by the Person at the Dosage Frequency listed below. */ | |
dosageQuantity?: ?$ElementType<Scalars, 'Float'>, | |
/** Represents the number of times that a prescription can be refilled. */ | |
refillAuthorizedNumber?: ?$ElementType<Scalars, 'Int'>, | |
/** A symptom or particular circumstance that indicates the advisability or necessity of aspecific medication. */ | |
indicationText?: ?$ElementType<Scalars, 'String'>, | |
/** The instructions on how the medication is to be taken. */ | |
adminInstructions?: ?$ElementType<Scalars, 'String'>, | |
/** The date this prescription id expected to be filled in the format YYYY/MM/DD. */ | |
expectedFillDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The last date of this medication's update in the format YYYY/MM/DDTHH:mm:ssZ. */ | |
lastUpdateDate?: ?$ElementType<Scalars, 'LocalDateTime'>, | |
/** Describes the present state of the person's event. */ | |
presenceStateTerm?: ?$ElementType<Scalars, 'String'>, | |
/** Array of sensitivity classes assigned to this item. Empty array when none apply. */ | |
sensitivityClasses: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of object ids of related health conditions. Empty array when none apply. */ | |
relatedConditionsIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of object ids of related health devices. Empty array when none apply. */ | |
relatedDevicesIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of object ids of related care team. Empty array when none apply. */ | |
relatedCareTeamIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of roles of related care team. Empty array when none apply. type: array */ | |
relatedCareTeamRoles?: ?Array<$ElementType<Scalars, 'String'>>, | |
/** Array of object ids of related service providers. Empty array when none apply. */ | |
relatedServiceProvidersIds: Array<$ElementType<Scalars, 'String'>>, | |
/** A textual description of the data acquisition method. */ | |
dataSources: Array<$ElementType<Scalars, 'String'>>, | |
/** The individual's feedback to the record containing Reaction, Comment and Additional Details */ | |
userFeedback?: ?UserFeedback, | |
/** Whether the user has requested that this record should be hidden on the UI */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** Description of the Prescribed Item (ex: 'wheelchair', 'Simvastatin Oral Tablet 40 MG', etc.) */ | |
name: SourceVocabTerm, | |
/** The type of the Prescribed item */ | |
type: PrescribedType, | |
/** The current status of the Prescribed Item */ | |
status: SourceVocabTerm, | |
/** Whether the Prescribed Item is still active */ | |
active: $ElementType<Scalars, 'Boolean'>, | |
/** The most recent date the prescription was given to the Individual in YYYY/MM/DD format */ | |
dispensedDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The symptom or circumstance that warrants the need of this prescription (ex: 'High Blood Pressure') */ | |
indication?: ?$ElementType<Scalars, 'String'>, | |
/** The date the prescription was first prescribed to the Individual in YYYY/MM/DD format */ | |
prescribedDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The individual's reaction to the record (ex: 'Confusing', 'Inaccurate, 'Correct') */ | |
userReaction?: ?Reaction, | |
|}, | |
|}; | |
/** The specific health term and what health code is it attached to */ | |
export type MedicationSourceVocabTerm = {| | |
__typename?: 'MedicationSourceVocabTerm', | |
/** The actual text of the term itself (ex: 'Lung Disease', 'Ibuprofen', etc.) */ | |
term: $ElementType<Scalars, 'String'>, | |
/** The coding standard or set we're using for this term (ex: 'ICD', 'CPT', 'HCPCS', etc.) */ | |
vocabSource?: ?$ElementType<Scalars, 'String'>, | |
/** The actual code within this set that represents the term (ex: 'A01.01') */ | |
vocabCode?: ?$ElementType<Scalars, 'String'>, | |
/** A consumer-friendly textual description of the immunization. (ex. 'Immunization Given') */ | |
laymanTerm?: ?$ElementType<Scalars, 'String'>, | |
/** fdbCode */ | |
fdbCode?: ?$ElementType<Scalars, 'String'>, | |
/** fdbCodeType */ | |
fdbCodeType?: ?$ElementType<Scalars, 'String'>, | |
/** rxNormCode */ | |
rxNormCode?: ?$ElementType<Scalars, 'String'>, | |
/** mediSpanCode */ | |
mediSpanCode?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** Information about the data science model used to compute the inferred value */ | |
export type ModelData = {| | |
__typename?: 'ModelData', | |
/** Unique readable name for a data science model */ | |
id: $ElementType<Scalars, 'Int'>, | |
/** Unique integer identifier for a data science model */ | |
name: $ElementType<Scalars, 'String'>, | |
/** The version of the data science model */ | |
version: $ElementType<Scalars, 'String'>, | |
|}; | |
export type Mutation = {| | |
__typename?: 'Mutation', | |
clinical: ClinicalMutation, | |
inference: InferenceMutation, | |
/** Create a Data Inaccuracy Report to specify issues with the individual's data */ | |
createSpecificDataInaccuracyReport: DataInaccuracyReportType, | |
/** Create a Data Inaccuracy Report to general issues with the individual's data */ | |
createGeneralDataInaccuracyReport: DataInaccuracyReportType, | |
/** Hide an specific line-item */ | |
updateFeedback: $ElementType<Scalars, 'Boolean'>, | |
/** For testing purposes only. This allows the manual creation of ProbabilityToEngage. */ | |
createProbabilityToEngage: ProbabilityToEngageInference, | |
/** For testing purposes only. This allows the manual creation of DefaultProbabilityToEngage. Exactly one global score (score without RecommendationId must be submitted per call. */ | |
createDefaultProbabilityToEngage: ProbabilityToEngageDefaultInference, | |
|}; | |
export type MutationCreateSpecificDataInaccuracyReportArgs = {| | |
report: SpecificDataInaccuracyReportInputType, | |
|}; | |
export type MutationCreateGeneralDataInaccuracyReportArgs = {| | |
report: GeneralDataInaccuracyReportInputType, | |
|}; | |
export type MutationUpdateFeedbackArgs = {| | |
rallyId?: ?$ElementType<Scalars, 'String'>, | |
ref: RefInput, | |
shouldHide: $ElementType<Scalars, 'Boolean'>, | |
|}; | |
export type MutationCreateProbabilityToEngageArgs = {| | |
probabilityToEngage: Array<SimplePropensityToEngageScoreInputType>, | |
|}; | |
export type MutationCreateDefaultProbabilityToEngageArgs = {| | |
defaultProbabilityToEngage: Array< | |
SimpleDefaultProbabilityToEngageScoreInputType, | |
>, | |
|}; | |
/** optional string filter */ | |
export type OptionalStringFilterType = {| | |
/** filter if the string empty or not */ | |
isEmpty?: ?$ElementType<Scalars, 'Boolean'>, | |
/** string that is going to filter */ | |
eq?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** Information detailing what information to use when ordering how it should be ordered */ | |
export type OrderByInputType = {| | |
/** What field we're using for ordering */ | |
field: $ElementType<Scalars, 'String'>, | |
/** How should the field be ordered. Either 'Ascending' or 'Descending' */ | |
orderType?: ?SortType, | |
|}; | |
/** Information detailing what information to use when ordering how it should be ordered and limited */ | |
export type OrderingInputType = {| | |
/** How to order the fields */ | |
orderBy?: ?OrderByInputType, | |
limit?: ?$ElementType<Scalars, 'Int'>, | |
offset?: ?$ElementType<Scalars, 'Int'>, | |
|}; | |
/** The personal section of the profile for a user (contains lots of PII). */ | |
export type PersonalProfile = {| | |
__typename?: 'PersonalProfile', | |
/** The first name of the user. */ | |
firstName?: ?$ElementType<Scalars, 'String'>, | |
/** The last name of the user. */ | |
lastName?: ?$ElementType<Scalars, 'String'>, | |
/** All significant names of the user (including first and last) concatenated into a single full name. */ | |
fullName?: ?$ElementType<Scalars, 'String'>, | |
/** Date of birth of the person in the format YYYY/MM/DD */ | |
dateOfBirth?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** Gender of the person */ | |
gender?: ?Gender, | |
/** The individual's displayed online name */ | |
email: Array<$ElementType<Scalars, 'String'>>, | |
/** The individual's search id for optum */ | |
searchId?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** Common Information about medical items that are prescribed to the Individual (ex: Medications, Medical Devices, etc.) */ | |
export type Prescribed = {| | |
/** Whether the user has requested that this record should be hidden on the UI */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** Description of the Prescribed Item (ex: 'wheelchair', 'Simvastatin Oral Tablet 40 MG', etc.) */ | |
name: SourceVocabTerm, | |
/** The type of the Prescribed item */ | |
type: PrescribedType, | |
/** The current status of the Prescribed Item */ | |
status: SourceVocabTerm, | |
/** Whether the Prescribed Item is still active */ | |
active: $ElementType<Scalars, 'Boolean'>, | |
/** The most recent date the prescription was given to the Individual in YYYY/MM/DD format */ | |
dispensedDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The symptom or circumstance that warrants the need of this prescription (ex: 'High Blood Pressure') */ | |
indication?: ?$ElementType<Scalars, 'String'>, | |
/** The date the prescription was first prescribed to the Individual in YYYY/MM/DD format */ | |
prescribedDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The individual's reaction to the record (ex: 'Confusing', 'Inaccurate, 'Correct') */ | |
userReaction?: ?Reaction, | |
|}; | |
export const PrescribedTypeValues = Object.freeze({ | |
Medication: 'Medication', | |
MedicalDevice: 'MedicalDevice', | |
}); | |
/** The type name of the prescription. NOTE: You can also match on the type in GraphQL queries. This is just for convenience. */ | |
export type PrescribedType = $Values<typeof PrescribedTypeValues>; | |
/** The inference schema for probability to engage scores per RallyId per recommendation */ | |
export type ProbabilityToEngageDefaultInference = {| | |
...TypelessGenericDefaultInference, | |
...{| | |
__typename?: 'ProbabilityToEngageDefaultInference', | |
/** List of default probability scores for known recommendation ids */ | |
known: Array<ProbabilityToEngageScore>, | |
/** The default probability score for unknown recommendation ids */ | |
unknown: UnknownProbabilityToEngageScore, | |
/** The unique primary key identifier for the default inference */ | |
id: $ElementType<Scalars, 'String'>, | |
/** When the default inference first became visible from this API */ | |
availableAt: $ElementType<Scalars, 'Instant'>, | |
|}, | |
|}; | |
/** All probability to engage scores associated with a user */ | |
export type ProbabilityToEngageInference = {| | |
...TypelessGenericInference, | |
...{| | |
__typename?: 'ProbabilityToEngageInference', | |
/** When the inference first became visible from this API */ | |
scores: Array<ProbabilityToEngageScore>, | |
/** The unique primary key identifier for the inference */ | |
id: $ElementType<Scalars, 'String'>, | |
/** When the inference first became visible from this API */ | |
availableAt: $ElementType<Scalars, 'Instant'>, | |
|}, | |
|}; | |
/** A single probability score for the likelihood of engaging with an associated recommendation */ | |
export type ProbabilityToEngageScore = {| | |
__typename?: 'ProbabilityToEngageScore', | |
/** When the probability score was calculated by the data science team */ | |
computedAt: $ElementType<Scalars, 'Instant'>, | |
/** The recommendation for which the associated probability score is computed */ | |
recommendationId: $ElementType<Scalars, 'String'>, | |
/** A model score for the user's probability to engage with the associated recommendation */ | |
probability: $ElementType<Scalars, 'Float'>, | |
/** The data science model used to calculate the probability score */ | |
model: ModelData, | |
/** The source of the probability to engage. */ | |
source: $ElementType<Scalars, 'String'>, | |
|}; | |
/** Information about any tests/exams or other procedures performed on the individual */ | |
export type Procedure = {| | |
__typename?: 'Procedure', | |
/** Object ID of the record stored in Health Vault */ | |
externalRefId?: ?$ElementType<Scalars, 'String'>, | |
/** Object ID and source of the record stored in Health Vault */ | |
ref: Ref, | |
/** Whether the user has requested that this record should be hidden on the UI */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** Textual description of the Health Encounter (ex: CBC Panel, Chest X-Ray, Chemo-therapy treatment, or Office Visit) */ | |
name: HealthEventSourceVocabTerm, | |
/** Define the type of service that was performed (ex: Visit, Order, Immunization, Test/Exam, Treatment/Therapy) */ | |
eventType?: ?$ElementType<Scalars, 'String'>, | |
/** Date of completion for a health event in YYYY/MM/DD format */ | |
eventDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** Date that a clinical order was placed in YYYY/MM/DD format */ | |
orderDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** Represents the state of the Health Event (ex: Completed) */ | |
eventStatus?: ?$ElementType<Scalars, 'String'>, | |
/** Describes the present state of the person's event (ex: PRESENT, PAST, PLANNED OCCURANCE) */ | |
procedureStatus?: ?$ElementType<Scalars, 'String'>, | |
/** When this event was last updated in YYYY/MM/DD format */ | |
updatedDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The individual's reaction to the record (ex: 'Confusing', 'Inaccurate, 'Correct') */ | |
userReaction?: ?Reaction, | |
/** The individual's feedback to the record containing Reaction, Comment and Additional Details */ | |
userFeedback?: ?UserFeedback, | |
/** Enum that specifies where the Procedure Data came from (testAndExam or procedure) */ | |
source?: ?$ElementType<Scalars, 'ClinicalProcedureSourceType'>, | |
/** Identifies the material used in testing, examination, or study (ex: blood, urine, stool sample) */ | |
specimen?: ?SourceVocabTerm, | |
/** clinically relevant date that can be used as a base for determining what data to include in a query that limits data by time in the format yyyy-MM-ddTHH:mm:ssZ (UTC time). */ | |
clinicallyRelevantDate?: ?$ElementType<Scalars, 'Instant'>, | |
/** Identifies the material used in testing, examination, or study (ex: blood, urine, stool sample) */ | |
specimens: Array<SourceVocabTerm>, | |
/** Sensitivity classes assigned to this item. Empty array when none apply. */ | |
sensitivityClasses: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of object ids of related health conditions. Empty array when none apply. */ | |
relatedConditionIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of health condition objects. Empty array when none apply. */ | |
relatedConditions: Array<ClinicalCondition>, | |
/** Array of object ids of related care team. Empty array when none apply. */ | |
relatedCareTeamIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of care team objects. Empty array when none apply. */ | |
relatedCareTeam: Array<CareTeamMember>, | |
/** Array of sensitivity classes assigned to this item. Empty array when none apply. */ | |
relatedObservationIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of observation object */ | |
relatedObservations: Array<Result>, | |
/** Array of object ids of related service providers. Empty array when none apply. */ | |
relatedServiceProviderIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of service provider objects */ | |
relatedServiceProvider: Array<ServiceProvider>, | |
/** Array of object ids of related care team. Empty array when none apply. */ | |
sourceClaimIds: Array<$ElementType<Scalars, 'String'>>, | |
/** A textual description of the data acquisition method. */ | |
dataSources: Array<$ElementType<Scalars, 'String'>>, | |
/** Abstract of the procedure based on Healthwise data */ | |
description?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** Collection of Information related to the Individual */ | |
export type Profile = {| | |
__typename?: 'Profile', | |
/** Applicability Facts for users */ | |
applicabilityFact: ApplicabilityFactProfile, | |
/** Historical data about use of Rally products and features */ | |
activity: ActivityProfile, | |
/** Online account information about the user */ | |
social?: ?SocialProfile, | |
/** Health and medical information about the user */ | |
clinical: ClinicalProfile, | |
/** Eligibility information about Rally products */ | |
eligibility: EligibilityProfile, | |
/** Personal and identity information about the user (contains PII) */ | |
personal: PersonalProfile, | |
/** Find inferences for a given rallyId, grouped by type */ | |
inferences: InferencesRoot, | |
|}; | |
export type Query = {| | |
__typename?: 'Query', | |
/** Find a single profile by a given rallyId (or null for currently authenticated user) */ | |
profile?: ?Profile, | |
/** Find the individual's submissions of data inaccuracy reports */ | |
dataInaccuracyReports: Array<DataInaccuracyReportType>, | |
/** Find inferences for a given rallyId, grouped by type */ | |
inferences: InferencesRoot, | |
/** Find current default values for inferences by type */ | |
defaultInferences: DefaultInferencesRoot, | |
|}; | |
export type QueryProfileArgs = {| | |
rallyId?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
export type QueryDataInaccuracyReportsArgs = {| | |
rallyId?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
export type QueryInferencesArgs = {| | |
rallyId?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
export const ReactionValues = Object.freeze({ | |
Inaccurate: 'Inaccurate', | |
Somewhat: 'Somewhat', | |
Accurate: 'Accurate', | |
Confusing: 'Confusing', | |
Incorrect: 'Incorrect', | |
Correct: 'Correct', | |
Generic: 'Generic', | |
}); | |
/** Enum detailing what kind of issue the individual is having with their data */ | |
export type Reaction = $Values<typeof ReactionValues>; | |
/** A reference used to identify an item */ | |
export type Ref = {| | |
__typename?: 'Ref', | |
/** The unique identifier for the entity that contains this ref */ | |
id: $ElementType<Scalars, 'String'>, | |
/** | |
* The identity provider from which the identifier comes (ex: Rally, PersonId, Centri, etc.) | |
* NOTE: There is no guarantee that an identity is unique across domains | |
*/ | |
domain: $ElementType<Scalars, 'String'>, | |
|}; | |
/** ref filter */ | |
export type RefFilterObjectType = {| | |
/** filter if the string empty or not */ | |
id?: ?$ElementType<Scalars, 'String'>, | |
/** external source that is going to filter */ | |
domain?: ?ExternalSource, | |
|}; | |
/** A reference used to identify an item */ | |
export type RefInput = {| | |
/** The unique identifier for the entity that contains this ref */ | |
externalId: $ElementType<Scalars, 'String'>, | |
/** | |
* The identity provider from which the identifier comes (ex: Rally, PersonId, Centri, etc.) | |
* NOTE: There is no guarantee that an identity is unique across domains | |
*/ | |
source: ExternalSource, | |
|}; | |
/** Information about the results of an Individual's tests and metrics */ | |
export type Result = {| | |
__typename?: 'Result', | |
/** Object ID of the record stored in Health Vault */ | |
externalRefId?: ?$ElementType<Scalars, 'String'>, | |
/** Object ID and source of the record stored in Health Vault */ | |
ref: Ref, | |
/** Whether the user has requested that this record should be hidden on the UI */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** The standard unit of measure */ | |
unitOfMeasure: SourceVocabTerm, | |
/** The type of clinical measurement */ | |
resultType: ResultSourceVocabTerm, | |
/** The observation result (whether normal or not) */ | |
observation: ResultSourceVocabTerm, | |
/** When the observation was made */ | |
observationDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** Summary of the result (maybe with a blurb for more info) */ | |
summary?: ?$ElementType<Scalars, 'String'>, | |
/** Whether the value is normal or abnormal */ | |
withinRange: $ElementType<Scalars, 'Boolean'>, | |
/** The clinical result value */ | |
value: $ElementType<Scalars, 'ClinicalResultValue'>, | |
/** Range of a normal result */ | |
range?: ?ResultRange, | |
/** The abnormal observation result */ | |
abnormalObservation?: ?SourceVocabTerm, | |
/** The individual's reaction to the record (ex: 'Confusing', 'Inaccurate, 'Correct') */ | |
userReaction?: ?Reaction, | |
/** The individual's feedback to the record containing Reaction, Comment and Additional Details */ | |
userFeedback?: ?UserFeedback, | |
/** Array of sensitivity classes assigned to this item. Empty array when none apply. */ | |
sensitivityClasses: Array<$ElementType<Scalars, 'String'>>, | |
/** A textual description of the data acquisition method. */ | |
dataSources: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of observation object */ | |
relatedProcedures: Array<Procedure>, | |
/** Abstract of the result based on Healthwise data */ | |
description?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** result filter */ | |
export type ResultFilter = {| | |
/** filter by ref */ | |
ref?: ?RefFilterObjectType, | |
/** filter by unit Of measure */ | |
unitOfMeasure?: ?OptionalStringFilterType, | |
/** filter by result type */ | |
resultType?: ?OptionalStringFilterType, | |
/** filter by observation */ | |
observation?: ?OptionalStringFilterType, | |
/** filter by observation date */ | |
observationDate?: ?DateFilter, | |
/** filter by discharge date */ | |
dischargeDate?: ?DateFilter, | |
/** filter by summary */ | |
summary?: ?OptionalStringFilterType, | |
/** filter by within range */ | |
withinRange?: ?$ElementType<Scalars, 'Boolean'>, | |
/** filter by status */ | |
value?: ?ClinicalResultValueFilter, | |
/** filter by updated date */ | |
range?: ?$ElementType<Scalars, 'Float'>, | |
|}; | |
/** Represents the bounds of a 'normal' observation range */ | |
export type ResultRange = LinearRange | UnknownRange; | |
/** The specific health term and what health code is it attached to */ | |
export type ResultSourceVocabTerm = {| | |
__typename?: 'ResultSourceVocabTerm', | |
/** The actual text of the term itself (ex: 'Lung Disease', 'Ibuprofen', etc.) */ | |
term: $ElementType<Scalars, 'String'>, | |
/** The coding standard or set we're using for this term (ex: 'ICD', 'CPT', 'HCPCS', etc.) */ | |
vocabSource?: ?$ElementType<Scalars, 'String'>, | |
/** The actual code within this set that represents the term (ex: 'A01.01') */ | |
vocabCode?: ?$ElementType<Scalars, 'String'>, | |
/** A consumer-friendly textual description of a type of measurement. Examples include height, weight, sugar level, blood pressure. */ | |
laymanTerm?: ?$ElementType<Scalars, 'String'>, | |
/** LOINC Observation Foreign Key */ | |
loincCode?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** Information about any tests/exams or other service provider performed on the individual */ | |
export type ServiceProvider = {| | |
__typename?: 'ServiceProvider', | |
/** Object ID of the record stored in Health Vault */ | |
externalRefId?: ?$ElementType<Scalars, 'String'>, | |
/** Object ID and source of the record stored in Health Vault */ | |
ref: Ref, | |
/** Whether the user has requested that this record should be hidden on the UI */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** A textual description of the role the individual plays in a relationship, such as Member, Patient, Contract Holder, etc. */ | |
providerType?: ?$ElementType<Scalars, 'String'>, | |
/** Defines the person / entity to which the individual is related. */ | |
relatedEntityName?: ?$ElementType<Scalars, 'String'>, | |
/** A National Provider Identifier or NPI is a unique 10-digitidentification number issued to health care providers in theUnited States by the Centers for Medicare and Medicaid Services (CMS). */ | |
relatedEntityNPInum?: ?$ElementType<Scalars, 'String'>, | |
/** United assigned unique identifier. */ | |
relatedEntityMPIN?: ?$ElementType<Scalars, 'String'>, | |
/** A textual description of the role the person / entity plays inrelation to the individual, such as Insurer, Health Proxy, Primary Care Physician, etc. */ | |
relatedEntityRoleTerm?: ?$ElementType<Scalars, 'String'>, | |
/** The date the relationship became effective in the format YYYY/MM/DD. */ | |
relationshipStartDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The date the relationship ended or will end in the format YYYY/MM/DD. */ | |
relationshipEndDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** A textual description of the occupation of the person. One of potentially many occupations for the provider. */ | |
occupations: Array<ClinicalOccupations>, | |
|}; | |
/** A single probability score for the likelihood of engaging with an associated recommendation */ | |
export type SimpleDefaultProbabilityToEngageScoreInputType = {| | |
/** When the probability score was calculated by the data science team */ | |
computedAt: $ElementType<Scalars, 'Instant'>, | |
/** Internal name for the batch from data science */ | |
batchName: $ElementType<Scalars, 'String'>, | |
/** Internal version of the batch from data science */ | |
batchNumber: $ElementType<Scalars, 'Int'>, | |
/** Unique integer identifier for a data science model */ | |
modelName: $ElementType<Scalars, 'String'>, | |
/** The version of the data science model */ | |
modelVersion: $ElementType<Scalars, 'String'>, | |
/** The recommendation for which the associated probability score is computed */ | |
recommendationId?: ?$ElementType<Scalars, 'String'>, | |
/** A model score for the user's probability to engage with the associated recommendation */ | |
probability: $ElementType<Scalars, 'Float'>, | |
|}; | |
/** A single probability score for the likelihood of engaging with an associated recommendation */ | |
export type SimplePropensityToEngageScoreInputType = {| | |
/** The rally identifier of the individual who is experiencing an issue with their data */ | |
rallyId: $ElementType<Scalars, 'String'>, | |
/** When the probability score was calculated by the data science team */ | |
computedAt: $ElementType<Scalars, 'Instant'>, | |
/** Internal name for the batch from data science */ | |
batchName: $ElementType<Scalars, 'String'>, | |
/** Internal version of the batch from data science */ | |
batchNumber: $ElementType<Scalars, 'Int'>, | |
/** Unique integer identifier for a data science model */ | |
modelName: $ElementType<Scalars, 'String'>, | |
/** The version of the data science model */ | |
modelVersion: $ElementType<Scalars, 'String'>, | |
/** The recommendation for which the associated probability score is computed */ | |
recommendationId: $ElementType<Scalars, 'String'>, | |
/** A model score for the user's probability to engage with the associated recommendation */ | |
probability: $ElementType<Scalars, 'Float'>, | |
|}; | |
/** The Social section of the profile for the user. Contains information about their online profile */ | |
export type SocialProfile = {| | |
__typename?: 'SocialProfile', | |
/** Url link to the image of the individual's online avatar */ | |
avatar: $ElementType<Scalars, 'Url'>, | |
/** The individual's displayed online name */ | |
displayName: $ElementType<Scalars, 'String'>, | |
|}; | |
export const SortTypeValues = Object.freeze({ | |
Ascending: 'Ascending', | |
Descending: 'Descending', | |
}); | |
/** Enum detailing the direction that the sorting should be done in. */ | |
export type SortType = $Values<typeof SortTypeValues>; | |
/** The specific health term and what health code is it attached to */ | |
export type SourceVocabTerm = {| | |
__typename?: 'SourceVocabTerm', | |
/** The actual text of the term itself (ex: 'Lung Disease', 'Ibuprofen', etc.) */ | |
term: $ElementType<Scalars, 'String'>, | |
/** The coding standard or set we're using for this term (ex: 'ICD', 'CPT', 'HCPCS', etc.) */ | |
vocabSource?: ?$ElementType<Scalars, 'String'>, | |
/** The actual code within this set that represents the term (ex: 'A01.01') */ | |
vocabCode?: ?$ElementType<Scalars, 'String'>, | |
/** A consumer-friendly textual description of the immunization. (ex. 'Immunization Given') */ | |
laymanTerm?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** The specific health term and what health code is it attached to */ | |
export type SourceVocabTermWithId = {| | |
__typename?: 'SourceVocabTermWithId', | |
/** The actual text of the term itself (ex: 'Lung Disease', 'Ibuprofen', etc.) */ | |
term: $ElementType<Scalars, 'String'>, | |
/** The coding standard or set we're using for this term (ex: 'ICD', 'CPT', 'HCPCS', etc.) */ | |
vocabSource?: ?$ElementType<Scalars, 'String'>, | |
/** The actual code within this set that represents the term (ex: 'A01.01') */ | |
vocabCode?: ?$ElementType<Scalars, 'String'>, | |
/** A consumer-friendly textual description of the immunization. (ex. 'Immunization Given') */ | |
laymanTerm?: ?$ElementType<Scalars, 'String'>, | |
/** id */ | |
id?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** The information needed to create a specific data inaccuracy report */ | |
export type SpecificDataInaccuracyReportInputType = {| | |
/** The rally identifier of the individual who is experiencing an issue with their data */ | |
rallyId?: ?$ElementType<Scalars, 'String'>, | |
/** Email that use report the issue from health vault */ | |
email?: ?$ElementType<Scalars, 'String'>, | |
/** The external reference id from line item coming from health vault */ | |
externalRefId?: ?$ElementType<Scalars, 'String'>, | |
/** The external source which define where is the original data coming from */ | |
externalSource?: ?ExternalSource, | |
/** The external reference id from line item coming from health vault */ | |
ref?: ?RefInput, | |
/** The location the individual found issues with their data (ex: 'Prescriptions', 'Conditions') */ | |
collection: ClinicalType, | |
/** What kind of problem is the individual having with their data (ex: 'Confusing', 'Incorrect', 'Generic') */ | |
reaction?: ?Reaction, | |
/** Should data be hidden? */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** Optional comment, helpful to support staff that research the issue */ | |
comment?: ?$ElementType<Scalars, 'String'>, | |
/** The individual's feedback to the record containing Reaction, Comment and Additional Details */ | |
userFeedback: UserFeedbackInput, | |
/** Details about the the record along with UserFeedback (ex: 'ConditionName=diabete') */ | |
recordDetails?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** The data inaccuracy report for specific line item */ | |
export type SpecificDataInaccuracyReportType = {| | |
...DataInaccuracyReportType, | |
...{| | |
__typename?: 'SpecificDataInaccuracyReportType', | |
/** The external reference id from line item coming from health vault */ | |
ref: Ref, | |
/** The external reference id from line item coming from health vault */ | |
externalRefId: $ElementType<Scalars, 'String'>, | |
/** Email that use report the issue from health vault */ | |
email?: ?$ElementType<Scalars, 'String'>, | |
/** The external source which define where is the original data coming from */ | |
externalSource: ExternalSource, | |
/** The location the individual found issues with their data (ex: 'Prescriptions', 'Conditions') */ | |
collection: ClinicalType, | |
/** What kind of problem is the individual having with their data (ex: 'Confusing', 'Inaccurate', 'Correct') */ | |
reaction?: ?Reaction, | |
/** Optional comment, helpful to support staff that research the issue */ | |
comment?: ?$ElementType<Scalars, 'String'>, | |
/** The individual's feedback to the record containing Reaction, Comment and Additional Details */ | |
userFeedback: UserFeedback, | |
/** Details about the the record along with UserFeedback (ex: 'ConditionName=diabete') */ | |
recordDetails?: ?$ElementType<Scalars, 'String'>, | |
/** Identifier of the individual who is experiencing the issue */ | |
rallyId: $ElementType<Scalars, 'String'>, | |
/** The date and time the report was submitted by the individual in YYYY-MM-DD'T'HH:MM:SS format */ | |
reportedOn: $ElementType<Scalars, 'LocalDateTime'>, | |
/** The date and time the report was submitted to optum in YYYY-MM-DD'T'HH:MM:SS format */ | |
submittedOn?: ?$ElementType<Scalars, 'LocalDateTime'>, | |
|}, | |
|}; | |
/** An inference described with a timestamp value */ | |
export type TimestampInference = {| | |
__typename?: 'TimestampInference', | |
/** The timestamp of the inference */ | |
value: $ElementType<Scalars, 'Instant'>, | |
/** When the inference was originally computed */ | |
computedAt: $ElementType<Scalars, 'Instant'>, | |
/** The external source of the data */ | |
source: $ElementType<Scalars, 'String'>, | |
|}; | |
/** A computed set of default values for an inference type */ | |
export type TypelessGenericDefaultInference = {| | |
/** The unique primary key identifier for the default inference */ | |
id: $ElementType<Scalars, 'String'>, | |
/** When the default inference first became visible from this API */ | |
availableAt: $ElementType<Scalars, 'Instant'>, | |
|}; | |
/** A computed set of values associated with a user at a specific point in time */ | |
export type TypelessGenericInference = {| | |
/** The unique primary key identifier for the inference */ | |
id: $ElementType<Scalars, 'String'>, | |
/** When the inference first became visible from this API */ | |
availableAt: $ElementType<Scalars, 'Instant'>, | |
|}; | |
/** The default probability to engage score to use when the recommendation id is not found in the known defaults */ | |
export type UnknownProbabilityToEngageScore = {| | |
__typename?: 'UnknownProbabilityToEngageScore', | |
/** The time at which the score was computed */ | |
computedAt: $ElementType<Scalars, 'Instant'>, | |
/** The data science model identifiers */ | |
model: ModelData, | |
/** The calculated likelihood that a generalized user would engage with a recommendation */ | |
probability: $ElementType<Scalars, 'Float'>, | |
|}; | |
/** | |
* Represents a range coming that could not be parsed as a recognized range pattern. | |
* This is available to avoid throwing an error or hiding results from the caller. Instead the caller can just request this type and just display it verbatim (or attempt to handle it on its own). | |
*/ | |
export type UnknownRange = {| | |
__typename?: 'UnknownRange', | |
/** This field will be use when it is not a known type (<\d+, >\d+, \d+~\d+) */ | |
value?: ?$ElementType<Scalars, 'String'>, | |
|}; | |
/** User Feedback for an item containing Reaction, Comment and List of Additional Details */ | |
export type UserFeedback = {| | |
__typename?: 'UserFeedback', | |
/** Additional Information provided by user about selected Reaction as Inaccurate or Somewhat */ | |
additionalDetails: Array<$ElementType<Scalars, 'String'>>, | |
/** Optional comment, helpful to support staff that research the issue */ | |
comment?: ?$ElementType<Scalars, 'String'>, | |
/** The individual's reaction to the record (ex: 'Inaccurate', 'Somewhat', 'Accurate') */ | |
reaction?: ?Reaction, | |
|}; | |
/** User Feedback for an item containing Reaction, Comment and List of Additional Details */ | |
export type UserFeedbackInput = {| | |
/** Additional Information provided by user about selected Reaction as Inaccurate or Somewhat */ | |
additionalDetails: Array<$ElementType<Scalars, 'String'>>, | |
/** Optional comment, helpful to support staff that research the issue */ | |
comment?: ?$ElementType<Scalars, 'String'>, | |
/** The individual's reaction to the record (ex: 'Inaccurate', 'Somewhat', 'Accurate') */ | |
reaction?: ?Reaction, | |
|}; | |
/** Information about the Individuals visits to health care facilities (ex: 'Office Visits', 'Hospitals') */ | |
export type Visit = {| | |
__typename?: 'Visit', | |
/** Object ID of the record stored in Health Vault */ | |
externalRefId?: ?$ElementType<Scalars, 'String'>, | |
/** Object ID and source of the record stored in Health Vault */ | |
ref: Ref, | |
/** Whether the user has requested that this record should be hidden on the UI */ | |
shouldHide?: ?$ElementType<Scalars, 'Boolean'>, | |
/** The type of clinical visit (ex: 'Office Visit') */ | |
type: SourceVocabTerm, | |
/** Date the individual was admitted to the facility in YYYY/MM/DD format */ | |
admitDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** Source Vocab Term representing the condition being treated, at time of admission' */ | |
admitDiagnosis?: ?SourceVocabTerm, | |
/** Description of how the individual was admitted to the facility (ex: 'Transfer from a Critical Access Hospital') */ | |
admitSource?: ?$ElementType<Scalars, 'String'>, | |
/** clinically relevant date that can be used as a base for determining what data to include in a query that limits data by time in the format yyyy-MM-ddTHH:mm:ssZ (UTC time). */ | |
clinicallyRelevantDate?: ?$ElementType<Scalars, 'Instant'>, | |
/** Date the individual was released from the facility in YYYY/MM/DD format */ | |
dischargeDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** Source Vocab Term representing the condition being treated, at time of discharge */ | |
dischargeDiagnosis?: ?SourceVocabTerm, | |
/** Souce Vocab Term repsresenting the level of care the individual was going to when they were discharged (ex: 'Discharged to Home or Self Care', 'Sent to */ | |
dischargeDisposition?: ?SourceVocabTerm, | |
/** Status of the visit (ex: past, present, or on-going) */ | |
status: $ElementType<Scalars, 'String'>, | |
/** The date when the visit was last updated in YYYY/MM/DD format */ | |
updatedDate?: ?$ElementType<Scalars, 'LocalDate'>, | |
/** The individual's reaction to the record (ex: 'Confusing', 'Inaccurate, 'Correct') */ | |
userReaction?: ?Reaction, | |
/** The individual's feedback to the record containing Reaction, Comment and Additional Details */ | |
userFeedback?: ?UserFeedback, | |
/** Array of careteam ids assigned to this item. Empty array when none apply. */ | |
relatedCareTeamIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of careteam classes assigned to this item. Empty array when none apply. */ | |
relatedCareTeam: Array<CareTeamMember>, | |
/** Array of condition ids assigned to this item. Empty array when none apply. */ | |
relatedConditionIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of condition classes assigned to this item. Empty array when none apply. */ | |
relatedConditions: Array<ClinicalCondition>, | |
/** Array of prescription ids assigned to this item. Empty array when none apply. */ | |
relatedPrescriptionIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of prescription classes assigned to this item. Empty array when none apply. */ | |
relatedPrescriptions: Array<Prescribed>, | |
/** Array of procedure ids assigned to this item. Empty array when none apply. */ | |
relatedProcedureIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of procedure classes assigned to this item. Empty array when none apply. */ | |
relatedProcedures: Array<Procedure>, | |
/** Array of result ids assigned to this item. Empty array when none apply. */ | |
relatedResultIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of result classes assigned to this item. Empty array when none apply. */ | |
relatedResults: Array<Result>, | |
/** Array of service provider ids assigned to this item. Empty array when none apply. */ | |
relatedServiceProviderIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of service provider classes assigned to this item. Empty array when none apply. */ | |
relatedServiceProviders: Array<ServiceProvider>, | |
/** Array of object ids of related immunizations. Empty array when none apply. */ | |
relatedImmunizationsIds: Array<$ElementType<Scalars, 'String'>>, | |
/** Array of immunization classes assigned to this item. Empty array when none apply. */ | |
relatedImmunizations: Array<Immunization>, | |
|}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment