diff --git a/src/classes/__tests__/Score.test.ts b/src/classes/__tests__/Score.test.ts index 21fa903..67ab4f3 100644 --- a/src/classes/__tests__/Score.test.ts +++ b/src/classes/__tests__/Score.test.ts @@ -163,14 +163,14 @@ describe('Score', () => { input_definition: [ { id: 'simpleNumberInput', - input_type: { + type: { type: 'number', required: false, }, }, { id: 'simpleNumberInputWithRange', - input_type: { + type: { type: 'number', range: { min: { @@ -185,7 +185,7 @@ describe('Score', () => { }, { id: 'enumNumberInput', - input_type: { + type: { type: 'number', required: false, allowed_answers: [ @@ -197,21 +197,21 @@ describe('Score', () => { }, { id: 'dateInput', - input_type: { + type: { type: 'date', required: false, }, }, { id: 'stringInput', - input_type: { + type: { type: 'string', required: false, }, }, { id: 'enumStringInput', - input_type: { + type: { type: 'string', required: false, allowed_answers: [ @@ -229,7 +229,7 @@ describe('Score', () => { }, { id: 'booleanInput', - input_type: { + type: { type: 'boolean', required: false, allowed_answers: [ @@ -250,7 +250,7 @@ describe('Score', () => { }, { id: 'numbersArrayInput', - input_type: { + type: { type: 'numbers_array', required: false, allowed_answers: [ @@ -268,7 +268,7 @@ describe('Score', () => { }, { id: 'stringsArrayInput', - input_type: { + type: { type: 'strings_array', required: false, allowed_answers: [ diff --git a/src/docs/swagger.ts b/src/docs/swagger.ts index c933226..a36c50a 100644 --- a/src/docs/swagger.ts +++ b/src/docs/swagger.ts @@ -300,7 +300,7 @@ export const swaggerDefinition = { type: 'string', }, label: { $ref: '#/components/schemas/label' }, - input_type: { + type: { oneOf: [ { $ref: '#/components/schemas/booleanInputType', diff --git a/src/lib/index.ts b/src/lib/index.ts index 5444a63..e519768 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,4 +1,6 @@ -export * from './getUnionType' +export * from './zod/getUnionType' +export * from './zod/stripOptionalFromZodObject' export * from './parseReadmeToHtml' export * from './createZodObjectFromInputSchema' export * from './parseToApiSchema' +export * from './shared' diff --git a/src/lib/parseToApiSchema/awell/lib/inputSchemaToApiInputSchema/inputSchemaToApiInputSchema.test.ts b/src/lib/parseToApiSchema/awell/lib/inputSchemaToApiInputSchema/inputSchemaToApiInputSchema.test.ts index 1c90e42..ff77c72 100644 --- a/src/lib/parseToApiSchema/awell/lib/inputSchemaToApiInputSchema/inputSchemaToApiInputSchema.test.ts +++ b/src/lib/parseToApiSchema/awell/lib/inputSchemaToApiInputSchema/inputSchemaToApiInputSchema.test.ts @@ -17,7 +17,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'boolean', required: true, allowed_answers: [ @@ -48,7 +48,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'boolean', required: false, allowed_answers: [ @@ -75,7 +75,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'date', required: false, }, @@ -98,7 +98,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'string', required: true, }, @@ -124,7 +124,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'string', required: true, allowed_answers: [ @@ -162,7 +162,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'string', required: false, allowed_answers: [ @@ -191,7 +191,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { type: 'number', required: true }, + type: { type: 'number', required: true }, }, ]) }) @@ -213,7 +213,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'number', required: false, component: 'slider', @@ -237,7 +237,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'number', required: true, range: { min: { value: 10 } }, @@ -259,7 +259,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'number', required: true, range: { max: { value: 999 } }, @@ -281,7 +281,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'number', required: true, range: { @@ -311,7 +311,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'number', required: true, allowed_answers: [{ value: 1 }, { value: 2 }, { value: 3 }], @@ -341,7 +341,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'number', required: false, allowed_answers: [ @@ -376,7 +376,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'strings_array', required: false, allowed_answers: [ @@ -409,7 +409,7 @@ describe('inputSchemaToApiInputSchema', () => { { id: 'inputId', label: { en: 'inputId' }, - input_type: { + type: { type: 'numbers_array', required: true, allowed_answers: [ diff --git a/src/lib/parseToApiSchema/awell/lib/inputSchemaToApiInputSchema/inputSchemaToApiInputSchema.ts b/src/lib/parseToApiSchema/awell/lib/inputSchemaToApiInputSchema/inputSchemaToApiInputSchema.ts index b113368..79bf23f 100644 --- a/src/lib/parseToApiSchema/awell/lib/inputSchemaToApiInputSchema/inputSchemaToApiInputSchema.ts +++ b/src/lib/parseToApiSchema/awell/lib/inputSchemaToApiInputSchema/inputSchemaToApiInputSchema.ts @@ -6,7 +6,7 @@ import { ScoreInputType, } from '../../../../../types' import { ApiInputType } from '../../types' -import { getUnionType } from '../../../../getUnionType' +import { getUnionType } from '../../../../zod/getUnionType' const getBooleanAllowedAnswers = ( value: ScoreInputType, @@ -84,7 +84,7 @@ export const inputSchemaToApiInputSchema = ( if (inputType instanceof z.ZodBoolean) { jsonSchema[key] = { ...baseJson, - input_type: { + type: { type: 'boolean', required: !isOptional, allowed_answers: getBooleanAllowedAnswers(value), @@ -118,7 +118,7 @@ export const inputSchemaToApiInputSchema = ( jsonSchema[key] = { ...baseJson, - input_type: { + type: { ...tempSchema, required: !isOptional, // @ts-expect-error this is fine @@ -133,7 +133,7 @@ export const inputSchemaToApiInputSchema = ( if (isDate) { jsonSchema[key] = { ...baseJson, - input_type: { + type: { type: 'date', required: !isOptional, }, @@ -141,7 +141,7 @@ export const inputSchemaToApiInputSchema = ( } else { jsonSchema[key] = { ...baseJson, - input_type: { + type: { type: 'string', required: !isOptional, }, @@ -156,7 +156,7 @@ export const inputSchemaToApiInputSchema = ( if (unionType === 'string') { jsonSchema[key] = { ...baseJson, - input_type: { + type: { type: 'string', required: !isOptional, allowed_answers: getStringEnumAllowedAnswers(inputType, value), @@ -167,7 +167,7 @@ export const inputSchemaToApiInputSchema = ( if (unionType === 'number') { jsonSchema[key] = { ...baseJson, - input_type: { + type: { type: 'number', required: !isOptional, allowed_answers: getNumberEnumAllowedAnswers(inputType, value), @@ -187,7 +187,7 @@ export const inputSchemaToApiInputSchema = ( if (unionType === 'string') { jsonSchema[key] = { ...baseJson, - input_type: { + type: { type: 'strings_array', required: !isOptional, allowed_answers: getStringEnumAllowedAnswers(itemType, value), @@ -198,7 +198,7 @@ export const inputSchemaToApiInputSchema = ( if (unionType === 'number') { jsonSchema[key] = { ...baseJson, - input_type: { + type: { type: 'numbers_array', required: !isOptional, allowed_answers: getNumberEnumAllowedAnswers(itemType, value), diff --git a/src/lib/parseToApiSchema/awell/types.ts b/src/lib/parseToApiSchema/awell/types.ts index a10d81c..dda7b2b 100644 --- a/src/lib/parseToApiSchema/awell/types.ts +++ b/src/lib/parseToApiSchema/awell/types.ts @@ -77,7 +77,7 @@ export type PossibleApiInputTypes = export interface ApiInputType { id: string label?: LabelType - input_type: PossibleApiInputTypes + type: PossibleApiInputTypes format?: string info?: LabelType } diff --git a/src/lib/shared.ts b/src/lib/shared.ts index 6200672..807423d 100644 --- a/src/lib/shared.ts +++ b/src/lib/shared.ts @@ -1,2 +1,22 @@ +import _ from 'lodash' + export const is_numeric = (val: unknown): boolean => typeof val === 'number' && !Number.isNaN(val) + +type RemoveUndefined = { + [K in keyof T]-?: Exclude +} + +/** + * Checks if all values in the object are defined and refines the type. + * @param data - The object to check. + * @returns True if all values are defined; false otherwise. + */ +export const areAllValuesDefined = >( + data: T, +): data is RemoveUndefined => { + if (_.isEmpty(data)) { + return false + } + return Object.values(data).every(value => value !== undefined) +} diff --git a/src/lib/getUnionType/getUnionType.ts b/src/lib/zod/getUnionType/getUnionType.ts similarity index 100% rename from src/lib/getUnionType/getUnionType.ts rename to src/lib/zod/getUnionType/getUnionType.ts diff --git a/src/lib/getUnionType/index.ts b/src/lib/zod/getUnionType/index.ts similarity index 100% rename from src/lib/getUnionType/index.ts rename to src/lib/zod/getUnionType/index.ts diff --git a/src/lib/zod/stripOptionalFromZodObject.ts b/src/lib/zod/stripOptionalFromZodObject.ts new file mode 100644 index 0000000..03bc629 --- /dev/null +++ b/src/lib/zod/stripOptionalFromZodObject.ts @@ -0,0 +1,23 @@ +import { z, ZodTypeAny } from 'zod' + +/** + * Removes all optional types from a Zod object schema. + * @param schema - The Zod object schema to process. + * @returns A new Zod object schema with optional types removed. + */ +export const stripOptionalFromZodObject = >( + schema: T, +): z.ZodObject => { + const shape = schema.shape // Get the shape of the Zod object schema + + const strippedShape: Record = Object.fromEntries( + Object.entries(shape).map(([key, value]) => { + if (value instanceof z.ZodOptional) { + return [key, value.unwrap()] // Unwrap optional types + } + return [key, value] + }), + ) + + return z.object(strippedShape) // Return a new Zod object schema +} diff --git a/src/scores/blcs/blcs.ts b/src/scores/blcs/blcs.ts index 186e6e7..a1937a8 100644 --- a/src/scores/blcs/blcs.ts +++ b/src/scores/blcs/blcs.ts @@ -1,5 +1,4 @@ import _ from 'lodash' -import { is_numeric } from '../../lib/shared' import { BLCS_INPUTS, BLCS_OUTPUT } from './definition' import { ScoreType } from '../../types' @@ -9,7 +8,7 @@ export const blcs: ScoreType = { inputSchema: BLCS_INPUTS, outputSchema: BLCS_OUTPUT, calculate: ({ data }) => { - const valid_answers = Object.values(data).filter(is_numeric) + const valid_answers = Object.values(data).filter(d => d !== undefined) if (valid_answers.length === 0) return { BLCS_TOTAL_SCORE: null } diff --git a/src/scores/bmi/us/bmi.schema.ts b/src/scores/bmi/us/bmi.schema.ts index 4a9957c..8e55be8 100644 --- a/src/scores/bmi/us/bmi.schema.ts +++ b/src/scores/bmi/us/bmi.schema.ts @@ -3,21 +3,21 @@ import { z } from 'zod' export const BmiInputSchema = { weight_pounds: { type: z.number().min(0).max(500), - input_label: { + label: { en: 'Weight (lbs)', }, unit: { en: 'pounds' }, }, height_feet: { type: z.number().min(0).max(8), - input_label: { + label: { en: 'Height (feet)', }, unit: { en: 'feet' }, }, height_inches: { type: z.number().min(0).max(50), - input_label: { + label: { en: 'Height (inches)', }, unit: { en: 'inches' }, diff --git a/src/scores/bwcs/bwcs.ts b/src/scores/bwcs/bwcs.ts index f85b80e..741f512 100644 --- a/src/scores/bwcs/bwcs.ts +++ b/src/scores/bwcs/bwcs.ts @@ -1,5 +1,4 @@ import _ from 'lodash' -import { is_numeric } from '../../lib/shared' import { BWCS_INPUTS, BWCS_OUTPUT } from './definition' import { ScoreType } from '../../types' @@ -9,7 +8,7 @@ export const bwcs: ScoreType = { inputSchema: BWCS_INPUTS, outputSchema: BWCS_OUTPUT, calculate: ({ data }) => { - const valid_answers = Object.values(data).filter(is_numeric) + const valid_answers = Object.values(data).filter(d => d !== undefined) if (valid_answers.length === 0) return { BWCS_TOTAL_SCORE: null } diff --git a/src/scores/library.ts b/src/scores/library.ts index 4b24297..701de6f 100644 --- a/src/scores/library.ts +++ b/src/scores/library.ts @@ -109,7 +109,7 @@ import { bmi_metric, bmi_imperial } from './bmi' // import { scl90 } from './scl90/scl90' // import { scl90r } from './scl90r/scl90r' // import { sdq } from './sdq/sdq' -// import { sf12, sf36 } from './short form surveys' +import { sf12 } from './sf12/sf12' // import { spadi } from './spadi/spadi' // import { simple_shoulder_test } from './sst/simple_shoulder_test' // import { start_back_screening_tool } from './start_back_screening_tool/start_back_screening_tool' @@ -256,7 +256,7 @@ export const ScoreLibrary = createScoreLibrary({ // scl90, // scl90r, // sdq, - // sf12, + sf12, // sf36, // short_fes_i, // spadi, diff --git a/todo/short form surveys/sf12/README.md b/src/scores/sf12/README.md similarity index 100% rename from todo/short form surveys/sf12/README.md rename to src/scores/sf12/README.md diff --git a/todo/short form surveys/sf12/__testdata__/sf12_test_responses.ts b/src/scores/sf12/__testdata__/sf12_test_responses.ts similarity index 100% rename from todo/short form surveys/sf12/__testdata__/sf12_test_responses.ts rename to src/scores/sf12/__testdata__/sf12_test_responses.ts diff --git a/todo/short form surveys/sf12/definition/index.ts b/src/scores/sf12/definition/index.ts similarity index 63% rename from todo/short form surveys/sf12/definition/index.ts rename to src/scores/sf12/definition/index.ts index 221d455..6849a78 100644 --- a/todo/short form surveys/sf12/definition/index.ts +++ b/src/scores/sf12/definition/index.ts @@ -1,3 +1,2 @@ export { SF12_OUTPUT } from './sf12_output' export { SF12_INPUT } from './sf12_input' -export { SF12_SUBSCALES } from './sf12_subscales' diff --git a/todo/short form surveys/sf12/definition/sf12_input.ts b/src/scores/sf12/definition/sf12_input.ts similarity index 84% rename from todo/short form surveys/sf12/definition/sf12_input.ts rename to src/scores/sf12/definition/sf12_input.ts index de322f1..258eac9 100644 --- a/todo/short form surveys/sf12/definition/sf12_input.ts +++ b/src/scores/sf12/definition/sf12_input.ts @@ -1,16 +1,24 @@ -import type { InputType } from '../../../../src/types/calculations.types' +import { z } from 'zod' +import { ScoreInputSchemaType } from '../../../types' -export const SF12_INPUT: Array = [ - { - input_id: 'SF12_Q01', - input_label: { +export const SF12_INPUT = { + SF12_Q01: { + label: { en: 'In general, would you say your health is:', fr: 'Dans l`ensemble, pensez-vous que votre santé est :', nl: 'Hoe zou u over het algemeen uw gezondheid noemen?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z + .union([ + z.literal(1), + z.literal(2), + z.literal(3), + z.literal(4), + z.literal(5), + ]) + .optional(), + uiOptions: { + options: [ { value: 1, label: { nl: 'Uitstekend', en: 'Excellent', fr: 'Excellente' }, @@ -25,16 +33,15 @@ export const SF12_INPUT: Array = [ ], }, }, - { - input_id: 'SF12_Q02', - input_label: { + SF12_Q02: { + label: { en: 'Please select whether your health now limits you when doing moderate activities, such as moving a table, pushing a vacuum cleaner, bowling, or playing golf?', nl: 'Wordt u door uw gezondheid op dit moment beperkt bij matige inspanning, zoals het verplaatsen van een tafel, stofzuigen, zwemmen of fietsen', fr: 'En raison de votre état de santé actuel, êtes-vous limité pour des efforts physiques modérés (déplacer une table, passer l’aspirateur, jouer aux boules…)?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z.union([z.literal(1), z.literal(2), z.literal(3)]).optional(), + uiOptions: { + options: [ { value: 1, label: { @@ -62,16 +69,15 @@ export const SF12_INPUT: Array = [ ], }, }, - { - input_id: 'SF12_Q03', - input_label: { + SF12_Q03: { + label: { en: 'Please select whether your health now limits you climbing several flights of stairs?', nl: 'Wordt u door uw gezondheid op dit moment beperkt bij een paar trappen oplopen?', fr: 'En raison de votre état de santé actuel, êtes-vous limité pour monter plusieurs étages par l’escalier?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z.union([z.literal(1), z.literal(2), z.literal(3)]).optional(), + uiOptions: { + options: [ { value: 1, label: { @@ -99,16 +105,15 @@ export const SF12_INPUT: Array = [ ], }, }, - { - input_id: 'SF12_Q04', - input_label: { + SF12_Q04: { + label: { en: 'During the PAST FOUR WEEKS, have you ACCOMPLISHED LESS than you would like as a result of your physical health?', nl: 'Hoe vaak heeft u in de afgelopen 4 WEKEN, ten gevolge van uw lichamelijke gezondheid, minder bereikt dan u zou willen?', fr: 'Au cours de ces 4 DERNIÉRES SEMAINES, et en raison de votre état physique, avez-vous accompli moins de choses que vous auriez souhaité?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z.union([z.literal(1), z.literal(2)]).optional(), + uiOptions: { + options: [ { value: 1, label: { @@ -128,16 +133,15 @@ export const SF12_INPUT: Array = [ ], }, }, - { - input_id: 'SF12_Q05', - input_label: { + SF12_Q05: { + label: { en: 'During the PAST FOUR WEEKS, were you limited in the KIND of work or other activities you do as a result of your physical health?', nl: 'Hoe vaak was u in de afgelopen 4 WEKEN, ten gevolge van uw lichamelijke gezondheid, beperkt in het soort werk of andere bezigheden?', fr: 'Au cours de ces 4 DERNIÉRES SEMAINES, et en raison de votre état physique, avez-vous été limité pour faire certaines choses?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z.union([z.literal(1), z.literal(2)]).optional(), + uiOptions: { + options: [ { value: 1, label: { @@ -157,16 +161,15 @@ export const SF12_INPUT: Array = [ ], }, }, - { - input_id: 'SF12_Q06', - input_label: { + SF12_Q06: { + label: { en: 'During the PAST FOUR WEEKS, did you ACCOMPLISHED LESS than you would like AS A RESULT OF ANY EMOTIONAL PROBLEMS, such as feeling depressed or anxious?', fr: 'Au cours de ces 4 DERNIÉRES SEMAINES, et en raison de votre état émotionnel (comme vous sentir triste, nerveux ou déprimé) avez-vous accompli moins de choses que vous auriez souhaité?', nl: 'Hoe vaak heeft u in de afgelopen 4 WEKEN, ten gevolge van emotionele problemen (zoals depressieve of angstige gevoelens), minder bereikt dan u zou willen?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z.union([z.literal(1), z.literal(2)]).optional(), + uiOptions: { + options: [ { value: 1, label: { @@ -186,16 +189,15 @@ export const SF12_INPUT: Array = [ ], }, }, - { - input_id: 'SF12_Q07', - input_label: { + SF12_Q07: { + label: { en: 'During the PAST FOUR WEEKS, you did not do work or other activities as CAREFULLY as usual AS A RESULT OF ANY EMOTIONAL PROBLEMS, such as feeling depressed or anxious?', fr: 'Au cours de ces 4 DERNIÉRES SEMAINES, et en raison de votre état émotionnel (comme vous sentir triste, nerveux ou déprimé) avez-vous eu des difficultés à faire ce que vous aviez à faire avec autant de soin et d’attention que d’habitude?', nl: 'Hoe vaak heeft u in de afgelopen 4 WEKEN, ten gevolge van emotionele problemen (zoals depressieve of angstige gevoelens), uw werk of andere bezigheden niet zo zorgvuldig kunnen uitvoeren als gewoonlijk?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z.union([z.literal(1), z.literal(2)]).optional(), + uiOptions: { + options: [ { value: 1, label: { @@ -215,16 +217,23 @@ export const SF12_INPUT: Array = [ ], }, }, - { - input_id: 'SF12_Q08', - input_label: { + SF12_Q08: { + label: { en: 'During the PAST 4 WEEKS, how much did pain interfere with your normal work (including both work outside the home and housework)?', fr: 'Au cours de ces 4 DERNIÉRES SEMAINES, dans quelle mesure vos douleurs physiques vous ont -elles limité dans votre travail ou vos activités domestiques?', nl: 'In welke mate bent u de afgelopen 4 WEKEN door pijn gehinderd in uw normale werk (zowel werk buitenshuis als huishoudelijk werk)?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z + .union([ + z.literal(1), + z.literal(2), + z.literal(3), + z.literal(4), + z.literal(5), + ]) + .optional(), + uiOptions: { + options: [ { value: 1, label: { @@ -256,16 +265,24 @@ export const SF12_INPUT: Array = [ ], }, }, - { - input_id: 'SF12_Q09', - input_label: { + SF12_Q09: { + label: { en: 'How much of the time during the PAST 4 WEEKS have you felt calm and peaceful?', fr: 'Au cours de ces 4 DERNIÉRES SEMAINES, y a t-il eu des moments où vous vous êtes senti calme et détendu?', nl: 'Hoe vaak gedurende de afgelopen 4 WEKEN voelde u zich rustig en tevreden?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z + .union([ + z.literal(1), + z.literal(2), + z.literal(3), + z.literal(4), + z.literal(5), + z.literal(6), + ]) + .optional(), + uiOptions: { + options: [ { value: 1, label: { @@ -317,16 +334,24 @@ export const SF12_INPUT: Array = [ ], }, }, - { - input_id: 'SF12_Q10', - input_label: { + SF12_Q10: { + label: { en: 'How much of the time during the past 4 week did you have a lot of energy?', fr: 'Au cours de ces 4 DERNIÉRES SEMAINES, y a t-il eu des moments où vous vous êtes senti débordant d’énergie?', nl: 'Hoe vaak gedurende de afgelopen 4 WEKEN had je veel energie?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z + .union([ + z.literal(1), + z.literal(2), + z.literal(3), + z.literal(4), + z.literal(5), + z.literal(6), + ]) + .optional(), + uiOptions: { + options: [ { value: 1, label: { @@ -378,16 +403,24 @@ export const SF12_INPUT: Array = [ ], }, }, - { - input_id: 'SF12_Q11', - input_label: { + SF12_Q11: { + label: { en: 'How much of the time during the PAST 4 WEEKS have you felt downhearted and blue?', fr: 'Au cours de ces 4 DERNIÉRES SEMAINES, y a t-il eu des moments où vous vous êtes senti triste et abattu?', nl: 'Hoe vaak gedurende de afgelopen 4 WEKEN voelde u zich somber en neerslachtig?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z + .union([ + z.literal(1), + z.literal(2), + z.literal(3), + z.literal(4), + z.literal(5), + z.literal(6), + ]) + .optional(), + uiOptions: { + options: [ { value: 1, label: { @@ -439,16 +472,23 @@ export const SF12_INPUT: Array = [ ], }, }, - { - input_id: 'SF12_Q12', - input_label: { + SF12_Q12: { + label: { en: 'How much of the time during the PAST 4 WEEKS has your PHYSICAL HEALTH OR EMOTIONAL PROBLEMS interfered with your social activities (like visiting with friends, relatives, etc.)?', nl: 'Hoe vaak hebben uw lichamelijke gezondheid of emotionele problemen u gedurende de afgelopen 4 WEKEN gehinderd bij uw sociale activiteiten (zoals vrienden of familie bezoeken, etc.)?', fr: 'Au cours de ces 4 DERNIÉRES SEMAINES, y a t-il eu des moments où votre état de santé physique ou émotionnel vous a gêné dans votre vie sociale et vos relations avec les autres, votre famille, vos amis, vos connaissances?', }, - input_type: { - type: 'number', - allowed_answers: [ + type: z + .union([ + z.literal(1), + z.literal(2), + z.literal(3), + z.literal(4), + z.literal(5), + ]) + .optional(), + uiOptions: { + options: [ { value: 1, label: { @@ -492,4 +532,4 @@ export const SF12_INPUT: Array = [ ], }, }, -] +} satisfies ScoreInputSchemaType diff --git a/src/scores/sf12/definition/sf12_output.ts b/src/scores/sf12/definition/sf12_output.ts new file mode 100644 index 0000000..363ebff --- /dev/null +++ b/src/scores/sf12/definition/sf12_output.ts @@ -0,0 +1,13 @@ +import { z } from 'zod' +import { ScoreOutputSchemaType } from '../../../types' + +export const SF12_OUTPUT = { + PHYSICAL_COMPONENT_SCORE: { + label: { en: 'Physical Component Score (PCS)' }, + type: z.number(), + }, + MENTAL_COMPONENT_SCORE: { + label: { en: 'Mental Component Score (MCS)' }, + type: z.number(), + }, +} satisfies ScoreOutputSchemaType diff --git a/src/scores/sf12/sf12.test.ts b/src/scores/sf12/sf12.test.ts new file mode 100644 index 0000000..fcd55b2 --- /dev/null +++ b/src/scores/sf12/sf12.test.ts @@ -0,0 +1,200 @@ +import { ZodError } from 'zod' +import { Score } from '../../classes' +import { ScoreLibrary } from '../library' +import { + best_response, + median_response, + random_response, + worst_response, +} from './__testdata__/sf12_test_responses' +import { sf12 } from './sf12' + +const SCORES = { + WORST: { + PHYSICAL_COMPONENT_SCORE: 23.99938, + MENTAL_COMPONENT_SCORE: 19.06444, + }, + MEDIAN: { + PHYSICAL_COMPONENT_SCORE: 48.60638, + MENTAL_COMPONENT_SCORE: 33.57777, + }, + BEST: { + PHYSICAL_COMPONENT_SCORE: 56.57706, + MENTAL_COMPONENT_SCORE: 60.75781, + }, + RANDOM: { + PHYSICAL_COMPONENT_SCORE: 37.10464, + MENTAL_COMPONENT_SCORE: 46.00098, + }, +} + +const score = new Score(sf12) + +describe('sf12', function () { + it('sf12 calculation function should be available as a calculation', function () { + expect(ScoreLibrary).toHaveProperty('acro') + }) + + describe('the score includes the correct input fields', function () { + it('should have all the expected input ids configured', function () { + const EXPECTED_INPUT_IDS = [ + 'SF12_Q01', + 'SF12_Q02', + 'SF12_Q03', + 'SF12_Q04', + 'SF12_Q05', + 'SF12_Q06', + 'SF12_Q07', + 'SF12_Q08', + 'SF12_Q09', + 'SF12_Q10', + 'SF12_Q11', + 'SF12_Q12', + ] + + const configured_input_ids = Object.keys(score.inputSchemaAsObject.shape) + + expect(EXPECTED_INPUT_IDS).toEqual(configured_input_ids) + }) + }) + + describe('each calculated score includes the correct output result and correct score title', function () { + const outcome = score.calculate({ payload: best_response }) + + it('should return a score for all 2 subscales', function () { + expect(Object.keys(outcome)).toHaveLength(2) + }) + + it('should have all the correct calculation ids', function () { + const EXPECTED_CALCULATION_IDS = [ + 'PHYSICAL_COMPONENT_SCORE', + 'MENTAL_COMPONENT_SCORE', + ] + + const extracted_calculation_ids_from_outcome = Object.keys(outcome) + + expect(EXPECTED_CALCULATION_IDS).toEqual( + extracted_calculation_ids_from_outcome, + ) + }) + }) + + describe('a score is only calculated when all mandatory fields are entered', function () { + describe('when an empty response is passed', function () { + const outcome = score.calculate({ payload: {} }) + + it('should return "Missing" as the score for the mental health subscale', function () { + expect(outcome.MENTAL_COMPONENT_SCORE).toEqual(null) + }) + + it('should return "Missing" as the score for the physical health subscale', function () { + expect(outcome.PHYSICAL_COMPONENT_SCORE).toEqual(null) + }) + }) + }) + + describe('values entered by the user are checked to verify they are inside specified ranges for question 1', function () { + describe('when an answer is not a number', function () { + it('should throw an InvalidInputsError', function () { + expect(() => + score.calculate({ payload: { SF12_Q01: "I'm not a number" } }), + ).toThrow(ZodError) + }) + }) + describe('when an answer is not allowed (e.g. is below the expected range)', function () { + it('should throw an InvalidInputsError', function () { + expect(() => score.calculate({ payload: { SF12_Q01: -1 } })).toThrow( + ZodError, + ) + }) + }) + describe('when an answer is not allowed (e.g. is above the expected range)', function () { + it('should throw an InvalidInputsError', function () { + expect(() => score.calculate({ payload: { SF12_Q01: 6 } })).toThrow( + ZodError, + ) + }) + it('should throw an InvalidInputsError for question 4', function () { + expect(() => score.calculate({ payload: { SF12_Q04: 3 } })).toThrow( + ZodError, + ) + }) + it('should throw an InvalidInputsError for question 9', function () { + expect(() => score.calculate({ payload: { SF12_Q09: 7 } })).toThrow( + ZodError, + ) + }) + it('should pass for question 9', function () { + expect(() => score.calculate({ payload: { SF12_Q09: 6 } })).not.toThrow( + ZodError, + ) + }) + }) + }) + + describe('each calculated score includes the correct formula and outputs the correct result', function () { + describe('when the worst response is passed', function () { + it('should return the worst score for the mental health subscale', function () { + const outcome = score.calculate({ payload: worst_response }) + expect(outcome.MENTAL_COMPONENT_SCORE).toEqual( + SCORES.WORST.MENTAL_COMPONENT_SCORE, + ) + }) + + it('should return the worst score for the physical health subscale', function () { + const outcome = score.calculate({ payload: worst_response }) + expect(outcome.PHYSICAL_COMPONENT_SCORE).toEqual( + SCORES.WORST.PHYSICAL_COMPONENT_SCORE, + ) + }) + }) + + describe('when the best response is passed', function () { + it('should return the best score for the mental health subscale', function () { + const outcome = score.calculate({ payload: best_response }) + expect(outcome.MENTAL_COMPONENT_SCORE).toEqual( + SCORES.BEST.MENTAL_COMPONENT_SCORE, + ) + }) + + it('should return the best score for the physical health subscale', function () { + const outcome = score.calculate({ payload: best_response }) + expect(outcome.PHYSICAL_COMPONENT_SCORE).toEqual( + SCORES.BEST.PHYSICAL_COMPONENT_SCORE, + ) + }) + }) + }) + + describe('when a median response is passed', function () { + it('should return the median score for the mental health subscale', function () { + const outcome = score.calculate({ payload: median_response }) + expect(outcome.MENTAL_COMPONENT_SCORE).toEqual( + SCORES.MEDIAN.MENTAL_COMPONENT_SCORE, + ) + }) + + it('should return the median score for the physical health subscale', function () { + const outcome = score.calculate({ payload: median_response }) + expect(outcome.PHYSICAL_COMPONENT_SCORE).toEqual( + SCORES.MEDIAN.PHYSICAL_COMPONENT_SCORE, + ) + }) + }) + + describe('when a random response is passed', function () { + it('should return the random score for the mental health subscale', function () { + const outcome = score.calculate({ payload: random_response }) + expect(outcome.MENTAL_COMPONENT_SCORE).toEqual( + SCORES.RANDOM.MENTAL_COMPONENT_SCORE, + ) + }) + + it('should return the random score for the physical health subscale', function () { + const outcome = score.calculate({ payload: random_response }) + expect(outcome.PHYSICAL_COMPONENT_SCORE).toEqual( + SCORES.RANDOM.PHYSICAL_COMPONENT_SCORE, + ) + }) + }) +}) diff --git a/src/scores/sf12/sf12.ts b/src/scores/sf12/sf12.ts new file mode 100644 index 0000000..bfa2805 --- /dev/null +++ b/src/scores/sf12/sf12.ts @@ -0,0 +1,168 @@ +import { areAllValuesDefined } from '../../lib' +import { ScoreType } from '../../types' +import { SF12_INPUT, SF12_OUTPUT } from './definition' +import _ from 'lodash' + +export const sf12: ScoreType = { + name: '12-Item Short Form Survey (SF12)', + readmeLocation: __dirname, + inputSchema: SF12_INPUT, + outputSchema: SF12_OUTPUT, + calculate: ({ data }) => { + if (!areAllValuesDefined(data)) { + return { + PHYSICAL_COMPONENT_SCORE: null, + MENTAL_COMPONENT_SCORE: null, + } + } + + /** + * MAPPING + * + * SF12_Q01 -> rgh1 SF12_Q02 -> pf02 + * SF12_Q03 -> pf04 SF12_Q04 -> rp2 + * SF12_Q05 -> rp3 SF12_Q06 -> re2 + * SF12_Q07 -> re3 SF12_Q08 -> rbp2 + * SF12_Q09 -> rmh3 SF12_Q10 -> rvt2 + * SF12_Q11 -> mh4 SF12_Q12 -> sf2 + * + * Data cleaning and reverse scoring + */ + const rgh1 = 6 - data.SF12_Q01 + const rbp2 = 6 - data.SF12_Q08 + const rmh3 = 7 - data.SF12_Q09 + const rvt2 = 7 - data.SF12_Q10 + const pf02 = data.SF12_Q02 + const pf04 = data.SF12_Q03 + const rp2 = data.SF12_Q04 + const rp3 = data.SF12_Q05 + const re2 = data.SF12_Q06 + const re3 = data.SF12_Q07 + const mh4 = data.SF12_Q11 + const sf2 = data.SF12_Q12 + + // Creating indicator variables + const indicators = { + pf02_1: pf02 === 1 ? 1 : 0, + pf02_2: pf02 === 2 ? 1 : 0, + pf04_1: pf04 === 1 ? 1 : 0, + pf04_2: pf04 === 2 ? 1 : 0, + rp2_1: rp2 === 1 ? 1 : 0, + rp3_1: rp3 === 1 ? 1 : 0, + bp2_1: rbp2 === 1 ? 1 : 0, + bp2_2: rbp2 === 2 ? 1 : 0, + bp2_3: rbp2 === 3 ? 1 : 0, + bp2_4: rbp2 === 4 ? 1 : 0, + gh1_1: rgh1 === 1 ? 1 : 0, + gh1_2: rgh1 === 2 ? 1 : 0, + gh1_3: rgh1 === 3 ? 1 : 0, + gh1_4: rgh1 === 4 ? 1 : 0, + vt2_1: rvt2 === 1 ? 1 : 0, + vt2_2: rvt2 === 2 ? 1 : 0, + vt2_3: rvt2 === 3 ? 1 : 0, + vt2_4: rvt2 === 4 ? 1 : 0, + vt2_5: rvt2 === 5 ? 1 : 0, + sf2_1: sf2 === 1 ? 1 : 0, + sf2_2: sf2 === 2 ? 1 : 0, + sf2_3: sf2 === 3 ? 1 : 0, + sf2_4: sf2 === 4 ? 1 : 0, + re2_1: re2 === 1 ? 1 : 0, + re3_1: re3 === 1 ? 1 : 0, + mh3_1: rmh3 === 1 ? 1 : 0, + mh3_2: rmh3 === 2 ? 1 : 0, + mh3_3: rmh3 === 3 ? 1 : 0, + mh3_4: rmh3 === 4 ? 1 : 0, + mh3_5: rmh3 === 5 ? 1 : 0, + mh4_1: mh4 === 1 ? 1 : 0, + mh4_2: mh4 === 2 ? 1 : 0, + mh4_3: mh4 === 3 ? 1 : 0, + mh4_4: mh4 === 4 ? 1 : 0, + mh4_5: mh4 === 5 ? 1 : 0, + } + + // Weighting and aggregation for PCS12 and MCS12 scores + + // PHYSICAL_COMPONENT_SCORE + const RAWPCS12 = + -7.23216 * indicators.pf02_1 + + -3.45555 * indicators.pf02_2 + + -6.24397 * indicators.pf04_1 + + -2.73557 * indicators.pf04_2 + + -4.61617 * indicators.rp2_1 + + -5.51747 * indicators.rp3_1 + + -11.25544 * indicators.bp2_1 + + -8.38063 * indicators.bp2_2 + + -6.50522 * indicators.bp2_3 + + -3.8013 * indicators.bp2_4 + + -8.37399 * indicators.gh1_1 + + -5.56461 * indicators.gh1_2 + + -3.02396 * indicators.gh1_3 + + -1.31872 * indicators.gh1_4 + + -2.44706 * indicators.vt2_1 + + -2.02168 * indicators.vt2_2 + + -1.6185 * indicators.vt2_3 + + -1.14387 * indicators.vt2_4 + + -0.42251 * indicators.vt2_5 + + -0.33682 * indicators.sf2_1 + + -0.94342 * indicators.sf2_2 + + -0.18043 * indicators.sf2_3 + + 0.11038 * indicators.sf2_4 + + 3.04365 * indicators.re2_1 + + 2.32091 * indicators.re3_1 + + 3.46638 * indicators.mh3_1 + + 2.90426 * indicators.mh3_2 + + 2.37241 * indicators.mh3_3 + + 1.36689 * indicators.mh3_4 + + 0.66514 * indicators.mh3_5 + + 4.61446 * indicators.mh4_1 + + 3.41593 * indicators.mh4_2 + + 2.34247 * indicators.mh4_3 + + 1.28044 * indicators.mh4_4 + + 0.41188 * indicators.mh4_5 + + 56.57706 + + // MENTAL_COMPONENT_SCORE + const RAWMCS12 = + 3.93115 * indicators.pf02_1 + + 1.8684 * indicators.pf02_2 + + 2.68282 * indicators.pf04_1 + + 1.43103 * indicators.pf04_2 + + 1.4406 * indicators.rp2_1 + + 1.66968 * indicators.rp3_1 + + 1.48619 * indicators.bp2_1 + + 1.76691 * indicators.bp2_2 + + 1.49384 * indicators.bp2_3 + + 0.90384 * indicators.bp2_4 + + -1.71175 * indicators.gh1_1 + + -0.16891 * indicators.gh1_2 + + 0.03482 * indicators.gh1_3 + + -0.06064 * indicators.gh1_4 + + -6.02409 * indicators.vt2_1 + + -4.88962 * indicators.vt2_2 + + -3.29805 * indicators.vt2_3 + + -1.65178 * indicators.vt2_4 + + -0.92057 * indicators.vt2_5 + + -6.29724 * indicators.sf2_1 + + -8.26066 * indicators.sf2_2 + + -5.63286 * indicators.sf2_3 + + -3.13896 * indicators.sf2_4 + + -6.82672 * indicators.re2_1 + + -5.69921 * indicators.re3_1 + + -10.19085 * indicators.mh3_1 + + -7.92717 * indicators.mh3_2 + + -6.31121 * indicators.mh3_3 + + -4.09842 * indicators.mh3_4 + + -1.94949 * indicators.mh3_5 + + -16.15395 * indicators.mh4_1 + + -10.77911 * indicators.mh4_2 + + -8.09914 * indicators.mh4_3 + + -4.59055 * indicators.mh4_4 + + -1.95934 * indicators.mh4_5 + + 60.75781 + + return { + PHYSICAL_COMPONENT_SCORE: _.round(RAWPCS12, 5), + MENTAL_COMPONENT_SCORE: _.round(RAWMCS12, 5), + } + }, +} diff --git a/todo/CHA2DS2_VASc_Score/definition/CHA2DS2_VASc_Score_inputs.ts b/todo/CHA2DS2_VASc_Score/definition/CHA2DS2_VASc_Score_inputs.ts index 5745290..fc53454 100644 --- a/todo/CHA2DS2_VASc_Score/definition/CHA2DS2_VASc_Score_inputs.ts +++ b/todo/CHA2DS2_VASc_Score/definition/CHA2DS2_VASc_Score_inputs.ts @@ -3,8 +3,8 @@ import type { InputType } from '../../../src/types/calculations.types' export const CHA2DS2_VASC_SCORE_INPUTS: Array = [ { input_id: '1_AGE', - input_label: { en: 'Age' }, - input_type: { + label: { en: 'Age' }, + type: { type: 'number', allowed_answers: [ { @@ -24,8 +24,8 @@ export const CHA2DS2_VASC_SCORE_INPUTS: Array = [ }, { input_id: '2_SEX', - input_label: { en: 'Sex' }, - input_type: { + label: { en: 'Sex' }, + type: { type: 'number', allowed_answers: [ { @@ -41,8 +41,8 @@ export const CHA2DS2_VASC_SCORE_INPUTS: Array = [ }, { input_id: '3_CHF_HISTORY', - input_label: { en: 'CHF history' }, - input_type: { + label: { en: 'CHF history' }, + type: { type: 'number', allowed_answers: [ { @@ -58,8 +58,8 @@ export const CHA2DS2_VASC_SCORE_INPUTS: Array = [ }, { input_id: '4_HYPERTENSION_HISTORY', - input_label: { en: 'Hypertension history' }, - input_type: { + label: { en: 'Hypertension history' }, + type: { type: 'number', allowed_answers: [ { @@ -75,8 +75,8 @@ export const CHA2DS2_VASC_SCORE_INPUTS: Array = [ }, { input_id: '5_STROKE_TIA_THROMBOEMBOLISM_HISTORY', - input_label: { en: 'Stroke/TIA/thromboembolism history' }, - input_type: { + label: { en: 'Stroke/TIA/thromboembolism history' }, + type: { type: 'number', allowed_answers: [ { @@ -92,10 +92,10 @@ export const CHA2DS2_VASC_SCORE_INPUTS: Array = [ }, { input_id: '6_VASCULAR_DISEASE_HISTORY', - input_label: { + label: { en: 'Vascular disease history (prior MI, peripheral artery disease, or aortic plaque)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -111,8 +111,8 @@ export const CHA2DS2_VASC_SCORE_INPUTS: Array = [ }, { input_id: '7_DIABETES_HISTORY', - input_label: { en: 'Diabetes history' }, - input_type: { + label: { en: 'Diabetes history' }, + type: { type: 'number', allowed_answers: [ { diff --git a/todo/GAD_2/definition/gad_2_inputs.ts b/todo/GAD_2/definition/gad_2_inputs.ts index 7f7cdaa..9961dec 100644 --- a/todo/GAD_2/definition/gad_2_inputs.ts +++ b/todo/GAD_2/definition/gad_2_inputs.ts @@ -3,11 +3,11 @@ import type { InputType } from '../../../src/types/calculations.types' export const GAD2_INPUTS: Array = [ { input_id: 'GAD2_Q01', - input_label: { + label: { en: 'Over the last two weeks, how often have you been bothered by feeling nervous, anxious, or on edge?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van uzelf zenuwachtig, angstig of gespannen te voelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -34,11 +34,11 @@ export const GAD2_INPUTS: Array = [ }, { input_id: 'GAD2_Q02', - input_label: { + label: { en: 'Over the last two weeks, how often have you been bothered by not being able to stop or control worrying?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van niet in staat te zijn om te stoppen met piekeren of om controle te krijgen over het piekeren?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/GAD_7/definition/gad_7_inputs.ts b/todo/GAD_7/definition/gad_7_inputs.ts index 907bf56..07112f3 100644 --- a/todo/GAD_7/definition/gad_7_inputs.ts +++ b/todo/GAD_7/definition/gad_7_inputs.ts @@ -3,10 +3,10 @@ import type { InputType } from '../../../src/types/calculations.types' export const GAD7_INPUTS: Array = [ { input_id: 'GAD7_Q01', - input_label: { + label: { en: 'Over the last two weeks, how often have you been bothered by feeling nervous, anxious, or on edge?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -33,10 +33,10 @@ export const GAD7_INPUTS: Array = [ }, { input_id: 'GAD7_Q02', - input_label: { + label: { en: 'Over the last two weeks, how often have you been bothered by not being able to stop or control worrying?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -63,10 +63,10 @@ export const GAD7_INPUTS: Array = [ }, { input_id: 'GAD7_Q03', - input_label: { + label: { en: 'Over the last two weeks, how often have you been bothered by worrying too much about different things?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -93,10 +93,10 @@ export const GAD7_INPUTS: Array = [ }, { input_id: 'GAD7_Q04', - input_label: { + label: { en: 'Over the last two weeks, how often have you been bothered by trouble relaxing?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -123,10 +123,10 @@ export const GAD7_INPUTS: Array = [ }, { input_id: 'GAD7_Q05', - input_label: { + label: { en: 'Over the last two weeks, how often have you been bothered by being so restless that it is hard to sit still?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -153,10 +153,10 @@ export const GAD7_INPUTS: Array = [ }, { input_id: 'GAD7_Q06', - input_label: { + label: { en: 'Over the last two weeks, how often have you been bothered by becoming easily annoyed or irritable?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -183,10 +183,10 @@ export const GAD7_INPUTS: Array = [ }, { input_id: 'GAD7_Q07', - input_label: { + label: { en: 'Over the last two weeks, how often have you been bothered by feeling afraid, as if something awful might happen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/IBD_control/definition/ibd_control_inputs.ts b/todo/IBD_control/definition/ibd_control_inputs.ts index 535c78a..8c3245c 100644 --- a/todo/IBD_control/definition/ibd_control_inputs.ts +++ b/todo/IBD_control/definition/ibd_control_inputs.ts @@ -6,7 +6,7 @@ const NO_ANSWER = 0 const NOT_SURE_ANSWER = 2 export const NO_TREATMENT = 999 -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: NO_ANSWER, label: { en: 'No' } }, @@ -18,7 +18,7 @@ const input_type: NumberInputType = { export const IBD_CONTROL_INPUTS: Array = [ { input_id: 'ibd_control_1a', - input_label: { + label: { nl: 'Gelooft u dat uw darmaandoening goed onder controle is de laatste 2 weken?', en: 'Do you believe that your IBD has been well controlled in the past two weeks?', }, @@ -27,11 +27,11 @@ export const IBD_CONTROL_INPUTS: Array = [ }, { input_id: 'ibd_control_1b', - input_label: { + label: { nl: 'Gelooft u dat uw huidige behandeling nuttig is voor de controle van uw darmklachten?', en: 'Do you believe that your current treatment is useful in controlling IBD?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: NO_ANSWER, label: { en: 'No' } }, @@ -53,7 +53,7 @@ export const IBD_CONTROL_INPUTS: Array = [ }, { input_id: 'ibd_control_3a', - input_label: { + label: { nl: 'Hebt u in de laatste 2 weken geplande activiteiten gemist omwille van uw darmaandoening (school/werk/uitstap/…)?', en: 'In the past 2 weeks, did you miss any planned activities because of IBD?', }, @@ -62,7 +62,7 @@ export const IBD_CONTROL_INPUTS: Array = [ }, { input_id: 'ibd_control_3b', - input_label: { + label: { nl: 'Bent u in de laatste 2 weken ’s nachts wakker geworden omwille van uw darmklachten?', en: 'In the past 2 weeks, did you wake up at night because of symptoms of IBD?', }, @@ -71,7 +71,7 @@ export const IBD_CONTROL_INPUTS: Array = [ }, { input_id: 'ibd_control_3c', - input_label: { + label: { nl: 'Hebt u in de laatste 2 weken last gehad van pijn of ongemak?', en: 'In the past 2 weeks, did you suffer from signifcant pain or discomfort?', }, @@ -80,7 +80,7 @@ export const IBD_CONTROL_INPUTS: Array = [ }, { input_id: 'ibd_control_3d', - input_label: { + label: { nl: 'Hebt u in de laatste 2 weken vaak (= meer dan de helft van de tijd) een gebrek aan energie bemerkt (vermoeidheid)?', en: 'In the past 2 weeks, did youoften feel lacking in energy (fatigued)?', }, @@ -89,7 +89,7 @@ export const IBD_CONTROL_INPUTS: Array = [ }, { input_id: 'ibd_control_3e', - input_label: { + label: { nl: 'Hebt u in de laatste 2 weken vaak een angstig of depressief gevoel gehad omwille van uw darmaandoening?', en: 'In the past 2 weeks, did you feel anxious or depressed because of your IBD?', }, @@ -98,7 +98,7 @@ export const IBD_CONTROL_INPUTS: Array = [ }, { input_id: 'ibd_control_3f', - input_label: { + label: { nl: 'Hebt u in de laatste 2 weken gedacht dat uw behandeling dient te worden aangepast?', en: 'In the past 2 weeks, did you think you needed a change to your treatment?', }, @@ -107,11 +107,11 @@ export const IBD_CONTROL_INPUTS: Array = [ }, { input_id: 'ibd_control_5', // IBD-Control-VAS input - input_label: { + label: { nl: 'Hoe scoort u de totale controle van uw darmprobleem over de laatste 2 weken? Gelieve een punt op onderstaande lijn te markeren door het bolletje te verschuiven.', en: 'How would you rate your OVERALL control of your IBD in the past two weeks?', }, - input_type: { + type: { type: 'number', component: 'slider', range: { diff --git a/todo/KCCQ_12/definition/KCCQ_12_domains.ts b/todo/KCCQ_12/definition/KCCQ_12_domains.ts index 15f47d4..7649fe7 100644 --- a/todo/KCCQ_12/definition/KCCQ_12_domains.ts +++ b/todo/KCCQ_12/definition/KCCQ_12_domains.ts @@ -17,8 +17,8 @@ export const KCCQ_12_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'KCCQ12_Q1_A', - input_label: { nl: '', en: 'Showering/bathing' }, - input_type: { + label: { nl: '', en: 'Showering/bathing' }, + type: { type: 'number', allowed_answers: [ { @@ -62,8 +62,8 @@ export const KCCQ_12_DOMAINS: Array = [ }, { input_id: 'KCCQ12_Q1_B', - input_label: { nl: '', en: 'Walking 1 block on level ground' }, - input_type: { + label: { nl: '', en: 'Walking 1 block on level ground' }, + type: { type: 'number', allowed_answers: [ { @@ -107,11 +107,11 @@ export const KCCQ_12_DOMAINS: Array = [ }, { input_id: 'KCCQ12_Q1_C', - input_label: { + label: { nl: '', en: 'Hurrying or jogging (as if to catch a bus)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -163,11 +163,11 @@ export const KCCQ_12_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'KCCQ12_Q2', - input_label: { + label: { nl: '', en: 'Over the past 2 weeks, how many times did you have swelling in your feet, ankles or legs when you woke up in the morning?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -205,11 +205,11 @@ export const KCCQ_12_DOMAINS: Array = [ }, { input_id: 'KCCQ12_Q3', - input_label: { + label: { nl: '', en: 'Over the past 2 weeks, on average, how many times has fatigue limited your ability to do what you wanted?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -259,11 +259,11 @@ export const KCCQ_12_DOMAINS: Array = [ }, { input_id: 'KCCQ12_Q4', - input_label: { + label: { nl: '', en: 'Over the past 2 weeks, on average, how many times has shortness of breath limited your ability to do what you wanted?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -313,11 +313,11 @@ export const KCCQ_12_DOMAINS: Array = [ }, { input_id: 'KCCQ12_Q5', - input_label: { + label: { nl: '', en: 'Over the past 2 weeks, on average, how many times have you been forced to sleep sitting up in a chair or with at least 3 pillows to prop you up because of shortness of breath?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -365,11 +365,11 @@ export const KCCQ_12_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'KCCQ12_Q6', - input_label: { + label: { nl: '', en: 'Over the past 2 weeks, how much has your heart failure limited your enjoyment of life?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -407,11 +407,11 @@ export const KCCQ_12_DOMAINS: Array = [ }, { input_id: 'KCCQ12_Q7', - input_label: { + label: { nl: '', en: 'If you had to spend the rest of your life with your heart failure the way it is right now, how would you feel about this?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -456,11 +456,11 @@ export const KCCQ_12_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'KCCQ12_Q8_A', - input_label: { + label: { nl: '', en: 'How much does your heart failure affect your lifestyle? Please indicate how your heart failure may have limited your participation in the following activities over the past 2 weeks: Hobbies, recreational activities', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -504,8 +504,8 @@ export const KCCQ_12_DOMAINS: Array = [ }, { input_id: 'KCCQ12_Q8_B', - input_label: { nl: '', en: 'Working or doing household chores' }, - input_type: { + label: { nl: '', en: 'Working or doing household chores' }, + type: { type: 'number', allowed_answers: [ { @@ -549,11 +549,11 @@ export const KCCQ_12_DOMAINS: Array = [ }, { input_id: 'KCCQ12_Q8_C', - input_label: { + label: { nl: '', en: 'Visiting family or friends out of your home', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/audit/definition/audit_subscales.ts b/todo/audit/definition/audit_subscales.ts index c29b7f7..9ef61bd 100644 --- a/todo/audit/definition/audit_subscales.ts +++ b/todo/audit/definition/audit_subscales.ts @@ -80,16 +80,16 @@ export const AUDIT_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'AUDIT_Q01', - input_type: INPUT_TYPES.input_1, - input_label: { + type: INPUT_TYPES.input_1, + label: { nl: 'Hoe vaak drink je alcohol?', en: 'How often do you have a drink containing alcohol?', }, }, { input_id: 'AUDIT_Q02', - input_type: INPUT_TYPES.input_2, - input_label: { + type: INPUT_TYPES.input_2, + label: { nl: 'Wanneer je drinkt, hoeveel standaardglazen* drink je dan gewoonlijk op een dag?', en: 'How many standard drinks do you have on a typical day when you are drinking?', }, @@ -100,8 +100,8 @@ export const AUDIT_SUBSCALES: Array = [ }, { input_id: 'AUDIT_Q03', - input_type: INPUT_TYPES.inputs_3_to_8, - input_label: { + type: INPUT_TYPES.inputs_3_to_8, + label: { nl: 'Hoe vaak gebeurt het dat je zes of meer standaardglazen drinkt bij één enkele gelegenheid?', en: 'How often do you have six or more standard drinks on one occasion?', }, @@ -120,8 +120,8 @@ export const AUDIT_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'AUDIT_Q04', - input_type: INPUT_TYPES.inputs_3_to_8, - input_label: { + type: INPUT_TYPES.inputs_3_to_8, + label: { nl: 'Hoe vaak had je het afgelopen jaar het gevoel dat je, van zodra je begon, niet meer kon stoppen met drinken?', en: 'How often during the last year have you found that you were not able to stop drinking once you had started?', }, @@ -129,8 +129,8 @@ export const AUDIT_SUBSCALES: Array = [ }, { input_id: 'AUDIT_Q05', - input_type: INPUT_TYPES.inputs_3_to_8, - input_label: { + type: INPUT_TYPES.inputs_3_to_8, + label: { nl: 'Hoe vaak ben je er, door je drinkgedrag, het afgelopen jaar niet in geslaagd te doen wat normaal van je werd verwacht?', en: 'How often during the last year have you failed to do what was normally expected of you because of drinking?', }, @@ -138,8 +138,8 @@ export const AUDIT_SUBSCALES: Array = [ }, { input_id: 'AUDIT_Q06', - input_type: INPUT_TYPES.inputs_3_to_8, - input_label: { + type: INPUT_TYPES.inputs_3_to_8, + label: { nl: 'Hoe vaak heb je het afgelopen jaar ’s morgens behoefte gehad aan alcohol om jezelf er weer bovenop te helpen nadat je zwaar was doorgezakt?', en: 'How often during the last year have you needed a first drink in the morning to get yourself going after a heavy drinking session?', }, @@ -155,8 +155,8 @@ export const AUDIT_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'AUDIT_Q07', - input_type: INPUT_TYPES.inputs_3_to_8, - input_label: { + type: INPUT_TYPES.inputs_3_to_8, + label: { nl: 'Hoe vaak heb je het afgelopen jaar schuld of berouw gevoeld nadat je gedronken had?', en: 'How often during the last year have you had a feeling of guilt or remorse after drinking?', }, @@ -164,8 +164,8 @@ export const AUDIT_SUBSCALES: Array = [ }, { input_id: 'AUDIT_Q08', - input_type: INPUT_TYPES.inputs_3_to_8, - input_label: { + type: INPUT_TYPES.inputs_3_to_8, + label: { nl: 'Hoe vaak kon je je het afgelopen jaar de gebeurtenissen van de avond voordien niet herinneren omdat je gedronken had?', en: 'How often during the last year have you been unable to remember what happened the night before because you had been drinking?', }, @@ -173,16 +173,16 @@ export const AUDIT_SUBSCALES: Array = [ }, { input_id: 'AUDIT_Q09', - input_type: INPUT_TYPES.inputs_9_and_10, - input_label: { + type: INPUT_TYPES.inputs_9_and_10, + label: { nl: 'Raakte jij zelf of iemand anders ooit gewond ten gevolge van je drinkgedrag?', en: 'Have you or someone else been injured because of your drinking?', }, }, { input_id: 'AUDIT_Q10', - input_type: INPUT_TYPES.inputs_9_and_10, - input_label: { + type: INPUT_TYPES.inputs_9_and_10, + label: { nl: 'Heeft een vriend, dokter of andere gezondheidswerker zich ooit zorgen gemaakt over je drinkgedrag of je aangeraden minder te drinken?', en: 'Has a relative, friend, doctor, or other health care worker been concerned about your drinking or suggested you cut down?', }, diff --git a/todo/breast_q/breast_conserving/definition/breast_q_scales.ts b/todo/breast_q/breast_conserving/definition/breast_q_scales.ts index 9a3dd31..f01084c 100644 --- a/todo/breast_q/breast_conserving/definition/breast_q_scales.ts +++ b/todo/breast_q/breast_conserving/definition/breast_q_scales.ts @@ -54,83 +54,83 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'PSYCHOSOCIAL_WELLBEING_PREOP_POSTOP_A', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe vaak voelde u zich de afgelopen zeven dagen vol zelfvertrouwen in een sociale situatie? ', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'PSYCHOSOCIAL_WELLBEING_PREOP_POSTOP_B', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe vaak voelde u zich de afgelopen zeven dagen: emotioneel in staat om de dingen te doen die u wilde doen?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'PSYCHOSOCIAL_WELLBEING_PREOP_POSTOP_C', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe vaak voelde u zich de afgelopen zeven dagen emotioneel gezond?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'PSYCHOSOCIAL_WELLBEING_PREOP_POSTOP_D', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe vaak voelde u zich de afgelopen zeven dagen gelijkwaardig aan andere vrouwen?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'PSYCHOSOCIAL_WELLBEING_PREOP_POSTOP_E', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe vaak voelde u zich de afgelopen zeven dagen zelfverzekerd?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'PSYCHOSOCIAL_WELLBEING_PREOP_POSTOP_F', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe vaak voelde u zich de afgelopen zeven dagen vrouwelijk in uw kleding?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'PSYCHOSOCIAL_WELLBEING_PREOP_POSTOP_G', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe vaak voelde u zich de afgelopen zeven dagen in staat om uw lichaam te accepteren?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'PSYCHOSOCIAL_WELLBEING_PREOP_POSTOP_H', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe vaak voelde u zich de afgelopen zeven dagen normaal?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'PSYCHOSOCIAL_WELLBEING_PREOP_POSTOP_I', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe vaak voelde u zich de afgelopen zeven dagen net als andere vrouwen?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'PSYCHOSOCIAL_WELLBEING_PREOP_POSTOP_J', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe vaak voelde u zich de afgelopen zeven dagen aantrekkelijk?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, ], }, @@ -140,51 +140,51 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'SEXUAL_WELLBEING_PREOP_POSTOP_A', - input_label: { + label: { nl: 'Denkend aan uw seksualiteit hoe vaak voelde u zich in het algemeen seksueel aantrekkelijk met uw kleding aan?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'SEXUAL_WELLBEING_PREOP_POSTOP_B', - input_label: { + label: { nl: 'Denkend aan uw seksualiteit hoe vaak voelde u zich in het algemeen op uw gemak tijdens seksuele handelingen?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'SEXUAL_WELLBEING_PREOP_POSTOP_C', - input_label: { + label: { nl: 'Denkend aan uw seksualiteit hoe vaak voelde u zich in het algemeen zelfverzekerd op seksueel gebied?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'SEXUAL_WELLBEING_PREOP_POSTOP_D', - input_label: { + label: { nl: 'Denkend aan uw seksualiteit hoe vaak voelde u zich in het algemeen tevreden met uw seksleven?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'SEXUAL_WELLBEING_PREOP_POSTOP_E', - input_label: { + label: { nl: 'Denkend aan uw seksualiteit hoe vaak voelde u zich in het algemeen zelfverzekerd op seksueel gebied over hoe uw borstgebied eruit ziet zonder kleding aan?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, { input_id: 'SEXUAL_WELLBEING_PREOP_POSTOP_F', - input_label: { + label: { nl: 'Denkend aan uw seksualiteit hoe vaak voelde u zich in het algemeen seksueel aantrekkelijk zonder kleding aan?', en: '', }, - input_type: INPUT_TYPES.default, + type: INPUT_TYPES.default, }, ], }, @@ -194,35 +194,35 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'SATISFACTION_WITH_BREAST_PREOP_A', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe tevreden of ontevreden bent u in de afgelopen zeven dagen geweest over hoe u er in de spiegel uitziet met uw kleding aan?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_PREOP_B', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe tevreden of ontevreden bent u in de afgelopen zeven dagen geweest over hoe comfortabel uw bh’s zit?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_PREOP_C', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe tevreden of ontevreden bent u in de afgelopen zeven dagen geweest over het kunnen dragen van strakkere kleding?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_PREOP_D', - input_label: { + label: { nl: 'Als u aan uw borstgebied denkt, hoe tevreden of ontevreden bent u in de afgelopen zeven dagen geweest over hoe u er in de spiegel uitziet zonder kleding aan?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, ], }, @@ -232,91 +232,91 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'SATISFACTION_WITH_BREAST_POSTOP_A', - input_label: { + label: { nl: 'Als u aan uw borsten denkt, hoe tevreden of ontevreden bent u de afgelopen zeven dagen geweest met hoe u er in de spiegel uitziet met uw kleding aan?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_POSTOP_B', - input_label: { + label: { nl: 'Als u aan uw borsten denkt, hoe tevreden of ontevreden bent u de afgelopen zeven dagen geweest met de vorm van uw geopereerde borst als u een bh aan hebt?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_POSTOP_C', - input_label: { + label: { nl: 'Als u aan uw borsten denkt, hoe tevreden of ontevreden bent u de afgelopen zeven dagen geweest met hoe normaal u zich voelt in uw kleding?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_POSTOP_D', - input_label: { + label: { nl: 'Als u aan uw borsten denkt, hoe tevreden of ontevreden bent u de afgelopen zeven dagen geweest met het kunnen dragen van strakkere kleding?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_POSTOP_E', - input_label: { + label: { nl: 'Als u aan uw borsten denkt, hoe tevreden of ontevreden bent u de afgelopen zeven dagen geweest met hoe uw geopereerde borst zit/hangt?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_POSTOP_F', - input_label: { + label: { nl: 'Als u aan uw borsten denkt, hoe tevreden of ontevreden bent u de afgelopen zeven dagen geweest met hoe glad gevormd uw geopereerde borst eruit ziet?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_POSTOP_G', - input_label: { + label: { nl: 'Als u aan uw borsten denkt, hoe tevreden of ontevreden bent u de afgelopen zeven dagen geweest met het profiel (silhouet) van uw geopereerde borst?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_POSTOP_H', - input_label: { + label: { nl: 'Als u aan uw borsten denkt, hoe tevreden of ontevreden bent u de afgelopen zeven dagen geweest met hoe gelijk van grootte uw borsten zijn?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_POSTOP_I', - input_label: { + label: { nl: 'Als u aan uw borsten denkt, hoe tevreden of ontevreden bent u de afgelopen zeven dagen geweest met hoe normaal uw borstsparend geopereerde borst eruit ziet?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_POSTOP_J', - input_label: { + label: { nl: 'Als u aan uw borsten denkt, hoe tevreden of ontevreden bent u de afgelopen zeven dagen geweest met hoeveel uw borsten op elkaar lijken?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_BREAST_POSTOP_K', - input_label: { + label: { nl: 'Als u aan uw borsten denkt, hoe tevreden of ontevreden bent u de afgelopen zeven dagen geweest met hoe u er in de spiegel uitziet zonder kleding aan?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, ], }, @@ -331,83 +331,83 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'PHYSICAL_WELLBEING_CHEST_PREOP_A', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van pijn in de borstspieren?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_PREOP_B', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van moeite om uw armen op te tillen of te bewegen?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_PREOP_C', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van moeite met slapen doordat uw borstgebied ongemakkelijk voelde?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_PREOP_D', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van een strak gevoel in uw borstgebied?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_PREOP_E', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van een trekkend gevoel in uw borstgebied?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_PREOP_F', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van een zeurend gevoel in uw borstgebied?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_PREOP_G', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van gevoeligheid in uw borstgebied?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_PREOP_H', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van scherpe pijn in uw borstgebied?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_PREOP_I', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van een pijnlijk gevoel in uw borstgebied?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_PREOP_J', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van een kloppend gevoel in uw borstgebied?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, ], }, @@ -426,59 +426,59 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'PHYSICAL_WELLBEING_CHEST_POSTOP_A', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van moeite om uw armen op te tillen of te bewegen?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_POSTOP_B', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van moeite met slapen doordat uw borstgebied ongemakkelijk aanvoelde?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_POSTOP_C', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van een strak gevoel in uw borstgebied?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_POSTOP_D', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van een trekkend gevoel in uw borstgebied?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_POSTOP_E', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van gevoeligheid in uw borstgebied?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_POSTOP_F', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van scherpe pijn in uw geopereerde borst?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'PHYSICAL_WELLBEING_CHEST_POSTOP_G', - input_label: { + label: { nl: 'Hoe vaak hebt u in de afgelopen zeven dagen last gehad van zeurende pijn in uw geopereerde borst?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, ], }, @@ -493,51 +493,51 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'ADVERSE_EFFECTS_OF_RADIATION_POSTOP_A', - input_label: { + label: { nl: 'Als u aan uw bestraalde borst(en) denkt, hoe vaak hebt u in de afgelopen zeven dagen last gehad van bestraalde huid van de borst die er anders uitzag (bijv. te donker of te licht)?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'ADVERSE_EFFECTS_OF_RADIATION_POSTOP_B', - input_label: { + label: { nl: 'Als u aan uw bestraalde borst(en) denkt, hoe vaak hebt u in de afgelopen zeven dagen last gehad van markeringen op de huid van de borst door de bestraling (bijv. kleine zichtbare bloedvaten)?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'ADVERSE_EFFECTS_OF_RADIATION_POSTOP_C', - input_label: { + label: { nl: 'Als u aan uw bestraalde borst(en) denkt, hoe vaak hebt u in de afgelopen zeven dagen last gehad van bestraalde huid van de borst die droog aanvoelde?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'ADVERSE_EFFECTS_OF_RADIATION_POSTOP_D', - input_label: { + label: { nl: 'Als u aan uw bestraalde borst(en) denkt, hoe vaak hebt u in de afgelopen zeven dagen last gehad van bestraalde huid van de borst die gevoelig is bij aanraking (bijv. bij temperatuursveranderingen van het water tijdens het douchen)?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'ADVERSE_EFFECTS_OF_RADIATION_POSTOP_E', - input_label: { + label: { nl: 'Als u aan uw bestraalde borst(en) denkt, hoe vaak hebt u in de afgelopen zeven dagen last gehad van bestraalde huid van de borst die onnatuurlijk dik (ruw, hard) aanvoelt als u het aanraakt?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, { input_id: 'ADVERSE_EFFECTS_OF_RADIATION_POSTOP_F', - input_label: { + label: { nl: 'Als u aan uw bestraalde borst(en) denkt, hoe vaak hebt u in de afgelopen zeven dagen last gehad van bestraalde huid van de borst die geïrriteerd aanvoelt bij het dragen van kleding?', en: '', }, - input_type: INPUT_TYPES.one_to_three, + type: INPUT_TYPES.one_to_three, }, ], }, @@ -547,99 +547,99 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_A', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over De mogelijke noodzaak van bestraling afhankelijk van de operatie die u ondergaat (borstamputatie versus borstsparende operatie)?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_B', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over De opties die u heeft gekregen rondom de soorten borstkankerchirurgie (borstamputatie versus borstsparende operatie)?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_C', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over Dat uw overlevingskans hetzelfde zou zijn voor beide soorten chirurgie (borstamputatie versus borstsparende operatie)?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_D', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over De genezing- en hersteltijd?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_E', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over Wat uw behandelingsplan zou zijn wanneer er kanker in uw schildwachtklier gevonden zou worden?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_F', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over Hoeveel pijn u kon verwachten tijdens het herstellen?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_G', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over De mogelijke complicaties?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_H', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over Dat de kans dat de tumor terug zou keren hetzelfde zou zijn voor beide soorten chirurgie (borstamputatie versus borstsparende operatie)?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_I', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over Hoe u kon verwachten dat uw geopereerde borst er uit zou zien na de operatie?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_J', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over Hoe de littekens van de borstsparende operatie er uit zouden zien?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_K', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over de grootte van uw borst die u kon verwachten na de borstsparende operatie?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_INFORMATION_BREAST_SURGEON_POSTOP_L', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van uw borstchirurg ontvangen heeft over de vorm van uw borst die u kon verwachten na de borstsparende operatie?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, ], }, @@ -650,91 +650,91 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'SATISFACTION_WITH_RADIATION_ONCOLOGIST_POSTOP_A', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van de radiotherapeut / bestralingsarts ontvangen heeft over hoeveel tijd elke bestraling in beslag zou nemen?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_RADIATION_ONCOLOGIST_POSTOP_B', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van de radiotherapeut / bestralingsarts ontvangen heeft over de positie waarin u zich zou bevinden tijdens de bestraling (bijv. op uw rug of buik)?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_RADIATION_ONCOLOGIST_POSTOP_C', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van de radiotherapeut / bestralingsarts ontvangen heeft over waarom u bestraling nodig zou hebben na een borstsparende operatie?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_RADIATION_ONCOLOGIST_POSTOP_D', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van de radiotherapeut / bestralingsarts ontvangen heeft over welk deel van uw borst bestraald zou moeten worden?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_RADIATION_ONCOLOGIST_POSTOP_E', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van de radiotherapeut / bestralingsarts ontvangen heeft over hoe de bestraling aan zou voelen?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_RADIATION_ONCOLOGIST_POSTOP_F', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van de radiotherapeut / bestralingsarts ontvangen heeft over hoe u tijdens de bestralingsperiode voor uw huid zou moeten zorgen (bijv. crème aanbrengen, wassen)?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_RADIATION_ONCOLOGIST_POSTOP_G', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van de radiotherapeut / bestralingsarts ontvangen heeft over dat er permanente huidmarkeringen op uw borst zouden worden aangebracht (tatoeagepuntjes)?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_RADIATION_ONCOLOGIST_POSTOP_H', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van de radiotherapeut / bestralingsarts ontvangen heeft over hoe moe u zich in het algemeen zou kunnen voelen tijdens de bestralingsperiode?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_RADIATION_ONCOLOGIST_POSTOP_I', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van de radiotherapeut / bestralingsarts ontvangen heeft over hoe de bestraling uw huid zou kunnen veranderen in de loop van de tijd (kleur, structuur)?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_RADIATION_ONCOLOGIST_POSTOP_J', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van de radiotherapeut / bestralingsarts ontvangen heeft over hoe de bestraling een effect zou kunnen hebben op hoe uw borsten eruit zien in de loop van de tijd?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_RADIATION_ONCOLOGIST_POSTOP_K', - input_label: { + label: { nl: 'Hoe tevreden of ontevreden bent u over de informatie die u van de radiotherapeut / bestralingsarts ontvangen heeft over mogelijke problemen (late effecten) die de bestraling op termijn zou kunnen veroorzaken?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, ], }, @@ -744,99 +744,99 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_A', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij professioneel was?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_B', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij u een vertrouwd gevoel gaf?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_C', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij u betrok bij het proces van beslissen?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_D', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij geruststellend was?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_E', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij al uw vragen beantwoordde?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_F', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij u op uw gemak stelde?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_G', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij grondig was?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_H', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij gemakkelijk om mee te praten?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_I', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij begreep wat u wilde?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_J', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij invoelend was?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_K', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij tijd nam voor de zaken waar u zorgen over had?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_SURGEON_POSTOP_L', - input_label: { + label: { nl: 'Deze vraag gaat over uw borstkanker chirurg. Had u het gevoel dat hij/zij beschikbaar was als u ergens zorgen over had?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, ], }, @@ -846,59 +846,59 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'SATISFACTION_WITH_MEDICAL_TEAM_POSTOP_A', - input_label: { + label: { nl: 'Deze vraag gaat over de leden van het medisch team, maar niet uw chirurg. Had u het gevoel dat zij professioneel waren?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_MEDICAL_TEAM_POSTOP_B', - input_label: { + label: { nl: 'Deze vraag gaat over de leden van het medisch team, maar niet uw chirurg. Had u het gevoel dat zij u met respect behandelden?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_MEDICAL_TEAM_POSTOP_C', - input_label: { + label: { nl: 'Deze vraag gaat over de leden van het medisch team, maar niet uw chirurg. Had u het gevoel dat zij kennis van zaken hadden?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_MEDICAL_TEAM_POSTOP_D', - input_label: { + label: { nl: 'Deze vraag gaat over de leden van het medisch team, maar niet uw chirurg. Had u het gevoel dat zij vriendelijk en aardig waren?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_MEDICAL_TEAM_POSTOP_E', - input_label: { + label: { nl: 'Deze vraag gaat over de leden van het medisch team, maar niet uw chirurg. Had u het gevoel dat zij u op uw gemak stelden?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_MEDICAL_TEAM_POSTOP_F', - input_label: { + label: { nl: 'Deze vraag gaat over de leden van het medisch team, maar niet uw chirurg. Had u het gevoel dat zij grondig waren?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_MEDICAL_TEAM_POSTOP_G', - input_label: { + label: { nl: 'Deze vraag gaat over de leden van het medisch team, maar niet uw chirurg. Had u het gevoel dat zij tijd namen voor de zaken waar u zorgen over had?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, ], }, @@ -908,59 +908,59 @@ export const BREAST_Q_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'SATISFACTION_WITH_OFFICE_STAFF_POSTOP_A', - input_label: { + label: { nl: 'Deze vraag gaat over het administratief/kantoorpersoneel (bijv. secretaresses). Had u het gevoel dat zij professioneel waren?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_OFFICE_STAFF_POSTOP_B', - input_label: { + label: { nl: 'Deze vraag gaat over het administratief/kantoorpersoneel (bijv. secretaresses). Had u het gevoel dat zij u met respect behandelden?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_OFFICE_STAFF_POSTOP_C', - input_label: { + label: { nl: 'Deze vraag gaat over het administratief/kantoorpersoneel (bijv. secretaresses). Had u het gevoel dat zij kennis van zaken hadden?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_OFFICE_STAFF_POSTOP_D', - input_label: { + label: { nl: 'Deze vraag gaat over het administratief/kantoorpersoneel (bijv. secretaresses). Had u het gevoel dat zij vriendelijk en aardig waren?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_OFFICE_STAFF_POSTOP_E', - input_label: { + label: { nl: 'Deze vraag gaat over het administratief/kantoorpersoneel (bijv. secretaresses). Had u het gevoel dat zij u op uw gemak stelden?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_OFFICE_STAFF_POSTOP_F', - input_label: { + label: { nl: 'Deze vraag gaat over het administratief/kantoorpersoneel (bijv. secretaresses). Had u het gevoel dat zij grondig waren?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, { input_id: 'SATISFACTION_WITH_OFFICE_STAFF_POSTOP_G', - input_label: { + label: { nl: 'Deze vraag gaat over het administratief/kantoorpersoneel (bijv. secretaresses). Had u het gevoel dat zij tijd voor de zaken namen waar u zorgen over had?', en: '', }, - input_type: INPUT_TYPES.one_to_four, + type: INPUT_TYPES.one_to_four, }, ], }, diff --git a/todo/cade_q/short_version/definition/cade_q_inputs.ts b/todo/cade_q/short_version/definition/cade_q_inputs.ts index 84ece93..f56921c 100644 --- a/todo/cade_q/short_version/definition/cade_q_inputs.ts +++ b/todo/cade_q/short_version/definition/cade_q_inputs.ts @@ -3,7 +3,7 @@ import { NumberInputType } from '../../../../src/types/calculations/inputs/calcu export const DONT_KNOW_ANSWER = 999 -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -30,140 +30,140 @@ const input_type: NumberInputType = { export const CADE_Q_INPUTS: Array = [ { input_id: 'Q01', - input_label: { + label: { en: 'Coronary Artery Disease is a disease of the arteries in the heart which only happens in older people who have high cholesterol or smoke.', }, input_type, }, { input_id: 'Q02', - input_label: { + label: { en: 'Examples of risk factors for heart disease that can be changed are: blood pressure, cholesterol, smoking and second hand smoking, waist size, and reaction to stress.', }, input_type, }, { input_id: 'Q03', - input_label: { + label: { en: '“Angina” is chest pain or discomfort, at rest or during physical activity, which can be felt in the arm, back and/or neck.', }, input_type, }, { input_id: 'Q04', - input_label: { + label: { en: 'The benefits of resistance training (lifting weights or using elastic bands) include: increasing strength, improving the ability to carry out day to day activities, improving blood sugar levels and increasing muscle mass.', }, input_type, }, { input_id: 'Q05', - input_label: { + label: { en: 'Eating more meat and dairy products is a good way to add more fibre to one’s diet.', }, input_type, }, { input_id: 'Q06', - input_label: { + label: { en: 'Anti-platelet medications such as aspirin (ASA) are important because they lower the “stickiness” of platelets in the bloods that blood flows more easily through coronary arteries and past coronary stents.', }, input_type, }, { input_id: 'Q07', - input_label: { + label: { en: 'The only effective strategy to manage stress is to avoid people who cause unpleasant feelings', }, input_type, }, { input_id: 'Q08', - input_label: { + label: { en: 'An exercise warm-up slowly increases heart rate and can lower the risk of developing angina.', }, input_type, }, { input_id: 'Q09', - input_label: { + label: { en: 'Prepared, processed foods usually have high sodium content.', }, input_type, }, { input_id: 'Q10', - input_label: { + label: { en: 'Depression is common after a heart attack. Depression can lower one’s energy level for rehab and increases the risk of another heart attack.', }, input_type, }, { input_id: 'Q11', - input_label: { + label: { en: 'The “statin” medications limit how much cholesterol the body absorbs from food. Statin medications include atorvastatin (LipitorTM), rosuvastatin (Crestor TM), or simvastatin (Zocor TM).', }, input_type, }, { input_id: 'Q12', - input_label: { + label: { en: 'To control blood pressure, one should lower the amount of sodium in the diet to less than 2000 mg per day, exercise, take blood pressure medication regularly (if prescribed), and learn relaxation techniques.', }, input_type, }, { input_id: 'Q13', - input_label: { + label: { en: 'If someone gets chest discomfort during a walking exercise session, he or she should speed up to see if the discomfort goes away.', }, input_type, }, { input_id: 'Q14', - input_label: { + label: { en: 'Trans fats are partially hydrogenated vegetable oils (e.g. vegetable shortening) and are unhealthy.', }, input_type, }, { input_id: 'Q15', - input_label: { + label: { en: 'Sleep apnea that is not treated increases the risk for another heart attack, but it does not increase risk of death.', }, input_type, }, { input_id: 'Q16', - input_label: { + label: { en: 'To control cholesterol, one should become a vegetarian and avoid eggs.', }, input_type, }, { input_id: 'Q17', - input_label: { + label: { en: 'Someone knows if he or she is exercising at the right level when the heart rate is in the target zone, the exertion level is no higher than “somewhat hard”, and he or she can exercise and talk at the same time.', }, input_type, }, { input_id: 'Q18', - input_label: { + label: { en: 'Diabetes cannot be prevented with exercise and healthy eating', }, input_type, }, { input_id: 'Q19', - input_label: { + label: { en: 'Stress is a large risk for heart attack and is as important as high blood pressure and diabetes.', }, input_type, }, { input_id: 'Q20', - input_label: { + label: { en: 'A diet that can help lower blood pressure is rich in: vegetables and fruits, whole grains, low fat dairy, nuts and seeds', }, input_type, diff --git a/todo/caregiver_strain_index/definition/caregiver_strain_index_inputs.ts b/todo/caregiver_strain_index/definition/caregiver_strain_index_inputs.ts index 38f9a93..8d591f1 100644 --- a/todo/caregiver_strain_index/definition/caregiver_strain_index_inputs.ts +++ b/todo/caregiver_strain_index/definition/caregiver_strain_index_inputs.ts @@ -4,7 +4,7 @@ import { NumberInputType } from '../../../src/types/calculations/inputs/calculat const NO_ANSWER = 0 const YES_ANSWER = 1 -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: NO_ANSWER, label: { en: 'No', nl: 'Nee' } }, @@ -15,7 +15,7 @@ const input_type: NumberInputType = { export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ { input_id: 'CSI_Q01', - input_label: { + label: { nl: 'Mijn nachtrust is verstoord.', en: 'My sleep is disturbed (e.g., because the person I care for is in and out of bed or wanders around at night)', }, @@ -24,7 +24,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q02', - input_label: { + label: { nl: 'Hem of haar helpen kost me nogal wat moeite en tijd.', en: 'Caregiving is inconvenient (e.g., helping takes so much time or it’s a long drive over to help)', }, @@ -33,7 +33,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q03', - input_label: { + label: { nl: 'Ik vind het lichamelijk zwaar.', en: 'It is a physical strain (e.g., because of lifting in and out of a chair; effort or concentration is required)', }, @@ -42,7 +42,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q04', - input_label: { + label: { nl: 'Het beperkt me in andere dingen die ik wil doen.', en: 'Caregiving is confining (e.g., helping restricts free time or cannot go visiting)', }, @@ -51,7 +51,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q05', - input_label: { + label: { nl: 'Wij hebben onze dagelijkse manier van doen moeten aanpassen.', en: 'There have been family adjustments (e.g., because helping has disrupted routine; there has been no privacy)', }, @@ -60,7 +60,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q06', - input_label: { + label: { nl: 'Wij hebben onze plannen moeten wijzigen.', en: 'There have been changes in personal plans (e.g., had to turn down a job; could not go on vacation)', }, @@ -69,7 +69,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q07', - input_label: { + label: { nl: 'Er zijn ook andere zaken waaraan ik mijn tijd moet besteden.', en: 'There have been other demands on my time (e.g., other family members need me)', }, @@ -78,7 +78,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q08', - input_label: { + label: { nl: 'Emotioneel gedragen we ons anders ten opzichte van elkaar.', en: 'There have been emotional adjustments (e.g., because of severe arguments)', }, @@ -87,7 +87,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q09', - input_label: { + label: { nl: 'Het gedrag van mijn man/vrouw maakt me soms van streek.', en: 'Some behavior is upsetting (e.g., because of incontinence; the person I care for has trouble remembering things; or the person I care for accuses people of taking things)', }, @@ -96,7 +96,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q10', - input_label: { + label: { nl: 'Het is pijnlijk te moeten zien dat hij/zij een ander persoon is geworden.', en: 'It is upsetting to find that he/she has changed so much from his/her former self (e.g., he/she is a different person than he/she used to be)', }, @@ -105,7 +105,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q11', - input_label: { + label: { nl: 'Ik heb mijn werk/baan moeten aanpassen aan de situatie.', en: 'There have been work adjustments (e.g., because of having to take time off)', }, @@ -114,7 +114,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q12', - input_label: { + label: { nl: 'Ik word geheel door deze situatie in beslag genomen.', en: "I'm feeling completely overwhelmed (e.g., because of worry about the person I care for; concerns about how you I will manage)", }, @@ -123,7 +123,7 @@ export const CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q13', - input_label: { + label: { nl: 'We leven onder financiële druk.', en: 'It is a financial strain', }, diff --git a/todo/cat/definition/cat_inputs.ts b/todo/cat/definition/cat_inputs.ts index 14bc506..6d2eb54 100644 --- a/todo/cat/definition/cat_inputs.ts +++ b/todo/cat/definition/cat_inputs.ts @@ -3,8 +3,8 @@ import type { InputType } from '../../../src/types/calculations.types' export const CAT_INPUTS: Array = [ { input_id: '1_COUGH', - input_label: { en: 'Cough' }, - input_type: { + label: { en: 'Cough' }, + type: { type: 'number', allowed_answers: [ { @@ -36,8 +36,8 @@ export const CAT_INPUTS: Array = [ }, { input_id: '2_PHLEGM', - input_label: { en: 'Phlegm' }, - input_type: { + label: { en: 'Phlegm' }, + type: { type: 'number', allowed_answers: [ { @@ -69,8 +69,8 @@ export const CAT_INPUTS: Array = [ }, { input_id: '3_CHEST_TIGHTNESS', - input_label: { en: 'Chest tightness' }, - input_type: { + label: { en: 'Chest tightness' }, + type: { type: 'number', allowed_answers: [ { @@ -102,8 +102,8 @@ export const CAT_INPUTS: Array = [ }, { input_id: '4_BREATHLESSNESS', - input_label: { en: 'Breathlessness' }, - input_type: { + label: { en: 'Breathlessness' }, + type: { type: 'number', allowed_answers: [ { @@ -139,8 +139,8 @@ export const CAT_INPUTS: Array = [ }, { input_id: '5_ACTIVITIES', - input_label: { en: 'Activities' }, - input_type: { + label: { en: 'Activities' }, + type: { type: 'number', allowed_answers: [ { @@ -172,10 +172,10 @@ export const CAT_INPUTS: Array = [ }, { input_id: '6_CONFIDENCE', - input_label: { + label: { en: 'Confidence', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -211,8 +211,8 @@ export const CAT_INPUTS: Array = [ }, { input_id: '7_SLEEP', - input_label: { en: 'Sleep' }, - input_type: { + label: { en: 'Sleep' }, + type: { type: 'number', allowed_answers: [ { @@ -244,8 +244,8 @@ export const CAT_INPUTS: Array = [ }, { input_id: '8_ENERGY', - input_label: { en: 'Energy' }, - input_type: { + label: { en: 'Energy' }, + type: { type: 'number', allowed_answers: [ { diff --git a/todo/ccq/definition/ccq_scales.ts b/todo/ccq/definition/ccq_scales.ts index 0690c86..8fb2e24 100644 --- a/todo/ccq/definition/ccq_scales.ts +++ b/todo/ccq/definition/ccq_scales.ts @@ -7,10 +7,10 @@ export const CCQ_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'Q01', - input_label: { + label: { en: 'On average, during the past week, how often did you feel: Short of breath at rest?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Never' } }, @@ -25,10 +25,10 @@ export const CCQ_SCALES: Array = [ }, { input_id: 'Q02', - input_label: { + label: { en: 'On average, during the past week, how often did you feel: Short of breath doing physical activities?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Never' } }, @@ -43,10 +43,10 @@ export const CCQ_SCALES: Array = [ }, { input_id: 'Q05', - input_label: { + label: { en: 'In general, during the past week, how much of the time: Did you cough?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Never' } }, @@ -61,10 +61,10 @@ export const CCQ_SCALES: Array = [ }, { input_id: 'Q06', - input_label: { + label: { en: 'In general, during the past week, how much of the time: Did you produce phlegm?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Never' } }, @@ -85,10 +85,10 @@ export const CCQ_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'Q07', - input_label: { + label: { en: 'On average, during the past week, how limited were you in these activities because of your breathing problems: Strenuous physical activities (such as climbing stairs, hurrying, doing sports)?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Not limited at all' } }, @@ -103,10 +103,10 @@ export const CCQ_SCALES: Array = [ }, { input_id: 'Q08', - input_label: { + label: { en: 'On average, during the past week, how limited were you in these activities because of your breathing problems: Moderate physical activities (such as walking, housework, carrying things)?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Not limited at all' } }, @@ -121,10 +121,10 @@ export const CCQ_SCALES: Array = [ }, { input_id: 'Q09', - input_label: { + label: { en: 'On average, during the past week, how limited were you in these activities because of your breathing problems: Daily activities at home (such as dressing, washing yourself)?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Not limited at all' } }, @@ -139,10 +139,10 @@ export const CCQ_SCALES: Array = [ }, { input_id: 'Q10', - input_label: { + label: { en: 'On average, during the past week, how limited were you in these activities because of your breathing problems: Social activities (such as talking, being with children, visiting friends/ relatives)?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Not limited at all' } }, @@ -163,10 +163,10 @@ export const CCQ_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'Q03', - input_label: { + label: { en: 'On average, during the past week, how often did you feel: Concerned about getting a cold or your breathing getting worse?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Never' } }, @@ -181,10 +181,10 @@ export const CCQ_SCALES: Array = [ }, { input_id: 'Q04', - input_label: { + label: { en: 'On average, during the past week, how often did you feel: Depressed (down) because of your breathing problems?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Never' } }, diff --git a/todo/cdlqi/definition/cdlqi_subscales.ts b/todo/cdlqi/definition/cdlqi_subscales.ts index abc9ffe..6225f06 100644 --- a/todo/cdlqi/definition/cdlqi_subscales.ts +++ b/todo/cdlqi/definition/cdlqi_subscales.ts @@ -32,7 +32,7 @@ const ALLOWED_ANSWERS = [ //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }) export const CDLQI_subscales: Array = [ @@ -40,7 +40,7 @@ export const CDLQI_subscales: Array = [ id: 'SYMPTOMS_AND_FEELINGS', input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heb jij afgelopen week last gehad van een jeukende, pijnlijke of stekende huid?', en: 'Over the last week, how itchy, "scratchy", sore or painful has your skin been?', fr: 'Au cours de la semaine dernière, est-ce que ta peau t\'a démangé, "gratté", ou t\'a fait mal ?', @@ -49,7 +49,7 @@ export const CDLQI_subscales: Array = [ input_id: 'CDLQI_Q01', }, { - input_label: { + label: { nl: 'Heb jij je geschaamd of niet prettig gevoeld over je huidafwijking?', en: 'Over the last week, how embarrassed or self conscious, upset or sad have you been because of your skin?', fr: "Au cours de la semaine dernière, est-ce que tu as été gêné ou mal à l'aise, malheureux ou triste à cause de tes problèmes de peau ?", @@ -66,7 +66,7 @@ export const CDLQI_subscales: Array = [ id: 'LEISURE', input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hoe vaak heb je afgelopen week andere of speciele kleren/schoenen aangetrokken vanwege je huidproblemen?', en: 'Over the last week, how much have you changed or worn different or special clothes/shoes because of your skin?', fr: 'Au cours de la semaine dernière, est-ce que tu as dû te changer ou porter des chaussures ou des vêtements différents ou spéciaux à cause de tes problèmes de peau ?', @@ -75,7 +75,7 @@ export const CDLQI_subscales: Array = [ input_id: 'CDLQI_Q04', }, { - input_label: { + label: { nl: 'Had je afgelopen week moeite om te spelen of uit te gaan door je huidproblemen?', en: 'Over the last week, how much has your skin trouble affected going out, playing, or doing hobbies?', fr: "Au cours de la semaine dernière, est-ce que tes problèmes de peau t'ont gêné pour sortir, jouer, ou faire les choses qui t'intéressent ?", @@ -84,7 +84,7 @@ export const CDLQI_subscales: Array = [ input_id: 'CDLQI_Q05', }, { - input_label: { + label: { nl: 'Had je afgelopen week moeite om te gaan zwemmen of te sporten door je huidafwijking?', en: 'Over the last week, how much have you avoided swimming or other sports because of your skin trouble?', fr: "Au cours de la semaine dernière, est-ce que tu as évité d'aller nager ou de faire du sport à cause de tes problèmes de peau ?", @@ -101,14 +101,14 @@ export const CDLQI_subscales: Array = [ id: 'SCHOOL_OR_HOLIDAYS', input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Als je op school zat: heb je afgelopen week last gehad van je huidafwijking op school?', en: 'If school time: Over the last week, how much did your skin problem affect your school work?', fr: "Si tu avais école : au cours de la semaine dernière, est-ce que tes problèmes de peau ont eu des conséquences sur ton travail à l'école ?", de: 'Wenn in der Schulzeit: Hat dein, in der letzten woche, Hautproblem deine Mitarbeit in der Schule gestört?', }, input_id: 'CDLQI_Q07_SCHOOL', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS, }, @@ -117,14 +117,14 @@ export const CDLQI_subscales: Array = [ }, }, { - input_label: { + label: { nl: 'Als je vakantie had: heb je afgelopen week in de vakantie last gehad van je huid zodat je geen plezier kon hebben?', en: 'If holiday time: How much over the last week, has your skin problem interfered with your enjoyment of the holiday?', fr: "Si tu étais en vacances : au cours de la semaine dernière, est-ce que tes problèmes de peau t'ont empêché de passer de bonnes vacances ?", de: 'Wenn in den Ferien: Hat dein, in der letzten woche, Hautproblem deinen Spaß an den Ferien gestört?', }, input_id: 'CDLQI_Q07_HOLIDAY', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, info: { en: 'If "CDLQI_Q07_HOLIDAY" has an answer, "CDLQI_Q07_SCHOOL" should not have answer since only one and not both can be answered', }, @@ -138,7 +138,7 @@ export const CDLQI_subscales: Array = [ id: 'PERSONAL_RELATIONSHIPS', input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heb jij afgelopen week gemerkt dat je vriendjes of je vriendinnetjes het niet leuk vonden met jou te spelen vanwege je huidafwijking?', en: 'Over the last week, how much has your skin affected your friendships?', fr: 'Au cours de la semaine dernière, est-ce que tes problèmes de peau ont changé tes relations avec tes copains ?', @@ -147,7 +147,7 @@ export const CDLQI_subscales: Array = [ input_id: 'CDLQI_Q03', }, { - input_label: { + label: { nl: 'Ben je gepest of uitgescholden of hebben mensen aan jou gevraagd wat je had?', en: 'ver the last week, how much trouble have you had because of your skin with other people calling you names, teasing,bullying, asking questions or avoiding you?', fr: "Au cours de la semaine dernière, est-ce qu'à cause de tes problèmes de peau tu as été embêté(e) par les autres : ils te donnaient de drôles de noms, te taquinaient, cherchaient la bagarre, te posaient des questions, ou t'évitaient ?", @@ -164,7 +164,7 @@ export const CDLQI_subscales: Array = [ id: 'SLEEP', input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had je last van je huid bij het slapen?', en: 'Over the last week, how much has your sleep been affected by your skin problem?', fr: 'Au cours de la semaine dernière, est-ce que tu as mal dormi à cause de tes problèmes de peau ?', @@ -181,7 +181,7 @@ export const CDLQI_subscales: Array = [ id: 'TREATMENT', input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hoeveel problemen had je afgelopen week met de behandeling voor je huid?', en: 'Over the last week, how much of a problem has the treatment for your skin been?', fr: "Au cours de la semaine dernière, est-ce que le traitement pour ta peau t'a posé des problèmes ?", diff --git a/todo/chc/femmes_enceintes/triage/definition/triage_inputs.ts b/todo/chc/femmes_enceintes/triage/definition/triage_inputs.ts index fb7fbd2..2f3b83e 100644 --- a/todo/chc/femmes_enceintes/triage/definition/triage_inputs.ts +++ b/todo/chc/femmes_enceintes/triage/definition/triage_inputs.ts @@ -8,149 +8,149 @@ const ALLOWED_ANSWERS = [ export const TRIAGE_INPUTS: Array = [ { input_id: 'Q1', - input_label: { + label: { fr: 'Avez-vous ou un membre de votre famille proche une anomalie de la coagulation (hémophilie, déficit en facteur de coagulation, maladie de von Willebrand, …)? si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q2', - input_label: { + label: { fr: 'Prenez-vous un médicament qui fluidifie le sang (CLOPIDOGREL/PLAVIX, HÉPARINE/CLEXANE/FRAXODI/FRAXI/FRAGMIN/ASPIRINE …)? si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q3', - input_label: { + label: { fr: 'Avez-vous déjà̀ consulté un médecin ou reçu un traitement pour un saignement prolongé, spontané ou inhabituel (par exemple après un saignement de nez ou une petite coupure) ?', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q4', - input_label: { + label: { fr: 'Avez-vous tendance à faire des bleus de plus de 2 cm ou des hématomes importants, sans choc ou traumatisme ou bien après un choc ou un traumatisme sans importance ?', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q5', - input_label: { + label: { fr: 'Avez-vous présenté un saignement anormal pendant ou après une visite cheź votre dentiste (pour une extraction dentaire par exemple) ?', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q6', - input_label: { + label: { fr: 'Avez-vous saigné de manière anormale pendant ou après une intervention chirurgicale : Saignement anormal signalé par votre chirurgien / transfusion de sang pour une chirurgie banale (amygdales – végétation par exemple) /ré hospitalisation pour saignement ?', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q7', - input_label: { + label: { fr: 'Avez-vous consulté un médecin ou reçu un traitement pour des règles trop abondantes par exemple contraception orale (pilule), traitement par fer, médicament pour diminuer le saignement comme l’EXACYL ... ?', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q8', - input_label: { + label: { fr: 'Avez-vous saigné de façon anormale après un accouchement ?', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q9', - input_label: { + label: { fr: 'Etes-vous suivie par un neurologue ou neurochirurgien? Si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q10', - input_label: { + label: { fr: 'Avez-vous un problème de colonne vertébrale sévère malformation, opération antérieure, lésion de moelle épinière, spina bifida, neurofibromatose, sclérose en plaque,…)? Si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q11', - input_label: { + label: { fr: 'Avez-vous ou avez-vous eu un problème cérébral (tumeur, anévrisme, hypertension intracrânienne, dispositif de dérivation, épilepsie, …)? si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q12', - input_label: { + label: { fr: 'Souffrez-vous d’une maladie musculaire (myasthénie, myopathie de Duchenne, ...)? si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q13', - input_label: { + label: { fr: 'Avez-vous déjà bénéficié d’une péridurale ou d’une rachianesthésie (injection dans le dos également) très difficile ou impossible à réaliser? si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q14', - input_label: { + label: { fr: 'Avez-vous une allergie connue à un produit d’anesthésie administré lors d’une anesthésie générale ou lors d’une anesthésie locale (chez le dentiste par exemple) ? Si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q15', - input_label: { + label: { fr: 'Vous ou un membre de votre famille a-t-il déjà fait une réaction anormale (“hyperthermie maligne” par exemple) lors d’une anesthésie générale? Si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q16', - input_label: { + label: { fr: 'Souffrez-vous d’insuffisance rénale, hépatique (foie), cardiaque ou pulmonaire? Avez-vous bénéficié d’une greffe pour l’un de ces organes? Si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q17', - input_label: { + label: { fr: 'Avez-vous un problème cardiaque (malformation, opération antérieure, problème de valve, arythmie, défibrillateur/pacemaker, …) ? Si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q18', - input_label: { + label: { fr: 'Souffrez-vous d’anémie sévère (taux d’hémoglobine < 10 gr/dl) par manque de fer ou drépanocytose (anémie falciforme)? Si oui, précisez', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q19', - input_label: { + label: { fr: 'Avez-vous déjà fait une embolie pulmonaire, une thrombophlébite ou un accident vasculaire cérébral ? Si oui, précisez le contexte', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q20', - input_label: { + label: { fr: 'Consommez-vous des drogues “dures” (cocaïne, héroïne, amphétamines, champignons hallucinogènes…) ?', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, { input_id: 'Q21', - input_label: { + label: { fr: 'Une césarienne est-elle prévue d’office ou est-elle hautement probable ?', }, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }, ] diff --git a/todo/chc/preop/brochure_triage/definition/inputs.ts b/todo/chc/preop/brochure_triage/definition/inputs.ts index 2ecc9ff..f7cf20c 100644 --- a/todo/chc/preop/brochure_triage/definition/inputs.ts +++ b/todo/chc/preop/brochure_triage/definition/inputs.ts @@ -3,10 +3,10 @@ import type { InputType } from '../../../../../src/types/calculations.types' export const INPUTS: Array = [ { input_id: 'INTERVENTION_CODE', - input_label: { + label: { en: 'Intervention code', }, - input_type: { + type: { type: 'string', }, }, diff --git a/todo/comi/back/definition/comi_back_domains.ts b/todo/comi/back/definition/comi_back_domains.ts index dd40c1b..0f07615 100644 --- a/todo/comi/back/definition/comi_back_domains.ts +++ b/todo/comi/back/definition/comi_back_domains.ts @@ -11,11 +11,11 @@ export const COMI_BACK_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'item_1a', - input_label: { + label: { en: 'How severe was your back pain in the last week?', nl: 'Hoe erg was uw rugpijn in de afgelopen week?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No pain', nl: 'Geen pijn' } }, @@ -40,11 +40,11 @@ export const COMI_BACK_DOMAINS: Array = [ }, { input_id: 'item_1b', - input_label: { + label: { en: 'How severe was your leg pain (sciatica)/buttock pain in the last week?', nl: 'Hoe erg was uw beenpijn (ischias) en/of bilpijn in de afgelopen week?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No pain', nl: 'Geen pijn' } }, @@ -75,11 +75,11 @@ export const COMI_BACK_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'item_2', - input_label: { + label: { en: 'During the past week, how much did your back problem interfere with your normal work (including both work outside the home and housework)?', nl: 'In welke mate hinderde uw rugprobleem uw normale werk (zowel uw job als huishoudelijk werk) in de afgelopen week?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Helemaal niet', en: 'Not at all' } }, @@ -101,11 +101,11 @@ export const COMI_BACK_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'item_3', - input_label: { + label: { en: 'If you had to spend the rest of your life with the symptoms you have right now, how would you feel about it?', nl: 'Hoe zou u er zich bij voelen indien u de rest van uw leven zou moeten doorbrengen met de klachten die u nu voelt?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Zeer tevreden', en: 'Very satisfied' } }, @@ -142,11 +142,11 @@ export const COMI_BACK_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'item_4', - input_label: { + label: { en: 'Please reflect on the last week. How would you rate your quality of life?', nl: 'Als u aan de afgelopen week terugdenkt, hoe zou u uw levenskwaliteit inschatten/beoordelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Zeer goed', en: 'Very good' } }, @@ -165,11 +165,11 @@ export const COMI_BACK_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'item_5', - input_label: { + label: { en: 'During the past 4 weeks, how many days did you cut down on the things you usually do (work, housework, school, recreational activities) because of your back problem?', nl: 'Hoeveel dagen van de laatste 4 weken werden activiteiten die u normaal doet (uw job, huishoudelijk werk, school, recreatieve activiteiten) ingekort/verminderd omwille van uw rugprobleem?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Geen', en: 'None' } }, @@ -200,11 +200,11 @@ export const COMI_BACK_DOMAINS: Array = [ }, { input_id: 'item_6', - input_label: { + label: { en: 'During the past 4 weeks, how many days did your back problem keep you from going to work (job, school, housework)?', nl: 'Hoeveel dagen van de laatste 4 weken heeft uw rugprobleem u belet om te gaan werken (uw job, huishoudelijk werk, school)?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Geen', en: 'None' } }, diff --git a/todo/comi/neck/definition/comi_neck_domains.ts b/todo/comi/neck/definition/comi_neck_domains.ts index 818fdf8..82ed1c7 100644 --- a/todo/comi/neck/definition/comi_neck_domains.ts +++ b/todo/comi/neck/definition/comi_neck_domains.ts @@ -11,11 +11,11 @@ export const COMI_NECK_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'item_1a', - input_label: { + label: { en: 'How severe was your neck pain in the last week?', nl: 'Hoe erg was uw nekpijn in de afgelopen week?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No pain', nl: 'Geen pijn' } }, @@ -40,11 +40,11 @@ export const COMI_NECK_DOMAINS: Array = [ }, { input_id: 'item_1b', - input_label: { + label: { en: 'How severe was your arm/shoulder pain in the last week?', nl: 'Hoe erg was uw arm/schouder pijn in de afgelopen week?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No pain', nl: 'Geen pijn' } }, @@ -75,11 +75,11 @@ export const COMI_NECK_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'item_2', - input_label: { + label: { en: 'During the past week, how much did your neck problem interfere with your normal work (including both work outside the home and housework)?', nl: 'In welke mate hinderde uw nekproblemen uw normale werk (zowel uw job als huishoudelijk werk) in de afgelopen week?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Helemaal niet', en: 'Not at all' } }, @@ -101,11 +101,11 @@ export const COMI_NECK_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'item_3', - input_label: { + label: { en: 'If you had to spend the rest of your life with the symptoms you have right now, how would you feel about it?', nl: 'Hoe zou u er zich bij voelen indien u de rest van uw leven zou moeten doorbrengen met de klachten die u nu voelt?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Zeer tevreden', en: 'Very satisfied' } }, @@ -142,11 +142,11 @@ export const COMI_NECK_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'item_4', - input_label: { + label: { en: 'Please reflect on the last week. How would you rate your quality of life?', nl: 'Als u aan de afgelopen week terugdenkt, hoe zou u uw levenskwaliteit inschatten/beoordelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Zeer goed', en: 'Very good' } }, @@ -165,11 +165,11 @@ export const COMI_NECK_DOMAINS: Array = [ input_ids_in_subscale: [ { input_id: 'item_5', - input_label: { + label: { en: 'During the past 4 weeks, how many days did you cut down on the things you usually do (work, housework, school, recreational activities) because of your neck problem?', nl: 'Hoeveel dagen van de laatste 4 weken werden activiteiten die u normaal doet (uw job, huishoudelijk werk, school, recreatieve activiteiten) ingekort/verminderd omwille van uw nekprobleem?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Geen', en: 'None' } }, @@ -200,11 +200,11 @@ export const COMI_NECK_DOMAINS: Array = [ }, { input_id: 'item_6', - input_label: { + label: { en: 'During the past 4 weeks, how many days did your neck problem keep you from going to work (job, school, housework)?', nl: 'Hoeveel dagen van de laatste 4 weken heeft uw nekprobleem u belet om te gaan werken (uw job, huishoudelijk werk, school)?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Geen', en: 'None' } }, diff --git a/todo/compass_31/definition/compass_31_inputs.ts b/todo/compass_31/definition/compass_31_inputs.ts index 9f38c79..4f9c2de 100644 --- a/todo/compass_31/definition/compass_31_inputs.ts +++ b/todo/compass_31/definition/compass_31_inputs.ts @@ -3,10 +3,10 @@ import type { InputType } from '../../../src/types/calculations.types' export const COMPASS_31_INPUTS: Array = [ { input_id: 'Q01', - input_label: { + label: { en: 'In the past year, have you ever felt faint, dizzy, "goofy", or had difficulty thinking soon after standing up from a sitting or lying position?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -24,10 +24,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q02', - input_label: { + label: { en: 'When standing up, how frequently do you get these feelings or symptoms?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -61,10 +61,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q03', - input_label: { + label: { en: 'How would you rate the severity of these feelings or symptoms?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -92,10 +92,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q04', - input_label: { + label: { en: 'In the past year, have these feelings or symptoms that you have experienced:', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -141,10 +141,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q05', - input_label: { + label: { en: 'In the past year, have you ever noticed color changes in your skin, such as red, white, or purple?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -162,10 +162,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q06', - input_label: { + label: { en: 'What parts of your body are affected by these color changes? (Check all that apply)', }, - input_type: { + type: { type: 'numbers_array', allowed_answers: [ { @@ -187,10 +187,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q07', - input_label: { + label: { en: 'Are these changes in your skin color:', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -236,10 +236,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q08', - input_label: { + label: { en: 'In the past 5 years, what changes, if any, have occurred in your general body sweating?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -275,10 +275,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q09', - input_label: { + label: { en: 'Do your eyes feel excessively dry?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -296,10 +296,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q10', - input_label: { + label: { en: 'Does you mouth feel excessively dry?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -317,10 +317,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q11', - input_label: { + label: { en: 'For the symptom of dry eyes or dry mouth that you have had for the longest period of time, is this symptom:', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -366,10 +366,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q12', - input_label: { + label: { en: 'In the past year, have you noticed any changes in how quickly you get full when eating a meal?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -405,10 +405,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q13', - input_label: { + label: { en: 'In the past year, have you felt excessively full or persistently full (bloated feeling) after a meal?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -432,10 +432,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q14', - input_label: { + label: { en: 'In the past year, have you vomited after a meal?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -459,10 +459,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q15', - input_label: { + label: { en: 'In the past year, have you had a cramping or colicky abdominal pain?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -486,10 +486,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q16', - input_label: { + label: { en: 'In the past year, have you had any bouts of diarrhea?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -507,10 +507,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q17', - input_label: { + label: { en: 'How frequently does this occur?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -544,10 +544,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q18', - input_label: { + label: { en: 'How severe are these bouts of diarrhea?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -575,10 +575,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q19', - input_label: { + label: { en: 'Are your bouts of diarrhea getting:', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -624,10 +624,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q20', - input_label: { + label: { en: 'In the past year, have you been constipated?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -645,10 +645,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q21', - input_label: { + label: { en: 'How frequently are you constipated?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -682,10 +682,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q22', - input_label: { + label: { en: 'How severe are these episodes of constipation?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -713,10 +713,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q23', - input_label: { + label: { en: 'Is your constipation getting:', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -762,10 +762,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q24', - input_label: { + label: { en: 'In the past year, have you ever lost control of your bladder function?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -795,10 +795,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q25', - input_label: { + label: { en: 'In the past year, have you had difficulty passing urine?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -828,10 +828,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q26', - input_label: { + label: { en: 'In the past year, have you had trouble completely emptying your bladder?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -861,10 +861,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q27', - input_label: { + label: { en: 'In the past year, without sunglasses or tinted glasses, has bright light bothered your eyes?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -896,10 +896,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q28', - input_label: { + label: { en: 'How severe is this sensitivity to bright light', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -927,10 +927,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q29', - input_label: { + label: { en: 'In the past year, have you had trouble focusing your eyes?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -962,10 +962,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q30', - input_label: { + label: { en: 'How severe is this focusing problem?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -993,10 +993,10 @@ export const COMPASS_31_INPUTS: Array = [ }, { input_id: 'Q31', - input_label: { + label: { en: 'Is the most troublesome symptom with your eyes (i.e. sensitivity to bright light or trouble focusing) getting:', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/constant_murley_score/orthotoolkit_version/definition/constant_murley_scales.ts b/todo/constant_murley_score/orthotoolkit_version/definition/constant_murley_scales.ts index 3aed731..5b31b3d 100644 --- a/todo/constant_murley_score/orthotoolkit_version/definition/constant_murley_scales.ts +++ b/todo/constant_murley_score/orthotoolkit_version/definition/constant_murley_scales.ts @@ -6,11 +6,11 @@ export const CMS_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'Q01_PAIN_SCORE', - input_label: { + label: { en: 'Score the highest pain level that you have experienced in your shoulder during ordinary activities within the last 24 hours.', nl: 'Wat is de hoogste pijnscore die u de laatste 24u heeft ervaren in uw schouder tijdens het uitvoeren van normale activiteiten?', }, - input_type: { + type: { type: 'number', component: 'slider', range: { @@ -32,11 +32,11 @@ export const CMS_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'Q03_WORK_ADL_SCORE', - input_label: { + label: { en: 'How much of your normal daily work does your shoulder allow you to perform?', nl: 'Hoeveel van uw normale dagelijkse werk laat uw schouder toe om te doen?', }, - input_type: { + type: { type: 'number', component: 'slider', range: { @@ -53,11 +53,11 @@ export const CMS_SUBSCALES: Array = [ }, { input_id: 'Q04_SPORTS_HOBBY_SCORE', - input_label: { + label: { en: 'How much of your normal recreational activity does your shoulder allow you to perform?', nl: 'Hoeveel van uw normale recreationale activiteiten laat uw schouder toe om te doen?', }, - input_type: { + type: { type: 'number', component: 'slider', range: { @@ -74,11 +74,11 @@ export const CMS_SUBSCALES: Array = [ }, { input_id: 'Q02_SLEEP_SCORE', - input_label: { + label: { en: 'Is your sleep disturbed by your shoulder?', nl: 'Is je slaap verstoord door uw schouder?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -104,11 +104,11 @@ export const CMS_SUBSCALES: Array = [ }, { input_id: 'Q05_ADL_FUNCTIONING_SCORE', - input_label: { + label: { en: 'To which level can you use your hand comfortably?', nl: 'Tot welke hoogte kan u uw hand comfortabel gebruiken?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -151,11 +151,11 @@ export const CMS_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'Q06_FLEXION_ROM', - input_label: { + label: { en: 'Forward flexion', nl: 'Elevatie', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -193,11 +193,11 @@ export const CMS_SUBSCALES: Array = [ }, { input_id: 'Q07_ABDUCTION_ROM', - input_label: { + label: { en: 'Lateral elevation (abduction)', nl: 'Abductie', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -235,14 +235,14 @@ export const CMS_SUBSCALES: Array = [ }, { input_id: 'Q08_ENDOROTATION_ROM', - input_label: { + label: { en: 'Internal rotation', nl: 'Interne rotatie', }, info: { en: 'Patient points to anatomical landmarks with thumb', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -286,11 +286,11 @@ export const CMS_SUBSCALES: Array = [ }, { input_id: 'Q09_EXOROTATION_ROM', - input_label: { + label: { en: 'External rotation (check all that apply)', nl: 'Externe rotatie (check all that apply)', }, - input_type: { + type: { type: 'numbers_array', allowed_answers: [ { @@ -338,8 +338,8 @@ export const CMS_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'Q10_ATTEMPT_1', - input_label: { en: 'Stength - Attempt 1', nl: 'Kracht - Poging 1' }, - input_type: { + label: { en: 'Stength - Attempt 1', nl: 'Kracht - Poging 1' }, + type: { type: 'number', }, info: { @@ -350,8 +350,8 @@ export const CMS_SUBSCALES: Array = [ }, { input_id: 'Q11_ATTEMPT_2', - input_label: { en: 'Stength - Attempt 2', nl: 'Kracht - Poging 2' }, - input_type: { + label: { en: 'Stength - Attempt 2', nl: 'Kracht - Poging 2' }, + type: { type: 'number', }, info: { @@ -362,8 +362,8 @@ export const CMS_SUBSCALES: Array = [ }, { input_id: 'Q12_ATTEMPT_3', - input_label: { en: 'Stength - Attempt 3', nl: 'Kracht - Poging 3' }, - input_type: { + label: { en: 'Stength - Attempt 3', nl: 'Kracht - Poging 3' }, + type: { type: 'number', }, info: { diff --git a/todo/core_om/definition/core_om_inputs.ts b/todo/core_om/definition/core_om_inputs.ts index db56699..8c5f78c 100644 --- a/todo/core_om/definition/core_om_inputs.ts +++ b/todo/core_om/definition/core_om_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Not at all', it: 'Per nulla' } }, @@ -32,7 +32,7 @@ const input_type_reversed: NumberInputType = { export const CORE_OM_INPUTS: Array = [ { input_id: 'CORE_OM_Q01', - input_label: { + label: { it: 'Mi sono sentito terribilmente solo e isolato', en: 'Over the last week... I have felt terribly alone and isolated', }, @@ -40,7 +40,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q02', - input_label: { + label: { it: 'Mi sono sentito teso, ansioso o nervoso', en: 'Over the last week... I have felt tense, anxious or nervous', }, @@ -48,23 +48,23 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q03', - input_label: { + label: { it: 'Ho sentito di avere qualcuno a cui rivolgermi per ricevere un sostegno quando ne ho avuto bisogno', en: 'Over the last week... I have felt I have someone to turn to for support when needed ', }, - input_type: input_type_reversed, + type: input_type_reversed, }, { input_id: 'CORE_OM_Q04', - input_label: { + label: { it: 'Mi sono sentito a posto con me stesso', en: 'Over the last week... I have felt O.K. about myself', }, - input_type: input_type_reversed, + type: input_type_reversed, }, { input_id: 'CORE_OM_Q05', - input_label: { + label: { it: 'Mi sono sentito completamente privo di energia e di entusiasmo', en: 'Over the last week... I have felt totally lacking in energy and enthusiasm ', }, @@ -72,7 +72,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q06', - input_label: { + label: { it: 'Sono stato violento fisicamente verso altre persone', en: 'Over the last week... I have been physically violent to others', }, @@ -80,15 +80,15 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q07', - input_label: { + label: { it: 'Mi sono sentito capace di adattarmi in caso di difficoltà', en: 'Over the last week... I have felt able to cope when things go wrong', }, - input_type: input_type_reversed, + type: input_type_reversed, }, { input_id: 'CORE_OM_Q08', - input_label: { + label: { it: 'Sono stato disturbato da malesseri, dolori o altri problemi fisici', en: 'Over the last week... I have been troubled by aches, pains or other physical problems', }, @@ -96,7 +96,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q09', - input_label: { + label: { it: 'Ho pensato a farmi del male', en: 'Over the last week... I have thought of hurting myself', }, @@ -104,7 +104,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q10', - input_label: { + label: { it: 'Non ho avuto la forza di parlare con le persone', en: 'Over the last week... Talking to people has felt too much for me', }, @@ -112,7 +112,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q11', - input_label: { + label: { it: 'La tensione e l’ansia mi hanno impedito di fare cose importanti', en: 'Over the last week... Tension and anxiety have prevented me doing important things', }, @@ -120,15 +120,15 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q12', - input_label: { + label: { it: 'Sono stato contento per le cose che ho fatto', en: 'Over the last week... I have been happy with the things I have done', }, - input_type: input_type_reversed, + type: input_type_reversed, }, { input_id: 'CORE_OM_Q13', - input_label: { + label: { it: 'Sono stato disturbato da pensieri e stati d’animo indesiderati', en: 'Over the last week... I have been disturbed by unwanted thoughts and feelings', }, @@ -136,7 +136,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q14', - input_label: { + label: { it: 'Ho avuto voglia di piangere', en: 'Over the last week... I have felt like crying', }, @@ -144,7 +144,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q15', - input_label: { + label: { it: 'Ho provato panico o terrore', en: 'Over the last week... I have felt panic or terror', }, @@ -152,7 +152,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q16', - input_label: { + label: { it: 'Ho progettato di mettere fine alla mia vita', en: 'Over the last week... I made plans to end my life', }, @@ -160,7 +160,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q17', - input_label: { + label: { it: 'Mi sono sentito sopraffatto dai miei problemi', en: 'Over the last week... I have felt overwhelmed by my problems', }, @@ -168,7 +168,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q18', - input_label: { + label: { it: 'Ho avuto difficoltà ad addormentarmi o a mantenere il sonno', en: 'Over the last week... I have had difficulty getting to sleep or staying asleep', }, @@ -176,15 +176,15 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q19', - input_label: { + label: { it: 'Ho provato calore o affetto per qualcuno', en: 'Over the last week... I have felt warmth or affection for someone', }, - input_type: input_type_reversed, + type: input_type_reversed, }, { input_id: 'CORE_OM_Q20', - input_label: { + label: { it: 'Mi è stato impossibile mettere da parte i miei problemi', en: 'Over the last week... My problems have been impossible to put to one side ', }, @@ -192,15 +192,15 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q21', - input_label: { + label: { it: 'Sono stato in grado di fare la maggior parte delle cose che dovevo fare', en: 'Over the last week... I have been able to do most things I needed to ', }, - input_type: input_type_reversed, + type: input_type_reversed, }, { input_id: 'CORE_OM_Q22', - input_label: { + label: { it: 'Ho minacciato o intimorito qualcuno', en: 'Over the last week... I have threatened or intimidated another person ', }, @@ -208,7 +208,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q23', - input_label: { + label: { it: 'Mi sono sentito affranto o senza speranza', en: 'Over the last week... I have felt despairing or hopeless', }, @@ -216,7 +216,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q24', - input_label: { + label: { it: 'Ho pensato: “Sarebbe meglio essere morto”', en: 'Over the last week... I have thought it would be better if I were dead', }, @@ -224,7 +224,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q25', - input_label: { + label: { it: 'Mi sono sentito criticato da altre persone', en: 'Over the last week... I have felt criticised by other people', }, @@ -232,7 +232,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q26', - input_label: { + label: { it: 'Ho pensato di non avere amici', en: 'Over the last week... I have thought I have no friends', }, @@ -240,7 +240,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q27', - input_label: { + label: { it: 'Mi sono sentito infelic', en: 'Over the last week... I have felt unhappy ', }, @@ -248,7 +248,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q28', - input_label: { + label: { it: 'Sono stato turbato da immagini o ricordi indesiderati', en: 'Over the last week... Unwanted images or memories have been distressing me', }, @@ -256,7 +256,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q29', - input_label: { + label: { it: 'Mi sono sentito irritato mentre ero con altre persone', en: 'Over the last week... I have been irritable when with other people ', }, @@ -264,23 +264,23 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q30', - input_label: { + label: { it: 'Ho pensato che è mia la colpa dei problemi e delle difficoltà che ho', en: 'Over the last week... I have thought I am to blame for my problems and difficulties', }, - input_type: input_type_reversed, + type: input_type_reversed, }, { input_id: 'CORE_OM_Q31', - input_label: { + label: { it: 'Mi sono sentito ottimista per il mio futuro', en: 'Over the last week... I have felt optimistic about my future', }, - input_type: input_type_reversed, + type: input_type_reversed, }, { input_id: 'CORE_OM_Q32', - input_label: { + label: { it: 'Ho ottenuto ciò che volevo', en: 'Over the last week... I have achieved the things I wanted to', }, @@ -288,7 +288,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q33', - input_label: { + label: { it: 'Mi sono sentito umiliato o messo in imbarazzo da altre persone', en: 'Over the last week... I have felt humiliated or shamed by other people', }, @@ -296,7 +296,7 @@ export const CORE_OM_INPUTS: Array = [ }, { input_id: 'CORE_OM_Q34', - input_label: { + label: { it: 'Mi sono fatto del male fisicamente o ho messo seriamente in pericolo la mia salute', en: 'Over the last week... I have hurt myself physically or taken dangerous risks with my health', }, diff --git a/todo/cpdi/definition/cpdi_inputs.ts b/todo/cpdi/definition/cpdi_inputs.ts index 94fc21b..9ddb343 100644 --- a/todo/cpdi/definition/cpdi_inputs.ts +++ b/todo/cpdi/definition/cpdi_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Nooit' } }, @@ -15,7 +15,7 @@ const input_type: NumberInputType = { export const CPDI_INPUTS: Array = [ { input_id: 'CPDI_Q1', - input_label: { + label: { nl: 'Ik voel me nerveuzer en angstiger dan gewoonlijk.', }, input_type, @@ -23,7 +23,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q2', - input_label: { + label: { nl: 'Ik voel me onzeker en heb veel mondmaskers, medicatie, zeep, handschoenen en/of andere huishoudspullen gekocht.', }, input_type, @@ -31,7 +31,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q3', - input_label: { + label: { nl: 'Ik beeld me in dat ikzelf of iemand in mijn familie besmet is en ben hier zeer bang voor.', }, input_type, @@ -39,13 +39,13 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q4', - input_label: { nl: 'Ik voel me leeg en hulpeloos.' }, + label: { nl: 'Ik voel me leeg en hulpeloos.' }, input_type, required: true, }, { input_id: 'CPDI_Q5', - input_label: { + label: { nl: 'Ik leef mee met de patiënten met het coronavirus en hun familie. Ik heb met hen te doen.', }, input_type, @@ -53,7 +53,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q6', - input_label: { + label: { nl: 'Ik voel me hulpeloos en kwaad op mijn omgeving, de gezagdrager en de media.', }, input_type, @@ -61,7 +61,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q7', - input_label: { + label: { nl: 'Ik verlies het vertrouwen in de mensen om me heen', }, input_type, @@ -69,7 +69,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q8', - input_label: { + label: { nl: 'Ik verzamel dagelijks informatie over het coronavirus. Zelfs als het niet noodzakelijk is. ', }, input_type, @@ -77,7 +77,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q9', - input_label: { + label: { nl: 'Ik geloof alle informatie over het coronavirus van verschillende bronnen en ga niet na of ze correct zijn.', }, input_type, @@ -85,7 +85,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q10', - input_label: { + label: { nl: 'Ik geloof eerder in negatief nieuws over het coronavirus en ben sceptisch bij goed nieuws. ', }, input_type, @@ -93,7 +93,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q11', - input_label: { + label: { nl: 'Ik deel constant nieuws over het coronavirus (meestal negatief nieuws).', }, input_type, @@ -101,7 +101,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q12', - input_label: { + label: { nl: 'Ik vermijd nieuws over het coronavirus omdat ik hier schrik voor heb.', }, input_type, @@ -109,7 +109,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q13', - input_label: { + label: { nl: 'Ik ben sneller geïrriteerd en heb vaker conflicten met mijn familie.', }, input_type, @@ -117,13 +117,13 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q14', - input_label: { nl: 'Ik voel me moe en soms zelfs uitgeput.' }, + label: { nl: 'Ik voel me moe en soms zelfs uitgeput.' }, input_type, required: true, }, { input_id: 'CPDI_Q15', - input_label: { + label: { nl: 'Mijn reacties worden slomer door angstgevoelens.', }, input_type, @@ -131,13 +131,13 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q16', - input_label: { nl: 'Ik kan me moeilijk concentreren.' }, + label: { nl: 'Ik kan me moeilijk concentreren.' }, input_type, required: true, }, { input_id: 'CPDI_Q17', - input_label: { + label: { nl: 'Ik vind het moeilijk om beslissingen te nemen.', }, input_type, @@ -145,7 +145,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q18', - input_label: { + label: { nl: 'Tijdens de pandemie voel ik me vaak duizelig of heb ik rugpijn en een beklemmend gevoel in mijn borst.', }, input_type, @@ -153,7 +153,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q19', - input_label: { + label: { nl: 'Tijdens de pandemie voel ik vaak buikpijn, heb ik een opgezwollen gevoel en andere discomfort in mijn buik.', }, input_type, @@ -161,7 +161,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q20', - input_label: { + label: { nl: 'Ik voel me oncomfortabel wanneer ik met anderen communiceer.', }, input_type, @@ -169,7 +169,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q21', - input_label: { + label: { nl: 'Ik praat sinds kort nauwelijks met mijn familie.', }, input_type, @@ -177,7 +177,7 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q22', - input_label: { + label: { nl: 'Ik slaap niet goed. Ik droom altijd dat ik of iemand in mijn familie besmet is met het coronavirus.', }, input_type, @@ -185,13 +185,13 @@ export const CPDI_INPUTS: Array = [ }, { input_id: 'CPDI_Q23', - input_label: { nl: 'Ik heb geen eetlust.' }, + label: { nl: 'Ik heb geen eetlust.' }, input_type, required: true, }, { input_id: 'CPDI_Q24', - input_label: { + label: { nl: 'Ik heb last van constipatie of moet vaak plassen.', }, input_type, diff --git a/todo/csi/definition/csi_inputs.ts b/todo/csi/definition/csi_inputs.ts index 246ad51..78213fa 100644 --- a/todo/csi/definition/csi_inputs.ts +++ b/todo/csi/definition/csi_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Nooit', en: 'Never' } }, @@ -15,7 +15,7 @@ const input_type: NumberInputType = { export const CSI_INPUTS: Array = [ { input_id: 'Q01', - input_label: { + label: { nl: 'Ik voel me niet uitgeslapen ’s morgens als ik wakker word', en: 'I feel tired and unrefreshed when I wake from sleeping.', }, @@ -24,7 +24,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q02', - input_label: { + label: { nl: 'Mijn spieren voelen stijf en pijnlijk', en: 'My muscles feel stiff and achy.', }, @@ -33,13 +33,13 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q03', - input_label: { nl: 'Ik heb angstaanvallen', en: 'I have anxiety attacks.' }, + label: { nl: 'Ik heb angstaanvallen', en: 'I have anxiety attacks.' }, input_type, required: true, }, { input_id: 'Q04', - input_label: { + label: { nl: 'Ik knars of klem met mijn tanden', en: 'I grind or clench my teeth.', }, @@ -48,7 +48,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q05', - input_label: { + label: { nl: 'Ik heb last van diarree en/of constipatie', en: 'I have problems with diarrhea and/or constipation.', }, @@ -57,7 +57,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q06', - input_label: { + label: { nl: 'Ik heb hulp nodig bij het uitvoeren van dagelijkse activiteiten', en: 'I need help in performing my daily activities.', }, @@ -66,7 +66,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q07', - input_label: { + label: { nl: 'Ik ben gevoelig voor fel licht', en: 'I am sensitive to bright lights.', }, @@ -75,7 +75,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q08', - input_label: { + label: { nl: 'Ik ben snel moe bij fysieke activiteiten', en: 'I get tired very easily when I am physically active.', }, @@ -84,7 +84,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q09', - input_label: { + label: { nl: 'Ik heb pijn over mijn gehele lichaam', en: 'I feel pain all over my body.', }, @@ -93,13 +93,13 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q10', - input_label: { nl: 'Ik heb last van hoofdpijn', en: 'I have headaches.' }, + label: { nl: 'Ik heb last van hoofdpijn', en: 'I have headaches.' }, input_type, required: true, }, { input_id: 'Q11', - input_label: { + label: { nl: 'Ik heb een ongemakkelijk gevoel in mijn blaas en/of een branderig gevoel bij het plassen', en: 'I feel discomfort in my bladder and/or burning when I urinate.', }, @@ -108,13 +108,13 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q12', - input_label: { nl: 'Ik slaap niet goed', en: 'I do not sleep well.' }, + label: { nl: 'Ik slaap niet goed', en: 'I do not sleep well.' }, input_type, required: true, }, { input_id: 'Q13', - input_label: { + label: { nl: 'Ik kan me moeilijk concentreren', en: 'I have difficulty concentrating.', }, @@ -123,7 +123,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q14', - input_label: { + label: { nl: 'Ik heb huidproblemen zoals droge huid, jeuk of huiduitslag', en: 'I have skin problems such as dryness, itchiness, or rashes.', }, @@ -132,7 +132,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q15', - input_label: { + label: { nl: 'Stress verergert mijn lichamelijke klachten', en: 'Stress makes my physical symptoms get worse.', }, @@ -141,7 +141,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q16', - input_label: { + label: { nl: 'Ik voel me neerslachtig of depressief', en: 'I feel sad or depressed.', }, @@ -150,13 +150,13 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q17', - input_label: { nl: 'Ik heb weinig energie', en: 'I have low energy.' }, + label: { nl: 'Ik heb weinig energie', en: 'I have low energy.' }, input_type, required: true, }, { input_id: 'Q18', - input_label: { + label: { nl: 'Ik heb spierspanning in mijn nek en schouders', en: 'I have muscle tension in my neck and shoulders.', }, @@ -165,7 +165,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q19', - input_label: { + label: { nl: 'Ik heb pijn in mijn kaak', en: 'I have pain in my jaw.', }, @@ -174,7 +174,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q20', - input_label: { + label: { nl: 'Bepaalde geuren, zoals parfums, maken me duizelig en misselijk', en: 'Certain smells, such as perfumes, make me feel dizzy and nauseated.', }, @@ -183,7 +183,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q21', - input_label: { + label: { nl: 'Ik moet vaak plassen', en: 'I have to urinate frequently.', }, @@ -192,7 +192,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q22', - input_label: { + label: { nl: 'Mijn benen voelen ongemakkelijk en rusteloos wanneer ik ’s avonds wil gaan slapen', en: 'My legs feel uncomfortable and restless when I am trying to go to sleep at night.', }, @@ -201,7 +201,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q23', - input_label: { + label: { nl: 'Ik heb moeite om dingen te onthouden', en: 'I have difficulty remembering things.', }, @@ -210,7 +210,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q24', - input_label: { + label: { nl: 'Als kind heb ik traumatische gebeurtenissen meegemaakt', en: 'I suffered trauma as a child.', }, @@ -219,7 +219,7 @@ export const CSI_INPUTS: Array = [ }, { input_id: 'Q25', - input_label: { + label: { nl: 'Ik heb pijn in mijn bekkenregio', en: 'I have pain in my pelvic area.', }, diff --git a/todo/dast_10/definition/dast_10_inputs.ts b/todo/dast_10/definition/dast_10_inputs.ts index 2ff5c74..1191c2b 100644 --- a/todo/dast_10/definition/dast_10_inputs.ts +++ b/todo/dast_10/definition/dast_10_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -32,70 +32,70 @@ const input_type_inverse: NumberInputType = { export const DAST10_INPUTS: Array = [ { input_id: 'DAST10_Q01', - input_label: { + label: { en: 'Have you used drugs other than those required for medical reasons?', }, input_type, }, { input_id: 'DAST10_Q02', - input_label: { + label: { en: 'Do you abuse more than one drug at a time?', }, input_type, }, { input_id: 'DAST10_Q03', - input_label: { + label: { en: 'Are you always able to stop using drugs when you want to? (If never use drugs, answer “Yes.”)', }, - input_type: input_type_inverse, + type: input_type_inverse, }, { input_id: 'DAST10_Q04', - input_label: { + label: { en: 'Have you had "blackouts" or "flashbacks" as a result of drug use?', }, input_type, }, { input_id: 'DAST10_Q05', - input_label: { + label: { en: 'Do you ever feel bad or guilty about your drug use? If never use drugs, choose “No.”', }, input_type, }, { input_id: 'DAST10_Q06', - input_label: { + label: { en: 'Does your spouse (or parents) ever complain about your involvement with drugs?', }, input_type, }, { input_id: 'DAST10_Q07', - input_label: { + label: { en: 'Have you neglected your family because of your use of drugs?', }, input_type, }, { input_id: 'DAST10_Q08', - input_label: { + label: { en: 'Have you engaged in illegal activities in order to obtain drugs?', }, input_type, }, { input_id: 'DAST10_Q09', - input_label: { + label: { en: 'Have you ever experienced withdrawal symptoms (felt sick) when you stopped taking drugs?', }, input_type, }, { input_id: 'DAST10_Q10', - input_label: { + label: { en: 'Have you had medical problems as a result of your drug use (e.g., memory loss, hepatitis, convulsions, bleeding, etc.)?', }, input_type, diff --git a/todo/demo_calculation/definition/demo_inputs.ts b/todo/demo_calculation/definition/demo_inputs.ts index aa0cd94..0148236 100644 --- a/todo/demo_calculation/definition/demo_inputs.ts +++ b/todo/demo_calculation/definition/demo_inputs.ts @@ -3,19 +3,19 @@ import type { InputType } from '../../../src/types/calculations.types' export const DEMO_INPUTS: Array = [ { input_id: 'Q01_STRING', - input_label: { + label: { en: 'This is a string input type (free text)', }, - input_type: { + type: { type: 'string', }, }, { input_id: 'Q02_STRING_WITH_SET_OF_ALLOWED_ANSWERS', - input_label: { + label: { en: 'This is a string input type where only a specific set of string answers are allowed', }, - input_type: { + type: { type: 'string', allowed_answers: [ { @@ -53,19 +53,19 @@ export const DEMO_INPUTS: Array = [ }, { input_id: 'Q03_NUMBER', - input_label: { + label: { en: 'This is a numeric input type (without any validation, i.e. no range or set of limited allowed answers)', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'Q04_NUMBER_WITH_RANGE', - input_label: { + label: { en: 'This is a numeric input type with range validation [0, 10]', }, - input_type: { + type: { type: 'number', range: { min: { value: 0 }, @@ -75,10 +75,10 @@ export const DEMO_INPUTS: Array = [ }, { input_id: 'Q05_NUMBER_WITH_SET_OF_ALLOWED_ANSWERS', - input_label: { + label: { en: 'This is a numeric input type where only a specific set of numeric answers are allowed', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -116,10 +116,10 @@ export const DEMO_INPUTS: Array = [ }, { input_id: 'Q06_NUMBERS_ARRAY', - input_label: { + label: { en: 'This is a numbers array input type', }, - input_type: { + type: { type: 'numbers_array', allowed_answers: [ { @@ -157,10 +157,10 @@ export const DEMO_INPUTS: Array = [ }, { input_id: 'Q07_STRINGS_ARRAY', - input_label: { + label: { en: 'This is a strings array input type', }, - input_type: { + type: { type: 'strings_array', allowed_answers: [ { @@ -198,19 +198,19 @@ export const DEMO_INPUTS: Array = [ }, { input_id: 'Q08_BOOLEAN', - input_label: { + label: { en: 'This is a boolean input type', }, - input_type: { + type: { type: 'boolean', }, }, { input_id: 'Q09_BOOLEAN', - input_label: { + label: { en: 'This is a date input type', }, - input_type: { + type: { type: 'date', }, }, diff --git a/todo/difference_calc/definition/difference_inputs.ts b/todo/difference_calc/definition/difference_inputs.ts index 94823a5..9e3463d 100644 --- a/todo/difference_calc/definition/difference_inputs.ts +++ b/todo/difference_calc/definition/difference_inputs.ts @@ -3,15 +3,15 @@ import type { InputType } from '../../../src/types/calculations.types' export const DIFFERENCE_INPUTS: Array = [ { input_id: 'VALUE_1', - input_label: { en: 'Value 1' }, - input_type: { + label: { en: 'Value 1' }, + type: { type: 'number', }, }, { input_id: 'VALUE_2', - input_label: { en: 'Value 2' }, - input_type: { + label: { en: 'Value 2' }, + type: { type: 'number', }, }, diff --git a/todo/dlqi/definition/dlqi_subscales.ts b/todo/dlqi/definition/dlqi_subscales.ts index 9dae046..b994b22 100644 --- a/todo/dlqi/definition/dlqi_subscales.ts +++ b/todo/dlqi/definition/dlqi_subscales.ts @@ -10,13 +10,13 @@ export const DLQI_subscales: Array = [ input_ids_in_subscale: [ { input_id: 'DLQI_Q01', - input_label: { + label: { nl: 'Hoe jeukerig, pijnlijk of branderig is uw huid geweest, gedurende de afgelopen 7 dagen?', en: 'Over the last week, how itchy, sore, painful or stinging has your skin been?', fr: 'Au cours des 7 derniers jours, votre peau vous a-t-elle démangé(e), fait souffrir ou brûlé(e) ?', de: 'Wie sehr hat Ihre Haut in den vergangenen 7 Tagen gejuckt, war wund, hat geschmerzt oder gebrannt?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -60,13 +60,13 @@ export const DLQI_subscales: Array = [ }, { input_id: 'DLQI_Q02', - input_label: { + label: { nl: 'In welke mate heeft u zich vanwege uw huid opgelaten of ongemakkelijk gevoeld, gedurende de afgelopen 7 dagen?', en: 'Over the last week, how embarrassed or self conscious have you been because of your skin?', fr: 'Au cours des 7 derniers jours, vous êtes-vous senti(e) gêné(e) ou complexé(e) par votre problème de peau ?', de: 'Wie sehr hat Ihre Hauterkrankung Sie in den vergangenen 7 Tagen verlegen oder befangen gemacht?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -115,13 +115,13 @@ export const DLQI_subscales: Array = [ input_ids_in_subscale: [ { input_id: 'DLQI_Q03', - input_label: { + label: { nl: 'In welke mate heeft uw huid u gehinderd bij het winkelen of het werken in uw huis of tuin, gedurende de afgelopen 7 dagen?', en: 'Over the last week, how much has your skin interfered with you going shopping or looking after your home or garden?', fr: 'Au cours des 7 derniers jours, votre problème de peau vous a-t-il gêné(e) pour faire des courses, vous occuper de votre maison ou pour jardiner ?', de: 'Wie sehr hat Ihre Hauterkrankung Sie in den vergangenen 7 Tagen bei Einkäufen oder bei Haus- oder Gartenarbeit behindert?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -174,13 +174,13 @@ export const DLQI_subscales: Array = [ }, { input_id: 'DLQI_Q04', - input_label: { + label: { nl: 'In welke mate heeft uw huid invloed gehad op de kleren die u droeg, gedurende de afgelopen 7 dagen?', en: 'Over the last week, how much has your skin influenced the clothes you wear?', fr: 'Au cours des 7 derniers jours, votre problème de peau vous a-t-il influencé(e) dans le choix des vêtements que vous portiez ?', de: 'Wie sehr hat Ihre Hauterkrankung die Wahl der Kleidung beeinflußt, die Sie in den vergangenen 7 Tagen getragen haben?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -238,13 +238,13 @@ export const DLQI_subscales: Array = [ input_ids_in_subscale: [ { input_id: 'DLQI_Q05', - input_label: { + label: { nl: 'In welke mate heeft uw huid een nadelige invloed gehad op uw sociale activiteiten of vrijetijdsbesteding, gedurende de afgelopen 7 dagen?', en: 'Over the last week, how much has your skin affected any social or leisure activities?', fr: 'Au cours des 7 derniers jours, votre problème de peau a-t-il affecté vos activités avec les autres ou vos loisirs ?', de: 'Wie sehr hat Ihre Hauterkrankung in den vergangenen 7 Tagen Ihre Aktivitäten mit anderen Menschen oder Ihre Freizeitgestaltung beeinflußt?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -297,13 +297,13 @@ export const DLQI_subscales: Array = [ }, { input_id: 'DLQI_Q06', - input_label: { + label: { nl: 'In welke mate heeft uw huid het u bemoeilijkt om te sporten, gedurende de afgelopen 7 dagen?', en: 'Over the last week, how much has your skin made it difficult for you to do any sport?', fr: 'Au cours des 7 derniers jours, avez-vous eu du mal à faire du sport à cause de votre problème de peau ?', de: 'Wie sehr hat Ihre Hauterkrankung es Ihnen in den vergangenen 7 Tagen erschwert, sportlich aktiv zu sein?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -361,13 +361,13 @@ export const DLQI_subscales: Array = [ input_ids_in_subscale: [ { input_id: 'DLQI_Q07', - input_label: { + label: { nl: 'Heeft uw huid u ervan weerhouden om te werken of te studeren, gedurende de afgelopen 7 dagen?', en: 'Over the last week, has your skin prevented you from working or studying?', fr: "Au cours des 7 derniers jours, votre problème de peau vous a-t-il complètement empêché(e) de travailler ou d'étudier ?", de: 'Hat Ihre Hauterkrankung in den vergangenen 7 Tagen dazu geführt, daß Sie Ihrer beruflichen Tätigkeit nicht nachgehen oder nicht studieren konnten?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -392,13 +392,13 @@ export const DLQI_subscales: Array = [ }, { input_id: 'DLQI_Q07_SUB', - input_label: { + label: { nl: 'Zo "nee": In welke mate is uw huid een probleem voor u geweest tijdens uw werk of studie, gedurende de afgelopen 7 dagen?', en: 'If "No", over the last week how much has your skin been a problem at work or studying?', fr: 'Si la réponse est "non" : au cours des 7 derniers jours, votre problème de peau vous a-t-il gêné(e) dans votre travail ou dans vos études ?', de: 'Falls "nein", wie sehr ist Ihre Hauterkrankung in den vergangenen 7 Tagen ein Problem bei Ihrer beruflichen Tätigkeit bzw. Ihrem Studium gewesen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -442,13 +442,13 @@ export const DLQI_subscales: Array = [ input_ids_in_subscale: [ { input_id: 'DLQI_Q08', - input_label: { + label: { nl: 'In welke mate heeft uw huid problemen veroorzaakt met uw partner, goede vrienden of familie, gedurende de afgelopen 7 dagen?', en: 'Over the last week, how much has your skin created problems with your partner or any of your close friends or relatives?', fr: 'Au cours des 7 derniers jours, votre problème de peau a-t-il rendu difficiles vos relations avec votre conjoint(e), vos amis proches ou votre famille ?', de: 'Wie sehr hat Ihre Hauterkrankung in den vergangenen 7 Tagen Probleme im Umgang mit Ihrem Partner, Freunden oder Verwandten verursacht?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -501,13 +501,13 @@ export const DLQI_subscales: Array = [ }, { input_id: 'DLQI_Q09', - input_label: { + label: { nl: 'In welke mate heeft uw huid voor seksuele problemen gezorgd, gedurende de afgelopen 7 dagen?', en: 'Over the last week, how much has your skin caused any sexual difficulties?', fr: 'Au cours des 7 derniers jours, votre problème de peau a-t-il rendu votre vie sexuelle difficile ?', de: 'Wie sehr hat Ihre Hauterkrankung in den vergangenen 7 Tagen Ihr Liebesleben beeinträchtigt?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -565,13 +565,13 @@ export const DLQI_subscales: Array = [ input_ids_in_subscale: [ { input_id: 'DLQI_Q10', - input_label: { + label: { nl: 'In welke mate is de behandeling van uw huid een probleem geweest, gedurende de afgelopen 7 dagen, bijvoorbeeld omdat de behandeling veel tijd kost, of doordat uw huis er vies van wordt?', en: 'Over the last week, how much of a problem has the treatment for your skin been, for example by making your home messy, or by taking up time?', fr: 'Au cours des 7 derniers jours, le traitement que vous utilisez pour votre peau a-t-il été un problème, par exemple en prenant trop de votre temps ou en salissant votre maison ?', de: 'Inwieweit war die Behandlung Ihrer Haut in den vergangenen 7 Tagen für Sie mit Problemen verbunden (z. B. weil die Behandlung Zeit in Anspruch nahm oder dadurch Ihr Haushalt unsauber wurde)?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/dn4/definition/dn4_inputs.ts b/todo/dn4/definition/dn4_inputs.ts index 4b3f957..787bb15 100644 --- a/todo/dn4/definition/dn4_inputs.ts +++ b/todo/dn4/definition/dn4_inputs.ts @@ -1,14 +1,14 @@ import type { InputType } from '../../../src/types/calculations.types' import { BooleanInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: BooleanInputType = { +const type: BooleanInputType = { type: 'boolean', } export const DN4_INPUTS: Array = [ { input_id: 'BURNING', - input_label: { + label: { en: 'Does your pain have the following characteristic: Burning?', nl: 'Vertoont de pijn volgende karakteristiek: Branderig gevoel?', }, @@ -16,7 +16,7 @@ export const DN4_INPUTS: Array = [ }, { input_id: 'PAINFUL_COLD', - input_label: { + label: { en: 'Does your pain have the following characteristic: Painful cold?', nl: 'Vertoont de pijn volgende karakteristiek: Pijnlijk koudegevoel?', }, @@ -24,7 +24,7 @@ export const DN4_INPUTS: Array = [ }, { input_id: 'ELECTRIC_SHOCKS', - input_label: { + label: { en: 'Does your pain have the following characteristic: Electric shocks?', nl: 'Vertoont de pijn volgende karakteristiek: Elektrische schokken?', }, @@ -32,7 +32,7 @@ export const DN4_INPUTS: Array = [ }, { input_id: 'TINGLING', - input_label: { + label: { en: 'Is the pain associated with the following symptom in the same area: Tingling?', nl: 'Is de pijn in hetzelfde gebied geassocieerd met volgende symptoom: Kriebelingen?', }, @@ -40,7 +40,7 @@ export const DN4_INPUTS: Array = [ }, { input_id: 'PINS_AND_NEEDLES', - input_label: { + label: { en: 'Is the pain associated with the following symptom in the same area: Pins and needles?', nl: 'Is de pijn in hetzelfde gebied geassocieerd met volgende symptoom: Tintelingen?', }, @@ -48,7 +48,7 @@ export const DN4_INPUTS: Array = [ }, { input_id: 'NUMBNESS', - input_label: { + label: { en: 'Is the pain associated with the following symptom in the same area: Numbness?', nl: 'Is de pijn in hetzelfde gebied geassocieerd met volgende symptoom: Gevoelloosheid?', }, @@ -56,7 +56,7 @@ export const DN4_INPUTS: Array = [ }, { input_id: 'ITCHING', - input_label: { + label: { en: 'Is the pain associated with the following symptom in the same area: Itching?', nl: 'Is de pijn in hetzelfde gebied geassocieerd met volgende symptoom: Jeuk?', }, @@ -64,7 +64,7 @@ export const DN4_INPUTS: Array = [ }, { input_id: 'HYPOESTHESIA_TO_TOUCH', - input_label: { + label: { en: 'Is the pain located in an area where the physicial examination may reveal the following characteristic: Hypoesthesia to touch?', nl: 'Is de pijn gelokaliseerd in een bepaald gebied waar het klinisch onderzoek het volgende aantoont: Hypo-esthesie bij aanraking?', }, @@ -72,7 +72,7 @@ export const DN4_INPUTS: Array = [ }, { input_id: 'HYPOESTHESIA_TO_PINPRICK', - input_label: { + label: { en: 'Is the pain located in an area where the physicial examination may reveal the following characteristic: Hypoesthesia to pinprick?', nl: 'Is de pijn gelokaliseerd in een bepaald gebied waar het klinisch onderzoek het volgende aantoont: Hypo-esthesie bij een prik?', }, @@ -80,7 +80,7 @@ export const DN4_INPUTS: Array = [ }, { input_id: 'BRUSHING', - input_label: { + label: { en: 'In the painful area, can the pain be caused or increased by brushing?', nl: 'Wordt de pijn veroorzaakt of versterkt door wrijven?', }, diff --git a/todo/dri/definition/dri_subscales.ts b/todo/dri/definition/dri_subscales.ts index b42f536..ba526a0 100644 --- a/todo/dri/definition/dri_subscales.ts +++ b/todo/dri/definition/dri_subscales.ts @@ -1,7 +1,7 @@ import { type DefaultSubscaleType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', component: 'slider', range: { @@ -20,7 +20,7 @@ export const DRI_SUBSCALES: Array = [ { input_id: 'DRI_01', input_type, - input_label: { + label: { nl: 'Aankleden (zonder hulp)', en: 'Dressing (without help)', }, @@ -28,17 +28,17 @@ export const DRI_SUBSCALES: Array = [ { input_id: 'DRI_02', input_type, - input_label: { nl: 'Buitenshuis lopen', en: 'Outdoor walks' }, + label: { nl: 'Buitenshuis lopen', en: 'Outdoor walks' }, }, { input_id: 'DRI_03', input_type, - input_label: { nl: 'Traplopen', en: 'Climbing stairs' }, + label: { nl: 'Traplopen', en: 'Climbing stairs' }, }, { input_id: 'DRI_04', input_type, - input_label: { nl: 'Langere tijd zitten', en: 'Sitting longer time' }, + label: { nl: 'Langere tijd zitten', en: 'Sitting longer time' }, }, ], }, @@ -48,7 +48,7 @@ export const DRI_SUBSCALES: Array = [ { input_id: 'DRI_05', input_type, - input_label: { + label: { nl: 'Voorovergebogen staan', en: 'Standing bent over a sink', }, @@ -56,17 +56,17 @@ export const DRI_SUBSCALES: Array = [ { input_id: 'DRI_06', input_type, - input_label: { nl: 'Het dragen van een tas', en: 'Carrying a bag' }, + label: { nl: 'Het dragen van een tas', en: 'Carrying a bag' }, }, { input_id: 'DRI_07', input_type, - input_label: { nl: 'Bedden opmaken', en: 'Making a bed' }, + label: { nl: 'Bedden opmaken', en: 'Making a bed' }, }, { input_id: 'DRI_08', input_type, - input_label: { nl: 'Hardlopen', en: 'Running' }, + label: { nl: 'Hardlopen', en: 'Running' }, }, ], }, @@ -76,17 +76,17 @@ export const DRI_SUBSCALES: Array = [ { input_id: 'DRI_09', input_type, - input_label: { nl: 'Lichte werkzaamheden', en: 'Light work' }, + label: { nl: 'Lichte werkzaamheden', en: 'Light work' }, }, { input_id: 'DRI_10', input_type, - input_label: { nl: 'Zware werkzaamheden', en: 'Heavy work' }, + label: { nl: 'Zware werkzaamheden', en: 'Heavy work' }, }, { input_id: 'DRI_11', input_type, - input_label: { + label: { nl: 'Tillen van zware voorwerpen', en: 'Lifting heavy objects', }, @@ -94,7 +94,7 @@ export const DRI_SUBSCALES: Array = [ { input_id: 'DRI_12', input_type, - input_label: { + label: { nl: 'Sport of gymnastiek', en: 'Participating in exercise/sports', }, diff --git a/todo/eortc/eortc_qlq_br23/definition/eortc_qlq_br23_scales.ts b/todo/eortc/eortc_qlq_br23/definition/eortc_qlq_br23_scales.ts index 326be04..4135793 100644 --- a/todo/eortc/eortc_qlq_br23/definition/eortc_qlq_br23_scales.ts +++ b/todo/eortc/eortc_qlq_br23/definition/eortc_qlq_br23_scales.ts @@ -4,10 +4,10 @@ import { NOT_APPLICABLE_MESSAGE } from '../../../../PARAMETERS' import { DEFAULT_ALLOWED_ANSWER_VALUES } from '../../common/eortc_parameters' const add_allowed_answers = ( - input: Pick + input: Pick, ): InputType => ({ ...input, - input_type: { + type: { type: 'number', allowed_answers: DEFAULT_ALLOWED_ANSWER_VALUES, }, @@ -25,28 +25,28 @@ export const EORTC_QLQ_BR23_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Voelde u zich gedurende de afgelopen week lichamelijk minder aantrekkelijk ten gevolge van uw ziekte of behandeling?', en: 'Have you felt physically less attractive as a result of your disease or treatment during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q09', }, { - input_label: { + label: { nl: 'Voelde u zich gedurende de afgelopen week minder vrouwelijk ten gevolge van uw ziekte of behandeling?', en: 'Have you been feeling less feminine as a result of your disease or treatment during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q10', }, { - input_label: { + label: { nl: 'Vond u het gedurende de afgelopen week moeilijk om uzelf naakt te zien?', en: 'Did you find it difficult to look at yourself naked during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q11', }, { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week ontevreden met uw lichaam?', en: 'Have you been dissatisfied with your body during the past week?', }, @@ -60,7 +60,7 @@ export const EORTC_QLQ_BR23_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'In hoeverre had u gedurende de afgelopen vier weken zin in seks?', en: 'To what extent were you interested in sex during the past 4 weeks?', }, @@ -68,7 +68,7 @@ export const EORTC_QLQ_BR23_SCALES: Array = [ inverse: true, }, { - input_label: { + label: { nl: 'In hoeverre was u gedurende de afgelopen vier weken seksueel actief? (met of zonder geslachtsgemeenschap)', en: 'To what extent were you sexually active during the past 4 weeks? (with or without intercourse)', }, @@ -83,7 +83,7 @@ export const EORTC_QLQ_BR23_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'In hoeverre was seks gedurende de afgelopen 4 weken plezierig voor u?', en: 'To what extent was sex enjoyable for you during the past 4 weeks?', }, @@ -109,7 +109,7 @@ export const EORTC_QLQ_BR23_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Maakte u zich gedurende de afgelopen week zorgen over uw gezondheid in de toekomst?', en: 'Were you worried about your health in the future during the past week?', }, @@ -123,28 +123,28 @@ export const EORTC_QLQ_BR23_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week een droge mond?', en: 'Did you have a dry mouth during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q01', }, { - input_label: { + label: { nl: 'Was gedurende de afgelopen week de smaak van voedsel en drank anders dan u gewend was?', en: 'Did food and drink taste different than usual during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q02', }, { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week pijnlijke, geïrriteerde of tranende ogen?', en: 'Were your eyes painful, irritated or watery during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q03', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week haaruitval gehad?', en: 'Have you lost any hair during the past week?', }, @@ -154,21 +154,21 @@ export const EORTC_QLQ_BR23_SCALES: Array = [ }, }, { - input_label: { + label: { nl: 'Voelde u zich gedurende de afgelopen week ziek of onwel? ', en: 'Did you feel ill or unwell during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q06', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week opvliegers gehad?', en: 'Did you have hot flushes during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q07', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week hoofdpijn gehad?', en: 'Did you have headaches during the past week?', }, @@ -182,28 +182,28 @@ export const EORTC_QLQ_BR23_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijn gehad in het gebied van uw aangedane borst?', en: 'Have you had any pain in the area of your affected breast during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q20', }, { - input_label: { + label: { nl: 'Was het gebied van uw aangedane borst gedurende de afgelopen week gezwollen?', en: 'Was the area of your affected breast swollen during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q21', }, { - input_label: { + label: { nl: 'Was het gebied van uw aangedane borst gedurende de afgelopen week overgevoelig?', en: 'Was the area of your affected breast oversensitive during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q22', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week huidproblemen gehad in het gebied van uw aangedane borst (bijv. jeukerig, droog of schilferachtig)?', en: 'Have you had skin problems on or in the area of your affected breast during the past week (e.g., itchy, dry, flaky)?', }, @@ -217,21 +217,21 @@ export const EORTC_QLQ_BR23_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week pijn in uw arm of schouder?', en: 'Did you have any pain in your arm or shoulder during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q17', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week een gezwollen arm of hand gehad?', en: 'Did you have a swollen arm or hand during the past week?', }, input_id: 'EORTC_QLQ_BR23_Q18', }, { - input_label: { + label: { nl: 'Was het gedurende de afgelopen week moeilijk om uw arm naar omhoog of opzij te bewegen?', en: 'Was it difficult to raise your arm or to move it sideways during the past week?', }, @@ -245,7 +245,7 @@ export const EORTC_QLQ_BR23_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week door het verlies van uw haar van streek?', en: 'Were you upset by the loss of your hair during the past week?', }, diff --git a/todo/eortc/eortc_qlq_br45/definition/eortc_qlq_br45_scales.ts b/todo/eortc/eortc_qlq_br45/definition/eortc_qlq_br45_scales.ts index d3edefc..87b3ddd 100644 --- a/todo/eortc/eortc_qlq_br45/definition/eortc_qlq_br45_scales.ts +++ b/todo/eortc/eortc_qlq_br45/definition/eortc_qlq_br45_scales.ts @@ -6,7 +6,7 @@ import { DEFAULT_ALLOWED_ANSWER_VALUES } from '../../common/eortc_parameters' //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { + type: { type: 'number', allowed_answers: DEFAULT_ALLOWED_ANSWER_VALUES, }, @@ -14,12 +14,12 @@ const add_allowed_answers = input => ({ export const ADDITIONAL_INPUTS: InputType[] = [ { - input_label: { + label: { nl: 'Heb je reeds borstchirurgie ondergaan?', en: 'Did you already receive breast surgery?', }, input_id: 'BREAST_SURGERY_BOOL', - input_type: { + type: { type: 'boolean', allowed_answers: [ { value: true, label: { en: 'Had breast surgery', nl: 'Ja' } }, @@ -40,28 +40,28 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Voelde u zich gedurende de afgelopen week lichamelijk minder aantrekkelijk ten gevolge van uw ziekte of behandeling?', en: 'Have you felt physically less attractive as a result of your disease or treatment during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q39', }, { - input_label: { + label: { nl: 'Voelde u zich gedurende de afgelopen week minder vrouwelijk ten gevolge van uw ziekte of behandeling?', en: 'Have you felt less feminine as a result of your disease or treatment during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q40', }, { - input_label: { + label: { nl: 'Heeft u er problemen mee gehad gedurende de afgelopen week om uzelf naakt te zien?', en: 'Have you had problems looking at yourself naked during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q41', }, { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week ontevreden met uw lichaam?', en: 'Have you been dissatisfied with your body during the past week?', }, @@ -75,7 +75,7 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u zich gedurende de afgelopen week zorgen gemaakt over uw gezondheid in de toekomst?', en: 'Have you worried about your health in the future during the past week?', }, @@ -89,7 +89,7 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen vier weken belangstelling voor seks gehad?', en: 'Have you been interested in sex during the past four weeks?', }, @@ -97,7 +97,7 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ inverse: true, }, { - input_label: { + label: { nl: 'Bent u gedurende de afgelopen vier weken seksueel actief geweest (met of zonder geslachtsgemeenschap)?', en: 'Have you been sexually active during the past four weeks (with or without intercourse)?', }, @@ -112,7 +112,7 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Was seks gedurende de afgelopen vier weken plezierig voor u?', en: 'Has sex been enjoyable for you during the past four weeks?', }, @@ -134,7 +134,7 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Bent u gedurende de afgelopen week tevreden geweest over het cosmetische resultaat van de operatie?', en: 'Have you been satisfied with the cosmetic result of the surgery during the past week?', }, @@ -142,7 +142,7 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ inverse: true, }, { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week tevreden met hoe de huid van uw aangetaste borst (borstkas) eruitziet?', en: 'Have you been satisfied with the appearance of the skin of your affected breast (thoracic area) during the past week?', }, @@ -164,49 +164,49 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week een droge mond gehad?', en: 'Have you had a dry mouth during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q31', }, { - input_label: { + label: { nl: 'Was de smaak van voedsel en drank gedurende de afgelopen week anders dan u gewend was?', en: 'Have food and drink tasted different than usual during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q32', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijnlijke, geïrriteerde of tranende ogen gehad?', en: 'Have your eyes been painful, irritated or watery during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q33', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week haaruitval gehad?', en: 'Have you lost any hair during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q34', }, { - input_label: { + label: { nl: 'Heeft u zich gedurende de afgelopen week ziek of onwel gevoeld?', en: 'Have you felt ill or unwell during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q36', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week opvliegers (vapeurs) gehad?', en: 'Have you had hot flushes during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q37', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week hoofdpijn gehad?', en: 'Have you had headaches during the past week?', }, @@ -220,7 +220,7 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week door het verlies van uw haar van streek?', en: 'Have you been upset by the loss of your hair during the past week?', }, @@ -245,21 +245,21 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijn in uw arm of schouder gehad?', en: 'Have you had any pain in your arm or shoulder during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q47', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week een gezwollen arm of hand gehad?', en: 'Have you had a swollen arm or hand during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q48', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week problemen gehad om met uw arm omhoog of opzij te bewegen?', en: 'Have you had problems raising your arm or moving it sideways during the past week?', }, @@ -273,28 +273,28 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijn gehad in het gebied van uw aangetaste borst?', en: 'Have you had any pain in the area of your affected breast during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q50', }, { - input_label: { + label: { nl: 'Was het gebied van uw aangetaste borst gedurende de afgelopen week gezwollen?', en: 'Has the area of your affected breast been swollen during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q51', }, { - input_label: { + label: { nl: 'Was het gebied van uw aangetaste borst gedurende de afgelopen week overgevoelig?', en: 'Has the area of your affected breast been oversensitive during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q52', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week huidproblemen gehad in het gebied van uw aangetaste borst (bijv. jeukerig, droog, schilferachtig)?', en: 'Have you had skin problems on or in the area of your affected breast during the past week (e.g., itchy, dry, flaky)?', }, @@ -308,70 +308,70 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week overmatig getranspireerd?', en: 'Have you sweated excessively during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q54', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week stemmingswisselingen gehad?', en: 'Have you had mood swings during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q55', }, { - input_label: { + label: { nl: 'Bent u gedurende de afgelopen week duizelig geweest?', en: 'Have you been dizzy during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q56', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week problemen met uw gewrichten gehad?', en: 'Have you had problems with your joints during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q63', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week stijfheid in uw gewrichten gehad?', en: 'Have you had stiffness in your joints during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q64', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijn in uw gewrichten gehad?', en: 'Have you had pain in your joints during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q65', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijn in uw botten gehad?', en: 'Have you had aches or pains in your bones during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q66', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijn in uw spieren gehad?', en: 'Have you had aches or pains in your muscles during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q67', }, { - input_label: { + label: { nl: 'Bent u gedurende de afgelopen week in gewicht aangekomen?', en: 'Have you gained weight during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q68', }, { - input_label: { + label: { nl: 'Was uw gewichtstoename gedurende de afgelopen week een probleem voor u?', en: 'Has weight gain been a problem for you during the past week?', }, @@ -385,42 +385,42 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Was uw mond gedurende de afgelopen week gevoelig?', en: 'Have you had soreness in your mouth during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q57', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week roodheid in uw mond gehad?', en: 'Have you had any reddening in your mouth during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q58', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijn in uw handen of voeten gehad?', en: 'Have you had pain in your hands or feet during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q59', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week rode plekken op uw handen of voeten gehad?', en: 'Have you had any reddening on your hands or feet during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q60', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week tintelingen in uw vingers of tenen gehad?', en: 'Have you had tingling in your fingers or toes during the past week?', }, input_id: 'EORTC_QLQ_BR45_Q61', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week gevoelloze vingers of tenen gehad?', en: 'Have you had numbness in your fingers or toes during the past week?', }, @@ -434,21 +434,21 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen vier weken een droge vagina gehad?', en: 'Have you had a dry vagina during the past four weeks?', }, input_id: 'EORTC_QLQ_BR45_Q70', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen vier weken ongemak in uw vagina gehad?', en: 'Have you had discomfort in your vagina during the past four weeks?', }, input_id: 'EORTC_QLQ_BR45_Q71', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen vier weken tijdens seksuele activiteit pijn in uw vagina gehad?', en: 'Have you experienced a dry vagina during sexual activity during the past four weeks?', }, @@ -459,7 +459,7 @@ export const EORTC_QLQ_BR45_SCALES: Array = [ }, }, { - input_label: { + label: { nl: 'Had u gedurende de afgelopen vier weken een droge vagina tijdens seksuele activiteit?', en: 'Have you experienced a dry vagina during sexual activity during the past four weeks?', }, diff --git a/todo/eortc/eortc_qlq_c30/definition/eortc_qlq_c30_scales.ts b/todo/eortc/eortc_qlq_c30/definition/eortc_qlq_c30_scales.ts index ee30784..b3e14f7 100644 --- a/todo/eortc/eortc_qlq_c30/definition/eortc_qlq_c30_scales.ts +++ b/todo/eortc/eortc_qlq_c30/definition/eortc_qlq_c30_scales.ts @@ -4,7 +4,7 @@ import { DEFAULT_ALLOWED_ANSWER_VALUES } from '../../common/eortc_parameters' //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { + type: { type: 'number', allowed_answers: DEFAULT_ALLOWED_ANSWER_VALUES, }, @@ -28,24 +28,24 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 6, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hoe zou u uw algehele gezondheid gedurende de afgelopen week beoordelen?', en: 'How would you rate your overall health during the past week?', }, input_id: 'EORTCQLQC30_Q29', - input_type: { + type: { type: 'number', component: 'slider', range: GLOBAL_HEALTH_STATUS_RANGE, }, }, { - input_label: { + label: { nl: 'Hoe zou u uw algehele "kwaliteit van het leven" gedurende de afgelopen week beoordelen?', en: 'How would you rate your overall quality of life during the past week?', }, input_id: 'EORTCQLQC30_Q30', - input_type: { + type: { type: 'number', component: 'slider', range: GLOBAL_HEALTH_STATUS_RANGE, @@ -59,35 +59,35 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u moeite met het doen van inspannende activiteiten zoals het dragen van een zware boodschappentas of een koffer?', en: 'Do you have any trouble doing strenuous activities, like carrying a heavy shopping bag or a suitcase?', }, input_id: 'EORTCQLQC30_Q01', }, { - input_label: { + label: { nl: 'Heeft u moeite met het maken van een lange wandeling?', en: 'Do you have any trouble taking a long walk?', }, input_id: 'EORTCQLQC30_Q02', }, { - input_label: { + label: { nl: 'Heeft u moeite met het maken van een korte wandeling buitenshuis?', en: 'Do you have any trouble taking a short walk outside of the house?', }, input_id: 'EORTCQLQC30_Q03', }, { - input_label: { + label: { nl: 'Moet u overdag in bed of op een stoel blijven?', en: 'Do you need to stay in bed or a chair during the day?', }, input_id: 'EORTCQLQC30_Q04', }, { - input_label: { + label: { nl: 'Heeft u hulp nodig met eten, aankleden, uzelf wassen of naar het toilet gaan?', en: 'Do you need help with eating, dressing, washing yourself or using the toilet?', }, @@ -101,14 +101,14 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week beperkt bij het doen van uw werk of andere dagelijkse bezigheden?', en: 'Were you limited in doing either your work or other daily activities during the past week?', }, input_id: 'EORTCQLQC30_Q06', }, { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week beperkt in het uitoefenen van uw hobby’s of bij andere bezigheden die u in uw vrije tijd doet?', en: 'Were you limited in pursuing your hobbies or other leisure time activities during the past week?', }, @@ -122,28 +122,28 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Voelde u zich gedurende de afgelopen week gespannen?', en: 'Did you feel tense during the past week?', }, input_id: 'EORTCQLQC30_Q21', }, { - input_label: { + label: { nl: 'Maakte u zich gedurende de afgelopen week zorgen?', en: 'Did you worry during the past week?', }, input_id: 'EORTCQLQC30_Q22', }, { - input_label: { + label: { nl: 'Voelde u zich gedurende de afgelopen week prikkelbaar?', en: 'Did you feel irritable during the past week?', }, input_id: 'EORTCQLQC30_Q23', }, { - input_label: { + label: { nl: 'Voelde u zich gedurende de afgelopen week neerslachtig?', en: 'Did you feel depressed during the past week?', }, @@ -157,14 +157,14 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week moeite gehad met het concentreren op dingen, zoals een krant lezen of televisie kijken?', en: 'Have you had difficulty in concentrating on things, like reading a newspaper or watching television during the past week?', }, input_id: 'EORTCQLQC30_Q20', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week moeite gehad met het herinneren van dingen?', en: 'Have you had difficulty remembering things during the past week?', }, @@ -178,14 +178,14 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft uw lichamelijke toestand of medische behandeling gedurende de afgelopen week uw familieleven in de weg gestaan?', en: 'Has your physical condition or medical treatment interfered with your family life during the past week?', }, input_id: 'EORTCQLQC30_Q26', }, { - input_label: { + label: { nl: 'Heeft uw lichamelijke toestand of medische behandeling gedurende de afgelopen week u belemmerd in uw sociale bezigheden?', en: 'Has your physical condition or medical treatment interfered with your social activities during the past week?', }, @@ -199,21 +199,21 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week behoefte om te rusten?', en: 'Did you need to rest during the past week?', }, input_id: 'EORTCQLQC30_Q10', }, { - input_label: { + label: { nl: 'Heeft u zich gedurende de afgelopen week slap gevoeld during the past week?', en: 'Have you felt weak?', }, input_id: 'EORTCQLQC30_Q12', }, { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week moe?', en: 'Were you tired during the past week?', }, @@ -227,14 +227,14 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u zich gedurende de afgelopen misselijk gevoeld?', en: 'Have you felt nauseated during the past week?', }, input_id: 'EORTCQLQC30_Q14', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen overgegeven?', en: 'Have you vomited during the past week?', }, @@ -248,14 +248,14 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijn gehad?', en: 'Have you had pain during the past week?', }, input_id: 'EORTCQLQC30_Q09', }, { - input_label: { + label: { nl: 'Heeft pijn u gedurende de afgelopen week gehinderd in uw dagelijkse bezigheden?', en: 'Did pain interfere with your daily activities during the past week?', }, @@ -269,7 +269,7 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week kortademig?', en: 'Were you short of breath during the past week?', }, @@ -283,7 +283,7 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week moeite met slapen gehad?', en: 'Have you had trouble sleeping during the past week?', }, @@ -297,7 +297,7 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week gebrek aan eetlust gehad?', en: 'Have you lacked appetite during the past week?', }, @@ -311,7 +311,7 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week last van obstipatie? (was u verstopt?)', en: 'Have you been constipated during the past week?', }, @@ -325,7 +325,7 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week diarree?', en: 'Have you had diarrhea during the past week?', }, @@ -339,7 +339,7 @@ export const EORTC_QLQ_C30_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft uw lichamelijke toestand of medische behandeling gedurende de afeglopen week financiële moeilijkheden met zich meegebracht?', en: 'Has your physical condition or medical treatment caused you financial difficulties during the past week?', }, diff --git a/todo/eortc/eortc_qlq_cr29/definition/eortc_qlq_cr29_scales.ts b/todo/eortc/eortc_qlq_cr29/definition/eortc_qlq_cr29_scales.ts index 2c079bb..880e64b 100644 --- a/todo/eortc/eortc_qlq_cr29/definition/eortc_qlq_cr29_scales.ts +++ b/todo/eortc/eortc_qlq_cr29/definition/eortc_qlq_cr29_scales.ts @@ -6,7 +6,7 @@ import { DEFAULT_ALLOWED_ANSWER_VALUES } from '../../common/eortc_parameters' //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { + type: { type: 'number', allowed_answers: DEFAULT_ALLOWED_ANSWER_VALUES, }, @@ -15,11 +15,11 @@ const add_allowed_answers = input => ({ export const ADDITIONAL_INPUTS: InputType[] = [ { input_id: 'EORTCQLQCR29_Q48', - input_label: { + label: { nl: 'Hebt u een stoma (dunnedarm-stoma of dikkedarm-stoma)?', en: 'Do you have a stoma bag (colostomy/ileostomy)?', }, - input_type: { + type: { type: 'boolean', allowed_answers: [ { value: true, label: { en: 'Yes', nl: 'Ja' } }, @@ -40,21 +40,21 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Voelde u zich de afgelopen week lichamelijk minder aantrekkelijk ten gevolge van uw ziekte of behandeling?', en: 'Have you felt physically less attractive as a result of your disease or treatment during the past week?', }, input_id: 'EORTCQLQCR29_Q45', }, { - input_label: { + label: { nl: 'Voelde u zich de afgelopen week minder vrouwelijk / mannelijk ten gevolge van uw ziekte of behandeling?', en: 'Have you been feeling less feminine/masculine as a result of your disease or treatment during the past week?', }, input_id: 'EORTCQLQCR29_Q46', }, { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week ontevreden over uw lichaam?', en: 'Have you been dissatisfied with your body during the past week?', }, @@ -68,7 +68,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u zich gedurende de afgelopen week zorgen gemaakt over uw gezondheid in de toekomst?', en: 'Were you worried about your health in the future during the past week?', }, @@ -82,7 +82,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u zich gedurende de afgelopen wek zorgen gemaakt over uw gewicht?', en: 'Have you worried about your weight during the past week?', }, @@ -97,7 +97,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'In hoeverre had u de afgelopen 4 weken zin in seks?', en: 'To what extent were you interested in sex during the past four weeks?', }, @@ -116,7 +116,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'In hoeverre had u de afgelopen 4 weken zin in seks?', en: 'To what extent were you interested in sex during the past four weeks?', }, @@ -134,14 +134,14 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week overdag geplast?', en: 'Did you urinate frequently during the day during the past week?', }, input_id: 'EORTCQLQCR29_Q31', }, { - input_label: { + label: { nl: "Hebt u gedurende de afgelopen week 's nachts geplast?", en: 'Did you urinate frequently during the night during the past week?', }, @@ -155,14 +155,14 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week bloed in uw ontlasting gehad?', en: 'Have you had blood in your stools during the past week??', }, input_id: 'EORTCQLQCR29_Q38', }, { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week slijm in uw ontlasting gehad?', en: 'Have you had mucus in your stools during the past week??', }, @@ -176,7 +176,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week overdag vaak het stomazakje moeten vervangen?', en: 'Did frequent bag changes occur during the day during the past week?', }, @@ -191,7 +191,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ }, }, { - input_label: { + label: { nl: "Hebt u gedurende de afgelopen week 's nachts vaak het stomazakje moeten vervangen?", en: 'Did frequent bag changes occur during the night during the past week?', }, @@ -220,7 +220,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week overdag vaak ontlasting gehad?', en: 'Did frequent bowel movements occur during the day during the past week?', }, @@ -235,7 +235,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ }, }, { - input_label: { + label: { nl: "Hebt u gedurende de afgelopen week 's nachts vaak ontlasting gehad?", en: 'Did frequent bowel movements occur during the night during the past week?', }, @@ -264,7 +264,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week ongewild urine verloren?', en: 'Have you had any unintentional release (leakage) of urine during the past week?', }, @@ -278,7 +278,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week pijn gehad bij het plassen?', en: 'Did you have pain when you urinated during the past week?', }, @@ -292,7 +292,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week buikpijn gehad?', en: 'Did you have abdominal pain during the past week?', }, @@ -306,7 +306,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week pijn gehad in uw zitvlak of bij uw anus?', en: 'Did you have pain in your buttocks/anal area/rectum during the past week?', }, @@ -320,7 +320,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week een opgeblazen gevoel gehad in uw buik?', en: 'Did you have a bloated feeling in your abdomen during the past week?', }, @@ -334,7 +334,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week een droge mond gehad?', en: 'Did you have a dry mouth during the past week?', }, @@ -348,7 +348,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week haaruitval gehad ten gevolge van uw behandeling?', en: 'Have you lost hair as a result of your treatment during the past week?', }, @@ -362,7 +362,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week problemen met uw smaak gehad?', en: 'Have you had problems with your sense of taste during the past week?', }, @@ -376,7 +376,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week last gehad van het ongewild vrijkomen van gas (winderigheid) uit uw stoma?', en: 'Have you had unintentional release of gas/flatulence from your stoma bag during the past week?', }, @@ -405,7 +405,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurend de afgelopen week last gehad van ongewild vrijkomen van gas (winderigheid)?', en: 'Have you had unintentional release of gas/flatulence from your back passage during the past week?', }, @@ -434,7 +434,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Was er gedurende de afgelopen week lekkage van ontlasting uit uw stomazakje?', en: 'Have you had leakage of stools from your stoma bag during the past week?', }, @@ -463,7 +463,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende afgelopen week ongewild ontlasting verloren?', en: 'Have you had leakage of stools from your back passage during the past week?', }, @@ -492,7 +492,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week een pijnlijke huid gehad rond uw stoma?', en: 'Have you had sore skin around your stoma during the past week?', }, @@ -521,7 +521,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende afgelopen week een pijnlijke huid gehad rondom uw anus?', en: 'Have you had sore skin around your anal area during the past week?', }, @@ -550,7 +550,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Voelde u zich gedurende de afgelopen week opgelaten door uw stoma?', en: 'Did you feel embarrassed because of your stoma during the past week?', }, @@ -579,7 +579,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Voelde u zich gedurende de afgelopen week opgelaten door uw ontlastingspatroon?', en: 'Did you feel embarrassed because of your bowel movement during the past week?', }, @@ -608,7 +608,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hebt u gedurende de afgelopen week problemen gehad met de verzorging van uw stoma?', en: 'Did you have problems caring for your stoma during the past week?', }, @@ -637,7 +637,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Indien u de afgelopen 4 weken seksueel actief was (met of zonder geslachtsgemeenschap): had u moeite met stijf worden of blijven van uw penis?', en: 'Did you have difficulty getting or maintaining an erection during the past four weeks?', }, @@ -656,7 +656,7 @@ export const EORTC_QLQ_CR29_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'EORTCQLQCR29_Q59', - input_label: { + label: { nl: 'Indien u geslachtsgemeenschap hebt gehad: had u pijn of ongemak tijdens de gemeenschap?', en: 'Did you have pain or discomfort during intercourse during the past four weeks?', }, diff --git a/todo/eortc/eortc_qlq_lc13/definition/eortc_qlq_lc13_scales.ts b/todo/eortc/eortc_qlq_lc13/definition/eortc_qlq_lc13_scales.ts index 928305b..82f0625 100644 --- a/todo/eortc/eortc_qlq_lc13/definition/eortc_qlq_lc13_scales.ts +++ b/todo/eortc/eortc_qlq_lc13/definition/eortc_qlq_lc13_scales.ts @@ -5,7 +5,7 @@ import { DEFAULT_ALLOWED_ANSWER_VALUES } from '../../common/eortc_parameters' //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { + type: { type: 'number', allowed_answers: DEFAULT_ALLOWED_ANSWER_VALUES, }, @@ -13,12 +13,12 @@ const add_allowed_answers = input => ({ export const ADDITIONAL_INPUTS: InputType[] = [ { - input_label: { + label: { nl: 'Nam u gedurende de afgelopen week enige medicatie tegen de pijn?', en: 'Did you take medicine for pain during the past week?', }, input_id: 'EORTCQLQLC13_Q13_PART_1', // Item 43 - input_type: { + type: { type: 'number', allowed_answers: [ { value: 1, label: { en: 'No', nl: 'Nee' } }, @@ -28,12 +28,12 @@ export const ADDITIONAL_INPUTS: InputType[] = [ required: true, }, { - input_label: { + label: { nl: 'Indien ja, hoeveel hielp het?', en: 'If yes, how much did it help?', }, input_id: 'EORTCQLQLC13_Q13_PART_2', // Part 2 of item 43 - input_type: { + type: { type: 'number', allowed_answers: DEFAULT_ALLOWED_ANSWER_VALUES, }, @@ -57,21 +57,21 @@ export const EORTC_QLQ_LC13_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week kortademig toen u rustte?', en: 'Were you short of breath when you rested during the past week?', }, input_id: 'EORTCQLQLC13_Q03', }, { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week kortademig toen u wandelde?', en: 'Were you short of breath when you walked during the past week?', }, input_id: 'EORTCQLQLC13_Q04', }, { - input_label: { + label: { nl: 'Was u gedurende de afgelopen week kortademig toen u trappen liep?', en: 'Were you short of breath when you climbed stairs during the past week?', }, @@ -85,7 +85,7 @@ export const EORTC_QLQ_LC13_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hoeveel heeft u gedurende de afgelopen week gehoest?', en: 'How much did you cough during the past week?', }, @@ -99,7 +99,7 @@ export const EORTC_QLQ_LC13_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week bloed opgehoest?', en: 'Did you cough up blood during the past week?', }, @@ -113,7 +113,7 @@ export const EORTC_QLQ_LC13_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week een pijnlijke mond of tong?', en: 'Have you had a sore mouth or tongue during the past week?', }, @@ -127,7 +127,7 @@ export const EORTC_QLQ_LC13_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week moeite met slikken?', en: 'Have you had trouble swallowing during the past week?', }, @@ -141,7 +141,7 @@ export const EORTC_QLQ_LC13_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week prikkelende handen of voeten?', en: 'Have you had tingling hands or feet during the past week?', }, @@ -155,7 +155,7 @@ export const EORTC_QLQ_LC13_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week haaruitval gehad?', en: 'Have you had hair loss during the past week?', }, @@ -169,7 +169,7 @@ export const EORTC_QLQ_LC13_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week pijn in uw borst?', en: 'Have you had pain in your chest during the past week?', }, @@ -183,7 +183,7 @@ export const EORTC_QLQ_LC13_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week pijn in uw arm of schouder?', en: 'Have you had pain in your arm or shoulder during the past week?', }, @@ -197,7 +197,7 @@ export const EORTC_QLQ_LC13_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week pijn in andere delen van uw lichaam?', en: 'Have you had pain in other parts of your body during the past week?', }, diff --git a/todo/eortc/eortc_qlq_lc29/definition/eortc_qlq_lc29_scales.ts b/todo/eortc/eortc_qlq_lc29/definition/eortc_qlq_lc29_scales.ts index 742b3ae..134e3ce 100644 --- a/todo/eortc/eortc_qlq_lc29/definition/eortc_qlq_lc29_scales.ts +++ b/todo/eortc/eortc_qlq_lc29/definition/eortc_qlq_lc29_scales.ts @@ -6,7 +6,7 @@ import { DEFAULT_ALLOWED_ANSWER_VALUES } from '../../common/eortc_parameters' //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { + type: { type: 'number', allowed_answers: DEFAULT_ALLOWED_ANSWER_VALUES, }, @@ -15,11 +15,11 @@ const add_allowed_answers = input => ({ export const ADDITIONAL_INPUTS: InputType[] = [ { input_id: 'LUNGCANCER_SURGERY_BOOL', - input_label: { + label: { nl: 'Heeft u al een operatie ondergaan voor longkanker?', en: 'Did you already receive surgery for lung cancer?', }, - input_type: { + type: { type: 'boolean', allowed_answers: [ { @@ -52,14 +52,14 @@ export const EORTC_QLQ_LC29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week gehoest?', en: 'Have you coughed during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q31', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week een droge hoest gehad?', en: 'Have you had dry cough during the past week?', }, @@ -73,21 +73,21 @@ export const EORTC_QLQ_LC29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Bent u gedurende de afgelopen week buiten adem geweest bij het rusten?', en: 'Have you been short of breath when you rested during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q33', }, { - input_label: { + label: { nl: 'Bent u gedurende de afgelopen week buiten adem geweest bij het wandelen?', en: 'Have you been short of breath when you walked during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q34', }, { - input_label: { + label: { nl: 'Bent u gedurende de afgelopen week buiten adem geweest bij het oplopen van trappen?', en: 'Have you been short of breath when you climbed stairs during the past week?', }, @@ -101,84 +101,84 @@ export const EORTC_QLQ_LC29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week een pijnlijke mond of tong gehad?', en: 'Have you had a sore mouth or tongue during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q36', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week problemen gehad met slikken?', en: 'Have you had problems swallowing during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q37', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week tintelende handen of voeten gehad?', en: 'Have you had tingling hands or feet during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q38', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week haaruitval gehad?', en: 'Have you had hair loss during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q39', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week allergische reacties gehad?', en: 'Have you had allergic reactions during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q43', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week branderige of pijnlijke ogen gehad?', en: 'Have you had burning or sore eyes during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q44', }, { - input_label: { + label: { nl: 'Bent u gedurende de afgelopen week duizelig geweest?', en: 'Have you been dizzy during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q45', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week splijtende vingernagels of teennagels gehad?', en: 'Have you had splitting fingernails or toenails during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q46', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week huidproblemen gehad (bijv. jeukerig, droog)?', en: 'Have you had skin problems (e.g. itchy, dry) during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q47', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week problemen gehad met spreken?', en: 'Have you had problems speaking during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q48', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week dun of futloos haar gehad als gevolg van uw ziekte of uw behandeling?', en: 'Have you had thin or lifeless hair as a result of your disease or treatment during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q50', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week gemerkt dat u lichamelijk minder aankunt?', en: 'Have you experienced a decrease in your physical capabilities during the past week?', }, @@ -192,14 +192,14 @@ export const EORTC_QLQ_LC29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Bent u gedurende de afgelopen week bang geweest voor progressie van uw tumor?', en: 'Have you been afraid of tumor progression during the past week?', }, input_id: 'EORTC_QLQ_LC29_Q49', }, { - input_label: { + label: { nl: 'Heeft u zich gedurende de afgelopen week zorgen gemaakt over uw gezondheid in de toekomst?', en: 'Have you been worried about your health in the future during the past week?', }, @@ -213,35 +213,35 @@ export const EORTC_QLQ_LC29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u pijn gehad aan het geopereerde gebied?', en: 'Have you had pain in the area of surgery?', }, input_id: 'EORTC_QLQ_LC29_Q55', }, { - input_label: { + label: { nl: 'Is het gebied van de wond overgevoelig geweest?', en: 'Has the area of your wound been oversensitive?', }, input_id: 'EORTC_QLQ_LC29_Q56', }, { - input_label: { + label: { nl: 'Heeft de omvang van de operatie uw functioneren beperkt?', en: 'Have you been restricted in your performance due to the extent of surgery?', }, input_id: 'EORTC_QLQ_LC29_Q57', }, { - input_label: { + label: { nl: 'Heeft u moeite gehad om uw arm of schouder aan de kant van de operatie aan de borstkas te gebruiken?', en: 'Have you had any difficulty using your arm or shoulder on the side of the chest operation?', }, input_id: 'EORTC_QLQ_LC29_Q58', }, { - input_label: { + label: { nl: 'Heeft uw littekenpijn u gehinderd bij uw dagelijkse bezigheden?', en: 'Has your scar pain interfered with your daily activities?', }, @@ -262,7 +262,7 @@ export const EORTC_QLQ_LC29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week bloed opgehoest?', en: 'Have you coughed up blood during the past week?', }, @@ -276,7 +276,7 @@ export const EORTC_QLQ_LC29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijn op de borst gehad?', en: 'Have you had pain in your chest during the past week?', }, @@ -290,7 +290,7 @@ export const EORTC_QLQ_LC29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijn in uw arm of schouder gehad?', en: 'Have you had pain in your arm or shoulder during the past week?', }, @@ -304,7 +304,7 @@ export const EORTC_QLQ_LC29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week pijn in andere delen van uw lichaam gehad?', en: 'Have you had pain in other parts of your body during the past week?', }, @@ -318,7 +318,7 @@ export const EORTC_QLQ_LC29_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Was gewichtsverlies gedurende de afgelopen week een probleem voor u?', en: 'Has weight loss been a problem for you during the past week?', }, diff --git a/todo/eortc/eortc_qlq_pr25/definition/pr25_scales.ts b/todo/eortc/eortc_qlq_pr25/definition/pr25_scales.ts index d78e88a..e74ca34 100644 --- a/todo/eortc/eortc_qlq_pr25/definition/pr25_scales.ts +++ b/todo/eortc/eortc_qlq_pr25/definition/pr25_scales.ts @@ -5,7 +5,7 @@ import { DEFAULT_ALLOWED_ANSWER_VALUES } from '../../common/eortc_parameters' //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { + type: { type: 'number', allowed_answers: DEFAULT_ALLOWED_ANSWER_VALUES, }, @@ -18,56 +18,56 @@ export const EORTC_QLQ_PR25_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Moest u gedurende de afgelopen week gedurende de afgelopen week overdag vaak plassen?', en: 'Have you had to urinate frequently during the day during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q31', }, { - input_label: { + label: { nl: "Moest u gedurende de afgelopen week gedurende de afgelopen week 's nachts' vaak plassen?", en: 'Have you had to urinate frequently at night during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q32', }, { - input_label: { + label: { nl: 'Moest u zich gedurende de afgelopen week gedurende de afgelopen week zodra u de aandrang voelde om te plassen naar het toilet haasten?', en: 'When you felt the urge to pass urine, did you have to hurry to get to the toilet during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q33', }, { - input_label: { + label: { nl: "Had u gedurende de afgelopen week moeite voldoende nachtrust te krijgen, omdat u er 's nachts vaak uit moest om te plassen?", en: 'Was it difficult for you to get enough sleep, because you needed to get up frequently at night to urinate during the past week? ', }, input_id: 'EORTC_QLQ_PR25_Q34', }, { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week moeite om dingen buitenshuis te doen, omdat u in de buurt van een toilet moest blijven?', en: 'Have you had difficulty going out of the house because you needed to be close to a toilet during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q35', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week onbedoeld urine verloren?', en: 'Have you had any unintentional release (leakage) of urine during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q36', }, { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week pijn bij het plassen?', en: 'Did you have pain when you urinated during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q37', }, { - input_label: { + label: { nl: 'Werd u gedurende de afgelopen week beperkt in uw dagelijkse bezigheden door problemen met plassen?', en: 'Have your daily activities been limited by your urinary problems during the past week?', }, @@ -81,7 +81,7 @@ export const EORTC_QLQ_PR25_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Beantwoord deze vraag a.u.b. alleen als u incontinentiemateriaal (zoals inlegkruisjes, luiers, of andere middelen om urine op te vangen) gebruikt. Was het dragen van incontinentiemateriaal gedurende de afgelopen week een probleem voor u?', en: 'Answer this question only if you wear an incontinence aid: Has wearing an incontinence aid been a problem for you during the past week? ', }, @@ -95,28 +95,28 @@ export const EORTC_QLQ_PR25_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Werd u gedurende de afgelopen week beperkt in uw dagelijkse bezigheden door problemen met uw stoelgang?', en: 'Have your daily activities been limited by your bowel problems during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q40', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week onbedoeld ontlasting verloren?', en: 'Have you had any unintentional release (leakage) of stools during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q41', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week bloed bij uw ontlasting gehad?', en: 'Have you had blood in your stools during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q42', }, { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week een opgeblazen gevoel in uw buik?', en: 'Did you have a bloated feeling in your abdomen during the past week? ', }, @@ -130,42 +130,42 @@ export const EORTC_QLQ_PR25_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week opvliegers gehad?', en: 'Did you have hot flushes during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q44', }, { - input_label: { + label: { nl: 'Had u gedurende de afgelopen week pijnlijke of gezwollen tepels of borsten?', en: 'Have you had sore or enlarged nipples or breasts during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q45', }, { - input_label: { + label: { nl: 'Heeft u gedurende de afgelopen week opgezwollen benen of enkels gehad?', en: 'Have you had swelling in your legs or ankles during the past week?', }, input_id: 'EORTC_QLQ_PR25_Q46', }, { - input_label: { + label: { nl: 'Was uw gewichtsverlies gedurende de afgelopen vier weken een probleem voor u?', en: 'Has weight loss been a problem for you during the past four weeks?', }, input_id: 'EORTC_QLQ_PR25_Q47', }, { - input_label: { + label: { nl: 'Was uw gewichtstoename gedurende de afgelopen vier weken een probleem voor u?', en: 'Has weight gain been a problem for you during the past four weeks?', }, input_id: 'EORTC_QLQ_PR25_Q48', }, { - input_label: { + label: { nl: 'Voelde u zich gedurende de afgelopen vier weken minder mannelijk als gevolg van uw ziekte of behandeling?', en: 'Have you felt less masculine as a result of your illness or treatment during the past four weeks?', }, @@ -179,7 +179,7 @@ export const EORTC_QLQ_PR25_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'In hoeverre had u zin in seks gedurende de afgelopen vier weken?', en: 'To what extent were you interested in sex during the past four weeks?', }, @@ -187,7 +187,7 @@ export const EORTC_QLQ_PR25_SCALES: Array = [ inverse: true, }, { - input_label: { + label: { nl: 'In hoeverre was u seksueel actief gedurende de afgelopen vier weken?', en: 'To what extent were you sexually active during the past four weeks (with or without intercourse)?', }, @@ -202,7 +202,7 @@ export const EORTC_QLQ_PR25_SCALES: Array = [ item_range: 3, input_ids_in_subscale: [ { - input_label: { + label: { nl: 'In hoeverre was seks plezierig voor u de afgelopen vier weken?', en: 'To what extent was sex enjoyable for you during the past four weeks?', }, @@ -210,21 +210,21 @@ export const EORTC_QLQ_PR25_SCALES: Array = [ inverse: true, }, { - input_label: { + label: { nl: 'Had u moeite om een stijve penis te krijgen of te houden de afgelopen vier weken?', en: 'Did you have difficulty getting or maintaining an erection during the past four weeks?', }, input_id: 'EORTC_QLQ_PR25_Q53', }, { - input_label: { + label: { nl: 'Had u gedurende de afgelopen vier weken problemen met het krijgen van een zaadlozing (bv. een zgn "droge" zaadlozing)?', en: 'Did you have ejaculation problems during the past four weeks (eg dry ejaculation)?', }, input_id: 'EORTC_QLQ_PR25_Q54', }, { - input_label: { + label: { nl: 'Zag u er de afgelopen vier weken tegen op om seksueel contact te hebben, of voelde u zich ongemakkelijk wat betreft seksueel intiem zijn?', en: 'Have you felt uncomfortable about being sexually intimate during the past four weeks?', }, diff --git a/todo/epic_26/definition/epic_26_domains.ts b/todo/epic_26/definition/epic_26_domains.ts index 9f073de..656b065 100644 --- a/todo/epic_26/definition/epic_26_domains.ts +++ b/todo/epic_26/definition/epic_26_domains.ts @@ -7,11 +7,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q01', epic_item_number: 23, - input_label: { + label: { nl: 'Hoe vaak verloor u in de afgelopen 4 weken urine zonder dat u dat wilde?', en: 'Over the past 4 weeks, how often have you leaked urine?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -52,11 +52,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q02', epic_item_number: 26, - input_label: { + label: { nl: 'Hoe goed kon u in de afgelopen 4 weken de urine ophouden?', en: 'Which of the following best describes your urinary control during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -90,11 +90,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q03', epic_item_number: 27, - input_label: { + label: { nl: 'Hoeveel verbanden of luiers gebruikte u om ongewild urineverlies op te vangen in de afgelopen 4 weken?', en: 'How many pads or adult diapers per day did you usually use to control leakage during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Geen verbanden of luiers', en: 'None' } }, @@ -122,11 +122,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q04a', epic_item_number: 28, - input_label: { + label: { nl: 'In hoeverre heeft u ongewild urineverlies, in de afgelopen 4 weken, als een probleem ervaren?', en: 'How big a problem, if any, was the dripping or leaking urine for you during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -155,11 +155,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q04b', epic_item_number: 29, - input_label: { + label: { nl: 'In hoeverre heeft u pijn of een branderig gevoel bij het plassen, in de afgelopen 4 weken, als een probleem ervaren?', en: 'How big a problem, if any, was pain or burning on urination for you during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -182,11 +182,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q04c', epic_item_number: 30, - input_label: { + label: { nl: 'In hoeverre heeft u bloed bij de urine, in de afgelopen 4 weken, als een probleem ervaren?', en: 'How big a problem, if any, was bleeding with urination for you during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -209,11 +209,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q04d', epic_item_number: 31, - input_label: { + label: { nl: 'In hoeverre heeft u een slappe straal of niet goed kunne uitplassen, in de afgelopen 4 weken, als een probleem ervaren?', en: 'How big a problem, if any, was a weak urine urine stream or incomplete emptying for you during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -236,11 +236,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q04e', epic_item_number: 33, - input_label: { + label: { nl: 'In hoeverre heeft u vaak plassen overdag, in de afgelopen 4 weken, als een probleem ervaren?', en: 'How big a problem, if any, was the need to urinate frequently during the day for you during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -269,11 +269,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q06a', epic_item_number: 49, - input_label: { + label: { nl: 'In hoeverre heeft u de drang om naar het toilet te gaan voor ontlasting, in de afgelopen 4 weken, als een probleem ervaren?', en: 'How big a problem, if any, was urgency to have a bowel movement for you?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -296,11 +296,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q06b', epic_item_number: 50, - input_label: { + label: { nl: 'In hoeverre heeft u de meer frequente / vakere ontlasting, in de afgelopen 4 weken, als een probleem ervaren?', en: 'How big a problem, if any, was increased frequency of bowel movements for you?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -323,11 +323,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q06c', epic_item_number: 52, - input_label: { + label: { nl: 'In hoeverre heeft u het verlies of onvoldoende controle over de ontlasting, in de afgelopen 4 weken, als een probleem ervaren?', en: 'How big a problem, if any, was losing control of your stools for you?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -350,11 +350,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q06d', epic_item_number: 53, - input_label: { + label: { nl: 'In hoeverre heeft u bloed bij de ontlasting, in de afgelopen 4 weken, als een probleem ervaren?', en: 'How big a problem, if any, was bloody stools for you?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -377,11 +377,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q06e', epic_item_number: 54, - input_label: { + label: { nl: 'In hoeverre heeft u pijn in de buik of het rectum, in de afgelopen 4 weken, als een probleem ervaren?', en: 'How big a problem, if any, was abdominal/pelvic/rectal pain for you?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -404,11 +404,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q07', epic_item_number: 55, - input_label: { + label: { nl: 'Over het geheel genomen, was de ontlasting (stoelgang) een probleem voor u in de afgelopen 4 weken?', en: 'Overall, how big a problem have your bowel habits been for you during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -437,11 +437,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q08a', epic_item_number: 57, - input_label: { + label: { nl: 'In de afgelopen 4 weken, hoe zou u voor uzelf het vermogen om een erectie te krijgen beoordelen?', en: 'How would you rate your ability to have an erection during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -458,11 +458,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q08b', epic_item_number: 58, - input_label: { + label: { nl: 'In de afgelopen 4 weken, hoe zou u voor uzelf het vermogen om een orgasme te krijgen beoordelen?', en: 'How would you rate your ability to reach an orgasm (climax) during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -479,11 +479,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q09', epic_item_number: 59, - input_label: { + label: { nl: 'Hoe zou u de kwaliteit van uw erecties omschrijven in de afgelopen 4 weken?', en: 'How would you describe the usual QUALITY of your erections during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 1, label: { nl: 'Helemaal geen', en: 'None at all' } }, @@ -514,11 +514,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q10', epic_item_number: 60, - input_label: { + label: { nl: 'In de afgelopen 4 weken, hoe vaak had u een erectie wanneer u dat wenste?', en: 'How would you describe the FREQUENCY of your erections during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -562,11 +562,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q11', epic_item_number: 64, - input_label: { + label: { nl: 'Over het geheel, hoe zou u uw seksuele functioneren omschrijven in de afgelopen 4 weken?', en: 'Overall, how would you rate your ability to function sexually during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 1, label: { nl: 'Zeer slecht', en: 'Very poor' } }, @@ -580,11 +580,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q12', epic_item_number: 68, - input_label: { + label: { nl: 'Over het geheel genomen, was uw seksueel functioneren of de afwezigheid ervan een probleem voor u in de afgelopen 4 weken?', en: 'Overall, how big a problem has your sexual function or lack of sexual function been for you during the last 4 weeks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -613,11 +613,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q13a', epic_item_number: 74, - input_label: { + label: { nl: 'In hoeverre heeft u, in de afgelopen 4 weken, opvliegers als een probleem ervaren?', en: 'How big a problem during the last 4 weeks, if any, was hot flashes for you?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -640,11 +640,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q13b', epic_item_number: 75, - input_label: { + label: { nl: 'In hoeverre heeft u, in de afgelopen 4 weken, borstverandering / gevoeligheid als een probleem ervaren?', en: 'How big a problem during the last 4 weeks, if any, was breast tenderness/enlargement for you?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -667,11 +667,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q13c', epic_item_number: 77, - input_label: { + label: { nl: 'In hoeverre heeft u, in de afgelopen 4 weken, sombere buien / depressieve gevoelens als een probleem ervaren?', en: 'How big a problem during the last 4 weeks, if any, was feeling depressed for you?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -694,11 +694,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q13d', epic_item_number: 78, - input_label: { + label: { nl: 'In hoeverre heeft u, in de afgelopen 4 weken, gebrek aan energie als een probleem ervaren?', en: 'How big a problem during the last 4 weeks, if any, was lack of energy for you?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -721,11 +721,11 @@ export const EPIC_26_HRQOL_DOMAINS: Array = [ { input_id: 'EPIC26_Q13e', epic_item_number: 79, - input_label: { + label: { nl: 'In hoeverre heeft u, in de afgelopen 4 weken, verandering in lichaamsgewicht als een probleem ervaren?', en: 'How big a problem during the last 4 weeks, if any, was change in body weight for you?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/eq5d/3_level/definition/eq5d_3l_inputs.ts b/todo/eq5d/3_level/definition/eq5d_3l_inputs.ts index 2611dbf..e3a12a1 100644 --- a/todo/eq5d/3_level/definition/eq5d_3l_inputs.ts +++ b/todo/eq5d/3_level/definition/eq5d_3l_inputs.ts @@ -3,8 +3,8 @@ import type { InputType } from '../../../../src/types/calculations.types' export const EQ5D_3L_INPUTS: Array = [ { input_id: 'eq5d_3l_mobility', - input_label: { nl: 'Mobiliteit', en: 'Mobility' }, - input_type: { + label: { nl: 'Mobiliteit', en: 'Mobility' }, + type: { type: 'number', allowed_answers: [ { @@ -31,8 +31,8 @@ export const EQ5D_3L_INPUTS: Array = [ }, { input_id: 'eq5d_3l_selfcare', - input_label: { nl: 'Zelfzorg', en: 'Self-Care' }, - input_type: { + label: { nl: 'Zelfzorg', en: 'Self-Care' }, + type: { type: 'number', allowed_answers: [ { @@ -62,11 +62,11 @@ export const EQ5D_3L_INPUTS: Array = [ }, { input_id: 'eq5d_3l_usual', - input_label: { + label: { nl: 'Dagelijkse activiteiten (bijv. werk, studie, huishouden, gezins- en vrijetijdsactiviteiten)', en: 'Usual activities (e.g. work, study, housework, family or leisure activities)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -96,8 +96,8 @@ export const EQ5D_3L_INPUTS: Array = [ }, { input_id: 'eq5d_3l_pain', - input_label: { nl: 'Pijn/klachten', en: 'Pain/Discomfort' }, - input_type: { + label: { nl: 'Pijn/klachten', en: 'Pain/Discomfort' }, + type: { type: 'number', allowed_answers: [ { @@ -127,8 +127,8 @@ export const EQ5D_3L_INPUTS: Array = [ }, { input_id: 'eq5d_3l_anxiety', - input_label: { nl: 'Stemming', en: 'Anxiety/Depression' }, - input_type: { + label: { nl: 'Stemming', en: 'Anxiety/Depression' }, + type: { type: 'number', allowed_answers: [ { @@ -158,11 +158,11 @@ export const EQ5D_3L_INPUTS: Array = [ }, { input_id: 'eq5d_3l_vas', - input_label: { + label: { nl: 'Om mensen te helpen bij het aangeven hoe goed of hoe slecht een gezondheidstoestand is, hebben we een meetschaal (te vergelijken met een thermometer) gemaakt. Op de meetschaal hiernaast betekent “100” de beste gezondheidstoestand die u zich kunt voorstellen, en “0” de slechtste gezondheidstoestand die u zich kunt voorstellen.\n\nWe willen u vragen op deze meetschaal aan te geven hoe goed of hoe slecht volgens u uw eigen gezondheidstoestand vandaag is.', en: 'To help people say how good or bad a health state is, we have drawn a scale (rather like a thermometer) on which the best state you can imagine.\n\nWe would like you to indicate on this scale how good or bad your own health is today, in your opinion.', }, - input_type: { + type: { type: 'number', component: 'slider', range: { diff --git a/todo/eq5d/5_level/definition/eq5d_5l_inputs.ts b/todo/eq5d/5_level/definition/eq5d_5l_inputs.ts index c33c459..bedf204 100644 --- a/todo/eq5d/5_level/definition/eq5d_5l_inputs.ts +++ b/todo/eq5d/5_level/definition/eq5d_5l_inputs.ts @@ -3,8 +3,8 @@ import type { InputType } from '../../../../src/types/calculations.types' export const EQ5D_5L_INPUTS: Array = [ { input_id: 'eq5d_5l_mobility', - input_label: { nl: 'Mobiliteit', en: 'Mobility' }, - input_type: { + label: { nl: 'Mobiliteit', en: 'Mobility' }, + type: { type: 'number', allowed_answers: [ { @@ -48,8 +48,8 @@ export const EQ5D_5L_INPUTS: Array = [ }, { input_id: 'eq5d_5l_selfcare', - input_label: { nl: 'Zelfzorg', en: 'Self-care' }, - input_type: { + label: { nl: 'Zelfzorg', en: 'Self-care' }, + type: { type: 'number', allowed_answers: [ { @@ -93,11 +93,11 @@ export const EQ5D_5L_INPUTS: Array = [ }, { input_id: 'eq5d_5l_usual', - input_label: { + label: { nl: 'Dagelijkse activiteiten (bijv. werk, studie, huishouden, gezins- en vrijetijdsactiviteiten)', en: 'Usual activities (e.g. work, study, housework, family or leisure activities)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -141,8 +141,8 @@ export const EQ5D_5L_INPUTS: Array = [ }, { input_id: 'eq5d_5l_pain', - input_label: { nl: 'Pijn/ongemak', en: 'Pain/discomfort' }, - input_type: { + label: { nl: 'Pijn/ongemak', en: 'Pain/discomfort' }, + type: { type: 'number', allowed_answers: [ { @@ -186,8 +186,8 @@ export const EQ5D_5L_INPUTS: Array = [ }, { input_id: 'eq5d_5l_anxiety', - input_label: { nl: 'Angst/somberheid', en: 'Anxiety/depression' }, - input_type: { + label: { nl: 'Angst/somberheid', en: 'Anxiety/depression' }, + type: { type: 'number', allowed_answers: [ { @@ -231,11 +231,11 @@ export const EQ5D_5L_INPUTS: Array = [ }, { input_id: 'eq5d_5l_vas', - input_label: { + label: { nl: '- We willen weten hoe goed of slecht uw gezondheid VANDAAG is.\n- Deze meetschaal loopt van 0 tot 100.\n-100 staat voor de beste gezondheid die u zich kunt voorstellen. 0 staat voor de slechtste gezondheid die u zich kunt voorstellen.\n- Duid op de meetschaal aan hoe uw gezondheid VANDAAG is.', en: '- We would like to know how good or bad your health is TODAY.\n- This scale is numbered from 0 to 100\n- 100 means the best health you can imagine; 0 means the worst health you can imagine\n- Indicate on the scale how your health is TODAY.', }, - input_type: { + type: { type: 'number', component: 'slider', range: { diff --git a/todo/ess/definition/ess_inputs.ts b/todo/ess/definition/ess_inputs.ts index 2f38eab..434ff75 100644 --- a/todo/ess/definition/ess_inputs.ts +++ b/todo/ess/definition/ess_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -35,7 +35,7 @@ const input_type: NumberInputType = { export const ESS_INPUTS: Array = [ { input_id: 'ESS_Q1', - input_label: { + label: { nl: 'Tijdens zitten en lezen', en: 'Sitting and reading', }, @@ -44,7 +44,7 @@ export const ESS_INPUTS: Array = [ }, { input_id: 'ESS_Q2', - input_label: { + label: { nl: 'Tijdens televisie kijken', en: 'Watching TV', }, @@ -53,7 +53,7 @@ export const ESS_INPUTS: Array = [ }, { input_id: 'ESS_Q3', - input_label: { + label: { nl: 'Zitten in een openbare instelling (zoals theater)', en: 'Sitting still in a public place (e.g. a theatre, a cinema or a meeting)', }, @@ -62,7 +62,7 @@ export const ESS_INPUTS: Array = [ }, { input_id: 'ESS_Q4', - input_label: { + label: { nl: 'Langer dan 1 uur zittend als passagier in de auto', en: 'As a passenger in a car for an hour without a break', }, @@ -71,7 +71,7 @@ export const ESS_INPUTS: Array = [ }, { input_id: 'ESS_Q5', - input_label: { + label: { nl: 'Tijdens rust in de namiddag ', en: 'Lying down to rest in the afternoon when the circumstances allow', }, @@ -80,7 +80,7 @@ export const ESS_INPUTS: Array = [ }, { input_id: 'ESS_Q6', - input_label: { + label: { nl: 'Zitten en praten met iemand', en: 'Sitting and talking to someone', }, @@ -89,7 +89,7 @@ export const ESS_INPUTS: Array = [ }, { input_id: 'ESS_Q7', - input_label: { + label: { nl: 'Na de lunch', en: 'Sitting quietly after lunch without having drunk alcohol', }, @@ -98,7 +98,7 @@ export const ESS_INPUTS: Array = [ }, { input_id: 'ESS_Q8', - input_label: { + label: { nl: 'In de auto in een stilstaande file', en: 'In a car or bus while stopped for a few minutes in traffic', }, diff --git a/todo/faam/definition/faam_subscales.ts b/todo/faam/definition/faam_subscales.ts index 0b1bcd4..bce9b1a 100644 --- a/todo/faam/definition/faam_subscales.ts +++ b/todo/faam/definition/faam_subscales.ts @@ -60,7 +60,7 @@ const add_allowed_answers = ( input: Pick, ): InputType => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }) export const FAAM_SUBSCALES: Array = [ @@ -69,7 +69,7 @@ export const FAAM_SUBSCALES: Array = [ // 21 items input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Staan', en: 'Standing', fr: 'Se tenir debout', @@ -77,7 +77,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q01', }, { - input_label: { + label: { nl: 'Lopen op een vlakke ondergrond', en: 'Walking on even Ground', fr: 'Marcher sur un terrain régulier', @@ -85,7 +85,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q02', }, { - input_label: { + label: { nl: 'Lopen op een vlakke ondergrond zonder schoenen', en: 'Walking on even ground without shoes', fr: 'Marcher pied nu sur un terrain régulier', @@ -93,7 +93,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q03', }, { - input_label: { + label: { nl: 'Een helling op lopen', en: 'Walking up hills', fr: 'Monter une pente', @@ -101,7 +101,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q04', }, { - input_label: { + label: { nl: 'Een helling af lopen', en: 'Walking down hills', fr: 'Descendre une pente', @@ -109,7 +109,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q05', }, { - input_label: { + label: { nl: 'Een trap oplopen', en: 'Going up stairs', fr: 'Monter les escaliers', @@ -117,7 +117,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q06', }, { - input_label: { + label: { nl: 'Een trap aflopen', en: 'Going down stairs', fr: 'Descendre les escaliers', @@ -125,7 +125,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q07', }, { - input_label: { + label: { nl: 'Lopen op oneffen terrein', en: 'Walking on uneven ground', fr: 'Marcher sur un terrain irrégulier', @@ -133,7 +133,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q08', }, { - input_label: { + label: { nl: 'De stoep op en af stappen', en: 'Stepping up and down curbs', fr: 'Monter et descendre d’un trottoir', @@ -141,7 +141,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q09', }, { - input_label: { + label: { nl: 'Hurken', en: 'Squatting', fr: 'S’accroupir', @@ -149,7 +149,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q10', }, { - input_label: { + label: { nl: 'Op uw tenen gaan staan', en: 'Coming up on your toes', fr: 'Se mettre sur la pointe des pieds', @@ -157,7 +157,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q11', }, { - input_label: { + label: { nl: 'Als u begint te lopen', en: 'Walking initially', fr: 'Faire les premiers pas (le matin au réveil/ après une position assise prolongée', @@ -165,7 +165,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q12', }, { - input_label: { + label: { nl: 'Ongeveer 5 minuten wandelen', en: 'Walking 5 minutes or less', fr: 'Marcher 5 minutes ou moins', @@ -173,7 +173,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q13', }, { - input_label: { + label: { nl: 'Ongeveer 10 minuten wandelen', en: 'Walking approximately 10 minutes', fr: 'Marcher environ 10 minutes', @@ -181,7 +181,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q14', }, { - input_label: { + label: { nl: 'Langer dan 15 minuten wandelen', en: 'Walking 15 minutes or greater', fr: 'Marcher 15 minutes ou plus', @@ -189,7 +189,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q15', }, { - input_label: { + label: { nl: 'Huishoudelijke taken', en: 'Home responsibilities', fr: 'Les tâches ménagères', @@ -197,7 +197,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q16', }, { - input_label: { + label: { nl: 'Activiteiten in het algemene dagelijkse leven', en: 'Activities of daily living', fr: 'Les activités de la vie quotidienne', @@ -205,7 +205,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q17', }, { - input_label: { + label: { nl: 'Persoonlijke verzorging', en: 'Personal care', fr: 'Les soins personnels', @@ -213,7 +213,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q18', }, { - input_label: { + label: { nl: 'Licht tot matig zwaar werk(staan, lopen)', en: 'Light to moderate work (standing, walking)', fr: 'Un travail léger à modéré (se tenir debout, marcher)', @@ -221,7 +221,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q19', }, { - input_label: { + label: { nl: 'Zwaar werk (trekken/duwen,klimmen, sjouwen)', en: 'Heavy work (push/pulling,climbing, carrying)', fr: 'Un travail lourd (pousser/tirer, grimper, porter)', @@ -229,7 +229,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'ADL_Q20', }, { - input_label: { + label: { nl: 'Recreatieve activiteiten', en: 'Recreational activities', fr: 'Les activités de loisirs', @@ -251,7 +251,7 @@ export const FAAM_SUBSCALES: Array = [ input_ids_in_subscale: [ { - input_label: { + label: { nl: 'Hardlopen', en: 'Running', fr: 'Courir', @@ -259,7 +259,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'SPORTS_Q01', }, { - input_label: { + label: { nl: 'Springen', en: 'Jumping', fr: 'Sauter', @@ -267,7 +267,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'SPORTS_Q02', }, { - input_label: { + label: { nl: 'Landen na een sprong', en: 'Landing', fr: 'Se réceptionner d’un saut ', @@ -275,7 +275,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'SPORTS_Q03', }, { - input_label: { + label: { nl: 'Snel starten of stoppen met rennen', en: 'Starting and stopping quickly', fr: 'Démarrer et s’arrêter rapidement', @@ -283,7 +283,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'SPORTS_Q04', }, { - input_label: { + label: { nl: 'Zijwaarts bewegen/afzetten', en: 'Cutting/lateral Movements', fr: 'Faire des pas chassés/ des déplacements latéraux', @@ -291,7 +291,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'SPORTS_Q05', }, { - input_label: { + label: { nl: 'Lichte sportieve activiteiten', en: 'Low impact activities', fr: 'Activités sportives à faible impact (peu de chocs)', @@ -299,7 +299,7 @@ export const FAAM_SUBSCALES: Array = [ input_id: 'SPORTS_Q06', }, { - input_label: { + label: { nl: 'Sporten zoals u normaal zou doen.', en: 'Ability to perform activity with your normal technique', fr: 'Capacité à exécuter votre activité sportive avec votre technique habituelle', diff --git a/todo/fes_i/short_version/definition/short_fes_i_inputs.ts b/todo/fes_i/short_version/definition/short_fes_i_inputs.ts index 1f48d91..91a2feb 100644 --- a/todo/fes_i/short_version/definition/short_fes_i_inputs.ts +++ b/todo/fes_i/short_version/definition/short_fes_i_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../../src/types/calculations.types' import { NumberInputType } from '../../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -26,7 +26,7 @@ const input_type: NumberInputType = { export const SHORT_FES_I_INPUTS: Array = [ { input_id: 'Q01', - input_label: { + label: { en: 'How concerned are you that you might fall when getting dressed or undressed?', nl: 'Hoe bezorgd bent u dat u zou kunnen vallen bij Het aan- of uitkleden?', }, @@ -34,7 +34,7 @@ export const SHORT_FES_I_INPUTS: Array = [ }, { input_id: 'Q02', - input_label: { + label: { en: 'How concerned are you that you might fall when taking a bath or shower?', nl: 'Hoe bezorgd bent u dat u zou kunnen vallen bij Het nemen van een bad of douche?', }, @@ -42,7 +42,7 @@ export const SHORT_FES_I_INPUTS: Array = [ }, { input_id: 'Q03', - input_label: { + label: { en: 'How concerned are you that you might fall when getting in or out of a chair?', nl: 'Hoe bezorgd bent u dat u zou kunnen vallen bij Het in of uit een stoel komen?', }, @@ -50,7 +50,7 @@ export const SHORT_FES_I_INPUTS: Array = [ }, { input_id: 'Q04', - input_label: { + label: { en: 'How concerned are you that you might fall when going up or down stairs?', nl: 'Hoe bezorgd bent u dat u zou kunnen vallen bij Het op- of aflopen van een trap?', }, @@ -58,7 +58,7 @@ export const SHORT_FES_I_INPUTS: Array = [ }, { input_id: 'Q05', - input_label: { + label: { en: 'How concerned are you that you might fall when reaching for something above your head or on the ground?', nl: 'Hoe bezorgd bent u dat u zou kunnen vallen bij Het reiken naar iets boven uw hoofd of naar iets op de grond?', }, @@ -66,7 +66,7 @@ export const SHORT_FES_I_INPUTS: Array = [ }, { input_id: 'Q06', - input_label: { + label: { en: 'How concerned are you that you might fall when walking up or down a slope?', nl: 'Hoe bezorgd bent u dat u zou kunnen vallen bij Het op- of aflopen van een helling?', }, @@ -74,7 +74,7 @@ export const SHORT_FES_I_INPUTS: Array = [ }, { input_id: 'Q07', - input_label: { + label: { en: 'How concerned are you that you might fall when going out to a social event (e.g. religious service, family gathering or club meeting)?', nl: 'Hoe bezorgd bent u dat u zou kunnen vallen bij Het bezoeken van een sociale gelegenheid (zoals kerkdienst, familiebijeenkomst of verenigingsactiviteit)?', }, diff --git a/todo/fnd/definition/fnd_inputs.ts b/todo/fnd/definition/fnd_inputs.ts index 4f92da9..b3e2a34 100644 --- a/todo/fnd/definition/fnd_inputs.ts +++ b/todo/fnd/definition/fnd_inputs.ts @@ -3,10 +3,10 @@ import type { InputType } from '../../../src/types/calculations.types' export const FND_INPUTS: Array = [ { input_id: 'FAGERSTROM_Q01', - input_label: { + label: { en: 'How soon after you wake up do you smoke your first cigarette?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -32,10 +32,10 @@ export const FND_INPUTS: Array = [ }, { input_id: 'FAGERSTROM_Q02', - input_label: { + label: { en: 'Do you find it difficult to refrain from smoking in places where it is forbidden (e.g., in church, at the library, in the cinema)?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -51,10 +51,10 @@ export const FND_INPUTS: Array = [ }, { input_id: 'FAGERSTROM_Q03', - input_label: { + label: { en: 'Which cigarette would you hate most to give up?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -70,10 +70,10 @@ export const FND_INPUTS: Array = [ }, { input_id: 'FAGERSTROM_Q04', - input_label: { + label: { en: 'How many cigarettes per day do you smoke?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -97,10 +97,10 @@ export const FND_INPUTS: Array = [ }, { input_id: 'FAGERSTROM_Q05', - input_label: { + label: { en: 'Do you smoke more frequently during the first hours after waking than during the rest of the day?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -116,10 +116,10 @@ export const FND_INPUTS: Array = [ }, { input_id: 'FAGERSTROM_Q06', - input_label: { + label: { en: 'Do you smoke when you are so ill that you are in bed most of the day?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/foot_function_index/5pt_version/definition/foot_function_index_subscales.ts b/todo/foot_function_index/5pt_version/definition/foot_function_index_subscales.ts index 9f5efb9..f885f9d 100644 --- a/todo/foot_function_index/5pt_version/definition/foot_function_index_subscales.ts +++ b/todo/foot_function_index/5pt_version/definition/foot_function_index_subscales.ts @@ -3,7 +3,7 @@ import { NumberInputType } from '../../../../src/types/calculations/inputs/calcu export const NOT_APPLICABLE_ANSWER = 999 -const LIMITATION_INPUT_TYPE: NumberInputType = { +const LIMITATION_type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -33,7 +33,7 @@ const LIMITATION_INPUT_TYPE: NumberInputType = { ], } -const PAIN_INPUT_TYPE: NumberInputType = { +const PAIN_type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -63,7 +63,7 @@ const PAIN_INPUT_TYPE: NumberInputType = { ], } -const DISABILITY_INPUT_TYPE: NumberInputType = { +const DISABILITY_type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -99,40 +99,40 @@ export const FFI_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'LIMITATION_Q01', - input_label: { + label: { nl: 'Hoe vaak gebruikte u in de afgelopen weken een stok, krukken, een looprek of rollator binnenshuis als gevolg van uw voetklachten?', }, - input_type: LIMITATION_INPUT_TYPE, + type: LIMITATION_INPUT_TYPE, }, { input_id: 'LIMITATION_Q02', - input_label: { + label: { nl: 'Hoe vaak gebruikte u in de afgelopen weken een stok, krukken, een looprek of rollator buitenshuis als gevolg van uw voetklachten?', }, - input_type: LIMITATION_INPUT_TYPE, + type: LIMITATION_INPUT_TYPE, }, { input_id: 'LIMITATION_Q03', - input_label: { + label: { nl: 'Hoe vaak bleef u in de afgelopen weken bijna de hele dag binnen als gevolg van uw voetklachten?', }, - input_type: LIMITATION_INPUT_TYPE, + type: LIMITATION_INPUT_TYPE, }, { input_id: 'LIMITATION_Q04', - input_label: { + label: { nl: 'Hoe vaak bleef u in de afgelopen weken bijna de hele dag in bed als gevolg van uw voetklachten?', }, - input_type: LIMITATION_INPUT_TYPE, + type: LIMITATION_INPUT_TYPE, }, { input_id: 'LIMITATION_Q05', - input_label: { + label: { nl: 'Hoe vaak in de afgelopen weken beperkte u uw activiteiten als gevolg van uw voetklachten?', }, - input_type: LIMITATION_INPUT_TYPE, + type: LIMITATION_INPUT_TYPE, }, ], }, @@ -141,66 +141,66 @@ export const FFI_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'PAIN_Q01', - input_label: { + label: { nl: 'Hoeveel pijn had u in de afgelopen week toen deze op zijn ergst was?', }, - input_type: PAIN_INPUT_TYPE, + type: PAIN_INPUT_TYPE, }, { input_id: 'PAIN_Q02', - input_label: { + label: { nl: 'Hoeveel pijn had u in de afgelopen week voor u uit bed kwam ’s morgens?', }, - input_type: PAIN_INPUT_TYPE, + type: PAIN_INPUT_TYPE, }, { input_id: 'PAIN_Q03', - input_label: { + label: { nl: 'Hoeveel pijn had u in de afgelopen week bij lopen op blote voeten?', }, - input_type: PAIN_INPUT_TYPE, + type: PAIN_INPUT_TYPE, }, { input_id: 'PAIN_Q04', - input_label: { + label: { nl: 'Hoeveel pijn had u in de afgelopen week bij staan op blote voeten?', }, - input_type: PAIN_INPUT_TYPE, + type: PAIN_INPUT_TYPE, }, { input_id: 'PAIN_Q05', - input_label: { + label: { nl: 'Hoeveel pijn had u in de afgelopen week bij lopen met schoenen aan?', }, - input_type: PAIN_INPUT_TYPE, + type: PAIN_INPUT_TYPE, }, { input_id: 'PAIN_Q06', - input_label: { + label: { nl: 'Hoeveel pijn had u in de afgelopen week bij staan met schoenen aan?', }, - input_type: PAIN_INPUT_TYPE, + type: PAIN_INPUT_TYPE, }, { input_id: 'PAIN_Q07', - input_label: { + label: { nl: 'Hoeveel pijn had u in de afgelopen week bij lopen met inlays of aangepaste binnenzolen?', }, - input_type: PAIN_INPUT_TYPE, + type: PAIN_INPUT_TYPE, }, { input_id: 'PAIN_Q08', - input_label: { + label: { nl: 'Hoeveel pijn had u in de afgelopen week bij staan met inlays of aangepaste binnenzolen?', }, - input_type: PAIN_INPUT_TYPE, + type: PAIN_INPUT_TYPE, }, { input_id: 'PAIN_Q09', - input_label: { + label: { nl: 'Hoeveel pijn had u in de afgelopen week aan het einde van de dag?', }, - input_type: PAIN_INPUT_TYPE, + type: PAIN_INPUT_TYPE, }, ], }, @@ -209,66 +209,66 @@ export const FFI_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'DISABILITY_Q01', - input_label: { + label: { nl: 'Hoeveel moeite had u in de afgelopen week, als gevolg van uw voetklachten, om binnenshuis te lopen?', }, - input_type: DISABILITY_INPUT_TYPE, + type: DISABILITY_INPUT_TYPE, }, { input_id: 'DISABILITY_Q02', - input_label: { + label: { nl: 'Hoeveel moeite had u in de afgelopen week, als gevolg van uw voetklachten, om buitenshuis te lopen op oneffen terrein?', }, - input_type: DISABILITY_INPUT_TYPE, + type: DISABILITY_INPUT_TYPE, }, { input_id: 'DISABILITY_Q03', - input_label: { + label: { nl: 'Hoeveel moeite had u in de afgelopen week, als gevolg van uw voetklachten, om 500 meter of meer te lopen', }, - input_type: DISABILITY_INPUT_TYPE, + type: DISABILITY_INPUT_TYPE, }, { input_id: 'DISABILITY_Q04', - input_label: { + label: { nl: 'Hoeveel moeite had u in de afgelopen week, als gevolg van uw voetklachten, om de trap op te lopen?', }, - input_type: DISABILITY_INPUT_TYPE, + type: DISABILITY_INPUT_TYPE, }, { input_id: 'DISABILITY_Q05', - input_label: { + label: { nl: 'Hoeveel moeite had u in de afgelopen week, als gevolg van uw voetklachten, om de trap af te lopen?', }, - input_type: DISABILITY_INPUT_TYPE, + type: DISABILITY_INPUT_TYPE, }, { input_id: 'DISABILITY_Q06', - input_label: { + label: { nl: 'Hoeveel moeite had u in de afgelopen week, als gevolg van uw voetklachten, om op de tenen te staan?', }, - input_type: DISABILITY_INPUT_TYPE, + type: DISABILITY_INPUT_TYPE, }, { input_id: 'DISABILITY_Q07', - input_label: { + label: { nl: 'Hoeveel moeite had u in de afgelopen week, als gevolg van uw voetklachten, om op te staan uit een stoel?', }, - input_type: DISABILITY_INPUT_TYPE, + type: DISABILITY_INPUT_TYPE, }, { input_id: 'DISABILITY_Q08', - input_label: { + label: { nl: 'Hoeveel moeite had u in de afgelopen week, als gevolg van uw voetklachten, om een stoeprand op- of af te stappen?', }, - input_type: DISABILITY_INPUT_TYPE, + type: DISABILITY_INPUT_TYPE, }, { input_id: 'DISABILITY_Q09', - input_label: { + label: { nl: 'Hoeveel moeite had u in de afgelopen week, als gevolg van uw voetklachten, om snel te lopen of te rennen?', }, - input_type: DISABILITY_INPUT_TYPE, + type: DISABILITY_INPUT_TYPE, }, ], }, diff --git a/todo/forgotten_joint_score_12/hip/definition/forgotten_joint_score_12_hip_inputs.ts b/todo/forgotten_joint_score_12/hip/definition/forgotten_joint_score_12_hip_inputs.ts index b7bd421..1dbb628 100644 --- a/todo/forgotten_joint_score_12/hip/definition/forgotten_joint_score_12_hip_inputs.ts +++ b/todo/forgotten_joint_score_12/hip/definition/forgotten_joint_score_12_hip_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../../src/types/calculations.types' import { NumberInputType } from '../../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -42,7 +42,7 @@ const input_type: NumberInputType = { export const FJS_HIP_INPUTS: Array = [ { input_id: 'Q01', - input_label: { + label: { nl: "Bent u zich bewust van uw heupgewricht 's nachts in bed?", en: '', }, @@ -50,7 +50,7 @@ export const FJS_HIP_INPUTS: Array = [ }, { input_id: 'Q02', - input_label: { + label: { nl: 'Bent u zich bewust van uw heupgewricht wanneer u langer dan een uur op een stoel zit?', en: '', }, @@ -58,7 +58,7 @@ export const FJS_HIP_INPUTS: Array = [ }, { input_id: 'Q03', - input_label: { + label: { nl: 'Bent u zich bewust van uw heupgewricht wanneer u langer dan 15 minuten wandelt?', en: '', }, @@ -66,7 +66,7 @@ export const FJS_HIP_INPUTS: Array = [ }, { input_id: 'Q04', - input_label: { + label: { nl: 'Bent u zich bewust van uw heupgewricht wanneer u een bad/douche neemt?', en: '', }, @@ -74,7 +74,7 @@ export const FJS_HIP_INPUTS: Array = [ }, { input_id: 'Q05', - input_label: { + label: { nl: 'Bent u zich bewust van uw heupgewricht wanneer u met de auto reist?', en: '', }, @@ -82,7 +82,7 @@ export const FJS_HIP_INPUTS: Array = [ }, { input_id: 'Q06', - input_label: { + label: { nl: 'Bent u zich bewust van uw heupgewricht wanneer u de trap opgaat?', en: '', }, @@ -90,7 +90,7 @@ export const FJS_HIP_INPUTS: Array = [ }, { input_id: 'Q07', - input_label: { + label: { nl: 'Bent u zich bewust van uw heupgewricht wanneer u op een oneffen ondergrond wandelt?', en: '', }, @@ -98,7 +98,7 @@ export const FJS_HIP_INPUTS: Array = [ }, { input_id: 'Q08', - input_label: { + label: { nl: 'Bent u zich bewust van uw heupgewricht wanneer u opstaat vanuit een laagzittende positie?', en: '', }, @@ -106,7 +106,7 @@ export const FJS_HIP_INPUTS: Array = [ }, { input_id: 'Q09', - input_label: { + label: { nl: 'Bent u zich bewust van uw heupgewricht wanneer u lange tijd staat?', en: '', }, @@ -114,7 +114,7 @@ export const FJS_HIP_INPUTS: Array = [ }, { input_id: 'Q10', - input_label: { + label: { nl: 'Bent u zich bewust van uw heupgewricht wanneer u huishoudelijke taken uitvoert of tuiniert?', en: '', }, @@ -122,7 +122,7 @@ export const FJS_HIP_INPUTS: Array = [ }, { input_id: 'Q11', - input_label: { + label: { nl: 'Bent u zich bewust van uw heupgewricht wanneer u een korte wandeling of trektocht maakt?', en: '', }, @@ -130,7 +130,7 @@ export const FJS_HIP_INPUTS: Array = [ }, { input_id: 'Q12', - input_label: { + label: { nl: 'Bent u zich bewust van uw heupgewricht wanneer u uw favoriete sport beoefent?', en: '', }, diff --git a/todo/forgotten_joint_score_12/knee/definition/forgotten_joint_score_12_knee_inputs.ts b/todo/forgotten_joint_score_12/knee/definition/forgotten_joint_score_12_knee_inputs.ts index 4a63d4d..3a991f5 100644 --- a/todo/forgotten_joint_score_12/knee/definition/forgotten_joint_score_12_knee_inputs.ts +++ b/todo/forgotten_joint_score_12/knee/definition/forgotten_joint_score_12_knee_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../../src/types/calculations.types' import { NumberInputType } from '../../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -42,7 +42,7 @@ const input_type: NumberInputType = { export const FJS_KNEE_INPUTS: Array = [ { input_id: 'Q01', - input_label: { + label: { nl: "Bent u zich bewust van uw kniegewricht 's nachts in bed?", en: '', }, @@ -50,7 +50,7 @@ export const FJS_KNEE_INPUTS: Array = [ }, { input_id: 'Q02', - input_label: { + label: { nl: 'Bent u zich bewust van uw kniegewricht wanneer u langer dan een uur op een stoel zit?', en: '', }, @@ -58,7 +58,7 @@ export const FJS_KNEE_INPUTS: Array = [ }, { input_id: 'Q03', - input_label: { + label: { nl: 'Bent u zich bewust van uw kniegewricht wanneer u langer dan 15 minuten wandelt?', en: '', }, @@ -66,7 +66,7 @@ export const FJS_KNEE_INPUTS: Array = [ }, { input_id: 'Q04', - input_label: { + label: { nl: 'Bent u zich bewust van uw kniegewricht wanneer u een bad/douche neemt?', en: '', }, @@ -74,7 +74,7 @@ export const FJS_KNEE_INPUTS: Array = [ }, { input_id: 'Q05', - input_label: { + label: { nl: 'Bent u zich bewust van uw kniegewricht wanneer u met de auto reist?', en: '', }, @@ -82,7 +82,7 @@ export const FJS_KNEE_INPUTS: Array = [ }, { input_id: 'Q06', - input_label: { + label: { nl: 'Bent u zich bewust van uw kniegewricht wanneer u de trap opgaat?', en: '', }, @@ -90,7 +90,7 @@ export const FJS_KNEE_INPUTS: Array = [ }, { input_id: 'Q07', - input_label: { + label: { nl: 'Bent u zich bewust van uw kniegewricht wanneer u op een oneffen ondergrond wandelt?', en: '', }, @@ -98,7 +98,7 @@ export const FJS_KNEE_INPUTS: Array = [ }, { input_id: 'Q08', - input_label: { + label: { nl: 'Bent u zich bewust van uw kniegewricht wanneer u opstaat vanuit een laagzittende positie?', en: '', }, @@ -106,7 +106,7 @@ export const FJS_KNEE_INPUTS: Array = [ }, { input_id: 'Q09', - input_label: { + label: { nl: 'Bent u zich bewust van uw kniegewricht wanneer u lange tijd staat?', en: '', }, @@ -114,7 +114,7 @@ export const FJS_KNEE_INPUTS: Array = [ }, { input_id: 'Q10', - input_label: { + label: { nl: 'Bent u zich bewust van uw kniegewricht wanneer u huishoudelijke taken uitvoert of tuiniert?', en: '', }, @@ -122,7 +122,7 @@ export const FJS_KNEE_INPUTS: Array = [ }, { input_id: 'Q11', - input_label: { + label: { nl: 'Bent u zich bewust van uw kniegewricht wanneer u een korte wandeling of trektocht maakt?', en: '', }, @@ -130,7 +130,7 @@ export const FJS_KNEE_INPUTS: Array = [ }, { input_id: 'Q12', - input_label: { + label: { nl: 'Bent u zich bewust van uw kniegewricht wanneer u uw favoriete sport beoefent?', en: '', }, diff --git a/todo/ghq_12/definition/ghq_12_inputs.ts b/todo/ghq_12/definition/ghq_12_inputs.ts index 787e964..295f8ca 100644 --- a/todo/ghq_12/definition/ghq_12_inputs.ts +++ b/todo/ghq_12/definition/ghq_12_inputs.ts @@ -3,11 +3,11 @@ import type { InputType } from '../../../src/types/calculations.types' export const GHQ_12_INPUTS: Array = [ { input_id: 'GHQ_12_Q01', - input_label: { + label: { nl: 'Hebt u zich in de afgelopen weken kunnen concentreren op uw bezigheden?', en: 'Over the past few weeks... Have you been able to concentrate well on what you were doing?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -41,11 +41,11 @@ export const GHQ_12_INPUTS: Array = [ }, { input_id: 'GHQ_12_Q02', - input_label: { + label: { nl: 'Bent u in de afgelopen weken door zorgen veel slaap tekort gekomen?', en: 'Over the past few weeks... Have your worries made you lose a lot of sleep?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -79,11 +79,11 @@ export const GHQ_12_INPUTS: Array = [ }, { input_id: 'GHQ_12_Q03', - input_label: { + label: { nl: 'Hebt u in de afgelopen weken het gevoel gehad zinvol bezig te zijn?', en: 'Over the past few weeks... Have you felt that you are playing a useful role in life?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -117,11 +117,11 @@ export const GHQ_12_INPUTS: Array = [ }, { input_id: 'GHQ_12_Q04', - input_label: { + label: { nl: 'Voelde u zich in de afgelopen weken in staat om beslissingen (over dingen) te nemen?', en: 'Over the past few weeks... Have you felt capable of making decisions?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -155,11 +155,11 @@ export const GHQ_12_INPUTS: Array = [ }, { input_id: 'GHQ_12_Q05', - input_label: { + label: { nl: 'Hebt u in de afgelopen weken het gevoel gehad dat u voortdurend onder druk stond?', en: 'Over the past few weeks... Have you felt constantly overwhelmed and stressed?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -193,11 +193,11 @@ export const GHQ_12_INPUTS: Array = [ }, { input_id: 'GHQ_12_Q06', - input_label: { + label: { nl: 'Hebt u in de afgelopen weken het gevoel gehad dat u uw moeilijkheden niet de baas kon?', en: 'Over the past few weeks... Have you had the feeling that you cannot overcome your difficulties?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -231,11 +231,11 @@ export const GHQ_12_INPUTS: Array = [ }, { input_id: 'GHQ_12_Q07', - input_label: { + label: { nl: 'Hebt u in de afgelopen weken plezier kunnen beleven aan uw gewone, dagelijkse bezigheden?', en: 'Over the past few weeks... Have you been able to enjoy your normal daily activities?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -269,11 +269,11 @@ export const GHQ_12_INPUTS: Array = [ }, { input_id: 'GHQ_12_Q08', - input_label: { + label: { nl: 'Bent u in de afgelopen weken in staat geweest uw problemen onder ogen te zien?', en: 'Over the past few weeks... Have you been able to adequately cope with your problems?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -307,11 +307,11 @@ export const GHQ_12_INPUTS: Array = [ }, { input_id: 'GHQ_12_Q09', - input_label: { + label: { nl: 'Hebt u zich in de afgelopen weken ongelukkig of neerslachtig gevoeld?', en: 'Over the past few weeks... Have you felt unhappy or depressed?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -345,11 +345,11 @@ export const GHQ_12_INPUTS: Array = [ }, { input_id: 'GHQ_12_Q10', - input_label: { + label: { nl: 'Bent u in de afgelopen weken het vertrouwen in uzelf kwijtgeraakt?', en: 'Over the past few weeks... Have you lost confidence in yourself?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -383,11 +383,11 @@ export const GHQ_12_INPUTS: Array = [ }, { input_id: 'GHQ_12_Q11', - input_label: { + label: { nl: 'Hebt u zich in de afgelopen weken als een waardeloos iemand beschouwd?', en: 'Over the past few weeks... Have you thought that you are a person worthless?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -421,11 +421,11 @@ export const GHQ_12_INPUTS: Array = [ }, { input_id: 'GHQ_12_Q12', - input_label: { + label: { nl: 'Hebt u zich in de afgelopen weken alles bij elkaar redelijk gelukkig gevoeld?', en: 'Over the past few weeks... Do you feel reasonably happy considering all the circumstances?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/hads/definition/HADS_subscales.ts b/todo/hads/definition/HADS_subscales.ts index 2178583..30d8154 100644 --- a/todo/hads/definition/HADS_subscales.ts +++ b/todo/hads/definition/HADS_subscales.ts @@ -6,11 +6,11 @@ export const HADS_subscales: Array = [ input_ids_in_subscale: [ { input_id: 'HADS_01', - input_label: { + label: { nl: 'Ik voel me de laatste tijd gespannen', en: "I feel tense or 'wound up'", }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 3, label: { nl: 'Meestal', en: 'Most of the time' } }, @@ -28,11 +28,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_03', - input_label: { + label: { nl: 'Ik krijg de laatste tijd het angstige gevoel alsof er elk moment iets vreselijks zal gebeuren', en: 'I get a sort of frightened feeling as if something awful is about to happen', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -62,11 +62,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_05', - input_label: { + label: { nl: 'Ik maak me de laatste tijd ongerust.', en: 'Worrying thoughts go through my mind', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -87,11 +87,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_07', - input_label: { + label: { nl: 'Ik kan de laatste tijd rustig zitten en me ontspannen', en: 'I can sit at ease and feel relaxed', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Zeker', en: 'Definitely' } }, @@ -103,11 +103,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_09', - input_label: { + label: { nl: 'Ik krijg de laatste tijd een soort benauwd, gespannen gevoel in mijn maag.', en: "I get a sort of frightened feeling like 'butterflies' in the stomach", }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Helemaal niet', en: 'Not at all' } }, @@ -119,11 +119,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_11', - input_label: { + label: { nl: 'Ik voel me de laatste tijd rusteloos', en: 'I feel restless as I have to be on the move', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 3, label: { nl: 'Heel erg', en: 'Very much indeed' } }, @@ -135,11 +135,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_13', - input_label: { + label: { nl: 'Ik krijg de laatste tijd plotseling gevoelens van angst of paniek', en: 'I get sudden feelings of panic', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 3, label: { nl: 'Zeer vaak', en: 'Very often indeed' } }, @@ -156,11 +156,11 @@ export const HADS_subscales: Array = [ input_ids_in_subscale: [ { input_id: 'HADS_02', - input_label: { + label: { nl: 'Ik geniet nog steeds van de dingen waar ik vroeger van genoot', en: 'I still enjoy the things I used to enjoy', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -178,11 +178,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_04', - input_label: { + label: { nl: 'Ik kan lachen en de dingen van de vrolijke kant zien.', en: 'I can laugh and see the funny side of things', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -209,11 +209,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_06', - input_label: { + label: { nl: 'Ik voel me de laatste tijd opgewekt', en: 'I feel cheerful', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 3, label: { nl: 'Helmaal niet', en: 'Not at all' } }, @@ -225,11 +225,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_08', - input_label: { + label: { nl: 'Ik voel me de laatste tijd alsof alles moeizamer gaat', en: 'I feel as if I am slowed down', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -244,11 +244,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_10', - input_label: { + label: { nl: 'Ik heb de laatste tijd geen interesse meer in mijn uiterlijk', en: 'I have lost interest in my appearance', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 3, label: { nl: 'Zeker', en: 'Definitely' } }, @@ -278,11 +278,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_12', - input_label: { + label: { nl: 'Ik verheug me van tevoren al op dingen', en: 'I look forward with enjoyment to things', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -312,11 +312,11 @@ export const HADS_subscales: Array = [ }, { input_id: 'HADS_14', - input_label: { + label: { nl: 'Ik kan van een goed boek genieten of een radio- of televisieprogramma.', en: 'I can enjoy a good book or radio or TV program', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Vaak', en: 'Often' } }, diff --git a/todo/harris_hip_score/definition/harris_hip_score_inputs.ts b/todo/harris_hip_score/definition/harris_hip_score_inputs.ts index 0fcbf1b..3e49fe1 100644 --- a/todo/harris_hip_score/definition/harris_hip_score_inputs.ts +++ b/todo/harris_hip_score/definition/harris_hip_score_inputs.ts @@ -3,11 +3,11 @@ import type { InputType } from '../../../src/types/calculations.types' export const HARRIS_HIP_SCORE_INPUTS: Array = [ { input_id: 'PAIN', - input_label: { + label: { nl: 'Pijn', en: 'Pain', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -57,11 +57,11 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ }, { input_id: 'LIMP', - input_label: { + label: { nl: 'Manken', en: 'Limp', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -97,11 +97,11 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ }, { input_id: 'SUPPORT', - input_label: { + label: { nl: 'Steunmiddelen', en: 'Support', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -151,11 +151,11 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ }, { input_id: 'DISTANCE_WALKED', - input_label: { + label: { nl: '', en: 'Distance walked', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -198,11 +198,11 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ }, { input_id: 'SITTING', - input_label: { + label: { nl: 'Zitten', en: 'Sitting', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -231,11 +231,11 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ }, { input_id: 'ENTER_PUBLIC_TRANSPORTATION', - input_label: { + label: { nl: 'Instappen openbaar vervoer', en: 'Enter public transportation', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -257,11 +257,11 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ }, { input_id: 'STAIRS', - input_label: { + label: { nl: 'Traplopen', en: 'Stairs', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -297,11 +297,11 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ }, { input_id: 'PUT_ON_SOCKS_AND_SHOES', - input_label: { + label: { nl: 'Aan- en uittrekken schoenen en sokken', en: 'Put on socks and shoes', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -330,11 +330,11 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ }, { input_id: 'ABSENCE_OF_DEFORMITY', - input_label: { + label: { nl: 'Afwezigheid deformiteiten', en: 'Absence of deformity', }, - input_type: { + type: { type: 'numbers_array', allowed_answers: [ { @@ -370,7 +370,7 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ }, { input_id: 'RANGE_OF_MOTION_FLEXION', - input_label: { + label: { nl: 'Mobiliteit - Flexie (*140°)', en: 'Range of motion - Flexion (*140°)', }, @@ -378,13 +378,13 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ nl: '* duidt de normaal aan', en: '* indicates normal', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'RANGE_OF_MOTION_ABDUCTION', - input_label: { + label: { nl: 'Mobiliteit - Abductie (*40)', en: 'Range of motion - Abduction (*40)', }, @@ -392,13 +392,13 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ nl: '* duidt de normaal aan', en: '* indicates normal', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'RANGE_OF_MOTION_ADDUCTION', - input_label: { + label: { nl: 'Mobiliteit - Adductie (*40)', en: 'Range of motion - Adduction (*40)', }, @@ -406,13 +406,13 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ nl: '* duidt de normaal aan', en: '* indicates normal', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'RANGE_OF_MOTION_EXTERNAL_ROTATION', - input_label: { + label: { nl: 'Mobiliteit - Externe rotatie (*40)', en: 'Range of motion - External rotation (*40)', }, @@ -420,13 +420,13 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ nl: '* duidt de normaal aan', en: '* indicates normal', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'RANGE_OF_MOTION_INTERNAL_ROTATION', - input_label: { + label: { nl: 'Mobiliteit - Interne rotatie (*40)', en: 'Range of motion - Internal rotation (*40)', }, @@ -434,7 +434,7 @@ export const HARRIS_HIP_SCORE_INPUTS: Array = [ nl: '* duidt de normaal aan', en: '* indicates normal', }, - input_type: { + type: { type: 'number', }, }, diff --git a/todo/hoos_extended/definition/hoos_scales.ts b/todo/hoos_extended/definition/hoos_scales.ts index bb95eb7..92cd444 100644 --- a/todo/hoos_extended/definition/hoos_scales.ts +++ b/todo/hoos_extended/definition/hoos_scales.ts @@ -6,11 +6,11 @@ export const HOOS_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 's1', - input_label: { + label: { nl: '', en: 'Do you feel grinding, hear clicking or any other type of noise from your hip?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'Never' } }, @@ -23,8 +23,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 's2', - input_label: { nl: '', en: 'Difficulties spreading legs wide apart' }, - input_type: { + label: { nl: '', en: 'Difficulties spreading legs wide apart' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -37,8 +37,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 's3', - input_label: { nl: '', en: 'Difficulties to stride out when walking' }, - input_type: { + label: { nl: '', en: 'Difficulties to stride out when walking' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -51,11 +51,11 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 's4', - input_label: { + label: { nl: '', en: 'How severe is your hip joint stiffness after first wakening in the morning?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -68,11 +68,11 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 's5', - input_label: { + label: { nl: '', en: 'How severe is your hip stiffness after sitting, lying or resting later in the day?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -90,8 +90,8 @@ export const HOOS_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'p1', - input_label: { nl: '', en: 'How often is your hip painful?' }, - input_type: { + label: { nl: '', en: 'How often is your hip painful?' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'Never' } }, @@ -104,8 +104,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'p2', - input_label: { nl: '', en: 'Straightening your hip fully' }, - input_type: { + label: { nl: '', en: 'Straightening your hip fully' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -118,8 +118,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'p3', - input_label: { nl: '', en: 'Bending your hip fully' }, - input_type: { + label: { nl: '', en: 'Bending your hip fully' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -132,8 +132,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'p4', - input_label: { nl: '', en: 'Walking on a flat surface' }, - input_type: { + label: { nl: '', en: 'Walking on a flat surface' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -146,8 +146,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'p5', - input_label: { nl: '', en: 'Going up or down stairs' }, - input_type: { + label: { nl: '', en: 'Going up or down stairs' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -160,8 +160,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'p6', - input_label: { nl: '', en: 'At night while in bed' }, - input_type: { + label: { nl: '', en: 'At night while in bed' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -174,8 +174,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'p7', - input_label: { nl: '', en: 'Sitting or lying' }, - input_type: { + label: { nl: '', en: 'Sitting or lying' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -188,8 +188,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'p8', - input_label: { nl: '', en: 'Standing upright' }, - input_type: { + label: { nl: '', en: 'Standing upright' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -202,11 +202,11 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'p9', - input_label: { + label: { nl: '', en: 'Walking on a hard surface (asphalt, concrete, etc.)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -219,8 +219,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'p10', - input_label: { nl: '', en: 'Walking on an uneven surface' }, - input_type: { + label: { nl: '', en: 'Walking on an uneven surface' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -238,8 +238,8 @@ export const HOOS_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'a1', - input_label: { nl: '', en: 'Descending stairs' }, - input_type: { + label: { nl: '', en: 'Descending stairs' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -252,8 +252,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a2', - input_label: { nl: '', en: 'Ascending stairs' }, - input_type: { + label: { nl: '', en: 'Ascending stairs' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -266,8 +266,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a3', - input_label: { nl: '', en: 'Rising from sitting' }, - input_type: { + label: { nl: '', en: 'Rising from sitting' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -280,8 +280,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a4', - input_label: { nl: '', en: 'Standing' }, - input_type: { + label: { nl: '', en: 'Standing' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -294,8 +294,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a5', - input_label: { nl: '', en: 'Bending to the floor/pick up an object' }, - input_type: { + label: { nl: '', en: 'Bending to the floor/pick up an object' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -308,8 +308,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a6', - input_label: { nl: '', en: 'Walking on a flat surface' }, - input_type: { + label: { nl: '', en: 'Walking on a flat surface' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -322,8 +322,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a7', - input_label: { nl: '', en: 'Getting in/out of car' }, - input_type: { + label: { nl: '', en: 'Getting in/out of car' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -336,8 +336,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a8', - input_label: { nl: '', en: 'Going shopping' }, - input_type: { + label: { nl: '', en: 'Going shopping' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -350,8 +350,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a9', - input_label: { nl: '', en: 'Putting on socks/stockings' }, - input_type: { + label: { nl: '', en: 'Putting on socks/stockings' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -364,8 +364,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a10', - input_label: { nl: '', en: 'Rising from bed' }, - input_type: { + label: { nl: '', en: 'Rising from bed' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -378,8 +378,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a11', - input_label: { nl: '', en: 'Taking off socks/stockings' }, - input_type: { + label: { nl: '', en: 'Taking off socks/stockings' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -392,11 +392,11 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a12', - input_label: { + label: { nl: '', en: 'Lying in bed (turning over, maintaining hip position)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -409,8 +409,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a13', - input_label: { nl: '', en: 'Getting in/out of bath' }, - input_type: { + label: { nl: '', en: 'Getting in/out of bath' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -423,8 +423,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a14', - input_label: { nl: '', en: 'Sitting' }, - input_type: { + label: { nl: '', en: 'Sitting' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -437,8 +437,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a15', - input_label: { nl: '', en: 'Getting on/off toilet' }, - input_type: { + label: { nl: '', en: 'Getting on/off toilet' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -451,11 +451,11 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a16', - input_label: { + label: { nl: '', en: 'Heavy domestic duties (moving heavy boxes, scrubbing floors, etc)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -468,11 +468,11 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'a17', - input_label: { + label: { nl: '', en: 'Light domestic duties (cooking, dusting, etc)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -490,8 +490,8 @@ export const HOOS_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'sp1', - input_label: { nl: '', en: 'Squatting' }, - input_type: { + label: { nl: '', en: 'Squatting' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -504,8 +504,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'sp2', - input_label: { nl: '', en: 'Running' }, - input_type: { + label: { nl: '', en: 'Running' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -518,8 +518,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'sp3', - input_label: { nl: '', en: 'Twisting/pivoting on loaded leg' }, - input_type: { + label: { nl: '', en: 'Twisting/pivoting on loaded leg' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -532,8 +532,8 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'sp4', - input_label: { nl: '', en: 'Walking on uneven surface' }, - input_type: { + label: { nl: '', en: 'Walking on uneven surface' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, @@ -551,11 +551,11 @@ export const HOOS_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'q1', - input_label: { + label: { nl: '', en: 'How often are you aware of your hip problem?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'Never' } }, @@ -568,11 +568,11 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'q2', - input_label: { + label: { nl: '', en: 'Have you modified your life style to avoid activities potentially damaging to your hip?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'Not at all' } }, @@ -585,11 +585,11 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'q3', - input_label: { + label: { nl: '', en: 'How much are you troubled with lack of confidence in your hip?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'Not at all' } }, @@ -602,11 +602,11 @@ export const HOOS_SUBSCALES: Array = [ }, { input_id: 'q4', - input_label: { + label: { nl: '', en: 'In general, how much difficulty do you have with your hip?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '', en: 'None' } }, diff --git a/todo/hoos_ps/definition/hoos_ps_inputs.ts b/todo/hoos_ps/definition/hoos_ps_inputs.ts index 76ec334..2ca8044 100644 --- a/todo/hoos_ps/definition/hoos_ps_inputs.ts +++ b/todo/hoos_ps/definition/hoos_ps_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Geen', en: 'None', fr: 'Absente' } }, @@ -15,7 +15,7 @@ const input_type: NumberInputType = { export const HOOS_PS_INPUTS: Array = [ { input_id: '1_stairs', - input_label: { + label: { nl: 'Trap aflopen', en: 'Descending stairs', fr: 'Descendre les escaliers', @@ -25,7 +25,7 @@ export const HOOS_PS_INPUTS: Array = [ }, { input_id: '2_bath_shower', - input_label: { + label: { nl: 'In/uit bad of douche gaan', en: 'Getting in/out of bath or shower', fr: 'Entrer ou sortir d’une baignoire', @@ -35,19 +35,19 @@ export const HOOS_PS_INPUTS: Array = [ }, { input_id: '3_sit', - input_label: { nl: 'Zitten', en: 'Sitting', fr: 'Rester assis(e)' }, + label: { nl: 'Zitten', en: 'Sitting', fr: 'Rester assis(e)' }, input_type, required: true, }, { input_id: '4_running', - input_label: { nl: 'Hardlopen', en: 'Running', fr: 'Courir' }, + label: { nl: 'Hardlopen', en: 'Running', fr: 'Courir' }, input_type, required: true, }, { input_id: '5_turn_on_leg', - input_label: { + label: { nl: 'Draaien op een belast been', en: 'Twisting/pivoting on your loaded leg', fr: 'Tourner, pivoter sur votre jambe', diff --git a/todo/hos/definition/hos_subscales.ts b/todo/hos/definition/hos_subscales.ts index 258946e..e27d779 100644 --- a/todo/hos/definition/hos_subscales.ts +++ b/todo/hos/definition/hos_subscales.ts @@ -54,7 +54,7 @@ const add_allowed_answers = ( input: Pick, ): InputType => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }) export const HOS_SUBSCALES: Array = [ @@ -63,71 +63,71 @@ export const HOS_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'Q01', - input_label: { + label: { nl: '', en: 'Because of your hip how much difficulty do you have with: Standing for 15 minutes', }, }, { input_id: 'Q02', - input_label: { nl: '', en: 'Getting into and out of an average car' }, + label: { nl: '', en: 'Getting into and out of an average car' }, }, { input_id: 'Q03', - input_label: { nl: '', en: 'Walking up steep hills' }, + label: { nl: '', en: 'Walking up steep hills' }, }, { input_id: 'Q04', - input_label: { nl: '', en: 'Walking down steep hills' }, + label: { nl: '', en: 'Walking down steep hills' }, }, { input_id: 'Q05', - input_label: { nl: '', en: 'Going up 1 flight of stairs' }, + label: { nl: '', en: 'Going up 1 flight of stairs' }, }, { input_id: 'Q06', - input_label: { nl: '', en: 'Going down 1 flight of stairs' }, + label: { nl: '', en: 'Going down 1 flight of stairs' }, }, { input_id: 'Q07', - input_label: { nl: '', en: 'Stepping up and down curbs' }, + label: { nl: '', en: 'Stepping up and down curbs' }, }, - { input_id: 'Q08', input_label: { nl: '', en: 'Deep squatting' } }, + { input_id: 'Q08', label: { nl: '', en: 'Deep squatting' } }, { input_id: 'Q09', - input_label: { nl: '', en: 'Getting into and out of a bath tub' }, + label: { nl: '', en: 'Getting into and out of a bath tub' }, }, - { input_id: 'Q10', input_label: { nl: '', en: 'Walking initially' } }, + { input_id: 'Q10', label: { nl: '', en: 'Walking initially' } }, { input_id: 'Q11', - input_label: { nl: '', en: 'Walking approximately 10 minutes' }, + label: { nl: '', en: 'Walking approximately 10 minutes' }, }, { input_id: 'Q12', - input_label: { nl: '', en: 'Walking 15 minutes or greater' }, + label: { nl: '', en: 'Walking 15 minutes or greater' }, }, { input_id: 'Q13', - input_label: { nl: '', en: 'Twisting/pivoting on involved leg' }, + label: { nl: '', en: 'Twisting/pivoting on involved leg' }, }, - { input_id: 'Q14', input_label: { nl: '', en: 'Rolling over in bed' } }, + { input_id: 'Q14', label: { nl: '', en: 'Rolling over in bed' } }, { input_id: 'Q15', - input_label: { + label: { nl: '', en: 'Light to moderate work (standing, walking)', }, }, { input_id: 'Q16', - input_label: { + label: { nl: '', en: 'Heavy work (push/pulling, climbing, carrying)', }, }, { input_id: 'Q17', - input_label: { nl: '', en: 'Recreational activities' }, + label: { nl: '', en: 'Recreational activities' }, }, ].map(add_allowed_answers), }, @@ -136,39 +136,39 @@ export const HOS_SUBSCALES: Array = [ input_ids_in_subscale: [ { input_id: 'SQ01', - input_label: { + label: { nl: '', en: 'Because of your hip how much difficulty do you have with: Running one mile', }, }, - { input_id: 'SQ02', input_label: { nl: '', en: 'Jumping' } }, + { input_id: 'SQ02', label: { nl: '', en: 'Jumping' } }, { input_id: 'SQ03', - input_label: { nl: '', en: 'Swinging objects like a golf club' }, + label: { nl: '', en: 'Swinging objects like a golf club' }, }, - { input_id: 'SQ04', input_label: { nl: '', en: 'Landing' } }, + { input_id: 'SQ04', label: { nl: '', en: 'Landing' } }, { input_id: 'SQ05', - input_label: { nl: '', en: 'Starting and stopping quickly' }, + label: { nl: '', en: 'Starting and stopping quickly' }, }, { input_id: 'SQ06', - input_label: { nl: '', en: 'Cutting/lateral movements' }, + label: { nl: '', en: 'Cutting/lateral movements' }, }, { input_id: 'SQ07', - input_label: { nl: '', en: 'Low impact activities like fast walking' }, + label: { nl: '', en: 'Low impact activities like fast walking' }, }, { input_id: 'SQ08', - input_label: { + label: { nl: '', en: 'Ability to perform activity with your normal technique', }, }, { input_id: 'SQ09', - input_label: { + label: { nl: '', en: 'Ability to participate in your desired sport as long as you would like', }, diff --git a/todo/hrqol/hrqol_4/definition/hrqol_4_inputs.ts b/todo/hrqol/hrqol_4/definition/hrqol_4_inputs.ts index 4133ccc..9776be8 100644 --- a/todo/hrqol/hrqol_4/definition/hrqol_4_inputs.ts +++ b/todo/hrqol/hrqol_4/definition/hrqol_4_inputs.ts @@ -3,10 +3,10 @@ import type { InputType } from '../../../../src/types/calculations.types' export const HRQOL_4_INPUTS: Array = [ { input_id: 'HRQOL_4_Q01', - input_label: { + label: { en: 'Would you say that in general your health is', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 1, label: { en: 'Excellent' } }, @@ -25,10 +25,10 @@ export const HRQOL_4_INPUTS: Array = [ }, { input_id: 'HRQOL_4_Q02', - input_label: { + label: { en: 'Now thinking about your physical health, which includes physical illness and injury, for how many days during the past 30 days was your physical health not good?', }, - input_type: { + type: { type: 'number', range: { min: { value: 0 }, @@ -38,10 +38,10 @@ export const HRQOL_4_INPUTS: Array = [ }, { input_id: 'HRQOL_4_Q03', - input_label: { + label: { en: 'Now thinking about your mental health, which includes stress, depression, and problems with emotions, for how many days during the past 30 days was your mental health not good?', }, - input_type: { + type: { type: 'number', range: { min: { value: 0 }, @@ -51,10 +51,10 @@ export const HRQOL_4_INPUTS: Array = [ }, { input_id: 'HRQOL_4_Q04', - input_label: { + label: { en: 'During the past 30 days, for about how many days did poor physical or mental health keep you from doing your usual activities, such as self-care, work, or recreation?', }, - input_type: { + type: { type: 'number', range: { min: { value: 0 }, diff --git a/todo/ias/definition/ias_scales.ts b/todo/ias/definition/ias_scales.ts index 919bd86..14cc418 100644 --- a/todo/ias/definition/ias_scales.ts +++ b/todo/ias/definition/ias_scales.ts @@ -11,7 +11,7 @@ const ALLOWED_ANSWERS = [ //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }) export const IAS_SCALES: Array = [ @@ -20,74 +20,74 @@ export const IAS_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'IAS_Q02', - input_label: { + label: { nl: 'Bent u bezorgd dat u in de toekomst een ernstige ziekte zou kunnen krijgen?', en: '', }, }, { input_id: 'IAS_Q03', - input_label: { + label: { nl: 'Maakt de gedachte aan een ernstige ziekte u bang?', en: '', }, }, { input_id: 'IAS_Q04', - input_label: { + label: { nl: 'Als u pijn heeft, maakt u zich dan zorgen dat het mogelijk door een ernstige ziekte wordt veroorzaakt?', en: '', }, }, { input_id: 'IAS_Q06', - input_label: { + label: { nl: 'Als pijn een week of langer aanhoudt, gelooft u dan dat u een ernstige ziekte heeft?', en: '', }, }, { input_id: 'IAS_Q13', - input_label: { + label: { nl: 'Bent u bang voor nieuws dat u aan de dood herinnert (zoals begrafenissen, rouw-advertenties)?', en: '', }, }, { input_id: 'IAS_Q14', - input_label: { nl: 'Maakt de gedachte aan de dood u bang?', en: '' }, + label: { nl: 'Maakt de gedachte aan de dood u bang?', en: '' }, }, { input_id: 'IAS_Q15', - input_label: { + label: { nl: 'Bent u bang dat u spoedig zou kunnen overlijden?', en: '', }, }, { input_id: 'IAS_Q16', - input_label: { + label: { nl: 'Bent u bang dat u kanker zou kunnen hebben?', en: '', }, }, { input_id: 'IAS_Q17', - input_label: { + label: { nl: 'Bent u bang dat u een ziekte aan uw hart zou kunnen hebben?', en: '', }, }, { input_id: 'IAS_Q19', - input_label: { + label: { nl: 'Als u leest of hoort over een ziekte, krijgt u dan verschijnselen die vergelijkbaar zijn met die van de ziekte?', en: '', }, }, { input_id: 'IAS_Q21', - input_label: { + label: { nl: 'Als u iets in uw lichaam voelt, maakt u zich daar dan zorgen over?', en: '', }, @@ -99,8 +99,8 @@ export const IAS_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'IAS_Q23', - input_label: { nl: 'Hoe vaak gaat u naar een arts?', en: '' }, - input_type: { + label: { nl: 'Hoe vaak gaat u naar een arts?', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Bijna nooit' } }, @@ -113,11 +113,11 @@ export const IAS_SCALES: Array = [ }, { input_id: 'IAS_Q24', - input_label: { + label: { nl: 'Bij hoeveel verschillende artsen, homeopaten of andere genezers bent u in het afgelopen jaar geweest?', en: '', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Geen' } }, @@ -130,11 +130,11 @@ export const IAS_SCALES: Array = [ }, { input_id: 'IAS_Q25', - input_label: { + label: { nl: 'Hoe vaak bent u in het afgelopen jaar behandeld? (Bijvoorbeeld medicijnen, verandering van medicijnen, operatie, enz.)', en: '', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Helemaal niet' } }, @@ -147,33 +147,33 @@ export const IAS_SCALES: Array = [ }, { input_id: 'IAS_Q27', - input_label: { + label: { nl: 'Verhinderen uw lichamelijke klachten u te werken?', en: '', }, - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS, }, }, { input_id: 'IAS_Q28', - input_label: { + label: { nl: 'Verhinderen uw lichamelijk klachten u om u te concentreren op wat u aan het doen bent?', en: '', }, - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS, }, }, { input_id: 'IAS_Q29', - input_label: { + label: { nl: 'Verhinderen uw lichamelijke klachten u om uzelf te vermaken?', en: '', }, - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS, }, diff --git a/todo/ibd_disk_total_score/definition/ibd_disk_inputs.ts b/todo/ibd_disk_total_score/definition/ibd_disk_inputs.ts index ab0b6a1..301adff 100644 --- a/todo/ibd_disk_total_score/definition/ibd_disk_inputs.ts +++ b/todo/ibd_disk_total_score/definition/ibd_disk_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', component: 'slider', range: { @@ -19,7 +19,7 @@ const input_type: NumberInputType = { export const IBD_DISK_INPUTS: Array = [ { input_id: 'abdominal_pain', - input_label: { + label: { nl: 'Tijdens de laatste week had ik omwille van mijn ziekte van Crohn of colitis ulcerosa last van pijn ter hoogte van mijn maag of buik.', en: "In the past week, because of my Crohn's disease or ulcerative colitis I have had aches or pains in my stomach or abdomen.", }, @@ -28,7 +28,7 @@ export const IBD_DISK_INPUTS: Array = [ }, { input_id: 'regulating_defecation', - input_label: { + label: { nl: 'Tijdens de laatste week had ik omwille van mijn ziekte van Crohn of colitis ulcerosa moeilijkheden met het regelen van mijn stoelgang, met inbegrip van het zoeken naar een nabijgelegen toilet en de reiniging nadien.', en: "In the past week, because of my Crohn's disease or ulcerative colitis I have had difficulty coordinating and managing defecation, including choosing and getting to an appropriate place for defecation and cleaning myself afterwards.", }, @@ -37,7 +37,7 @@ export const IBD_DISK_INPUTS: Array = [ }, { input_id: 'interpersonal_interactions', - input_label: { + label: { nl: 'Tijdens de laatste week had ik omwille van mijn ziekte van Crohn of colitis ulcerosa moeilijkheden met persoonlijke relaties/sociale contacten en/of deelname aan publieke activiteiten (interpersoonlijke interacties).', en: "In the past week, because of my Crohn's disease or ulcerative colitis I have had difficulty with personal relationships and/or difficulty participating in the community.", }, @@ -46,7 +46,7 @@ export const IBD_DISK_INPUTS: Array = [ }, { input_id: 'education_and_work', - input_label: { + label: { nl: 'Tijdens de laatste week had ik omwille van mijn ziekte van Crohn of colitis ulcerosa moeilijkheden met school of studeren, en/of moeilijkheden met het werk of huishoudelijke activiteiten (educatie en werk).', en: "In the past week, because of my Crohn's disease or ulcerative colitis I have had difficulty with school or studying activities, and/or difficulty with work or household activities.", }, @@ -55,7 +55,7 @@ export const IBD_DISK_INPUTS: Array = [ }, { input_id: 'sleep', - input_label: { + label: { nl: 'Tijdens de laatste week had ik omwille van mijn ziekte van Crohn of colitis ulcerosa slaapproblemen, zoals moeilijk inslapen, frequent wakker worden ’s nachts of te vroeg wakker worden ’s ochtends.', en: "In the past week, because of my Crohn's disease or ulcerative colitis I have had difficulty sleeping, such as falling asleep, waking up frequently during the night or waking up too early in the morning.", }, @@ -64,7 +64,7 @@ export const IBD_DISK_INPUTS: Array = [ }, { input_id: 'energy', - input_label: { + label: { nl: 'Tijdens de laatste week voelde ik me, omwille van mijn ziekte van Crohn of colitis ulcerosa, niet uitgerust gedurende de dag. Ik voelde mij moe en futloos.', en: "In the past week, because of my Crohn's disease or ulcerative colitis I have not felt rested and refreshed during the day, and have felt tired and without energy.", }, @@ -73,7 +73,7 @@ export const IBD_DISK_INPUTS: Array = [ }, { input_id: 'emotions', - input_label: { + label: { nl: 'Tijdens de laatste week voelde ik me, omwille van mijn ziekte van Crohn of colitis ulcerosa, verdrietig, depressief en/of bezorgd of angstig.', en: "In the past week, because of my Crohn's disease or ulcerative colitis I have felt sad, low or depressed, and/or worried or anxious.", }, @@ -82,7 +82,7 @@ export const IBD_DISK_INPUTS: Array = [ }, { input_id: 'body_image', - input_label: { + label: { nl: 'Tijdens de laatste week had ik omwille van mijn ziekte van Crohn of colitis ulcerosa was ik niet tevreden met mijn uiterlijk of een deel hiervan (lichaamsbeeld).', en: "In the past week, because of my Crohn's disease or ulcerative colitis I have not liked the way my body or body parts look.", }, @@ -91,7 +91,7 @@ export const IBD_DISK_INPUTS: Array = [ }, { input_id: 'sexual_function', - input_label: { + label: { nl: 'Tijdens de laatste week had ik omwille van mijn ziekte van Crohn of colitis ulcerosa problemen met de fysieke of mentale aspecten van seks (sexuele functie).', en: "In the past week, because of my Crohn's disease or ulcerative colitis I have had difficulty with the mental and/or physical aspects of sex.", }, @@ -100,7 +100,7 @@ export const IBD_DISK_INPUTS: Array = [ }, { input_id: 'arthralgia', - input_label: { + label: { nl: 'Tijdens de laatste week had ik omwille van mijn ziekte van Crohn of colitis ulcerosa pijn ter hoogte van mijn gewrichten.', en: "In the past week, because of my Crohn's disease or ulcerative colitis I have had pains in the joints of my body.", }, diff --git a/todo/iief5/definition/iief5_inputs.ts b/todo/iief5/definition/iief5_inputs.ts index 8368279..a2fc1ce 100644 --- a/todo/iief5/definition/iief5_inputs.ts +++ b/todo/iief5/definition/iief5_inputs.ts @@ -3,12 +3,12 @@ import type { InputType } from '../../../src/types/calculations.types' export const IIEF5_INPUTS: Array = [ { input_id: 'IIEF5_Q01', - input_label: { + label: { en: 'Over the past 6 months, how do you rate your confidence that you could get and keep an erection?', nl: 'Hoe sterk zou u het vertrouwen noemen dat u had, de afgelopen 4 weken, om een erectie te kunnen krijgen en behouden?', fr: 'Au cours des six derniers mois: A quel point étiez-vous sûr de pouvoir avoir une érection et de la maintenir ?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -40,12 +40,12 @@ export const IIEF5_INPUTS: Array = [ }, { input_id: 'IIEF5_Q02', - input_label: { + label: { en: 'Over the past 6 months, when you had erections with sexual stimulation, how often were your erections hard enough for penetration?', nl: 'Hoe vaak is het de afgelopen 4 weken voorgekomen dat, terwijl u een erectie had door seksuele stimulatie, uw penis stijf genoeg was om te penetreren (binnen te gaan)?', fr: 'Au cours des six derniers mois: Lorsque vous avez eu des érections à la suite de stimulations sexuelles, avec quelle fréquence votre pénis a-t-il été suffisamment rigide (dur) pour permettre la pénétration ?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -101,12 +101,12 @@ export const IIEF5_INPUTS: Array = [ }, { input_id: 'IIEF5_Q03', - input_label: { + label: { en: 'Over the past 6 months, during sexual intercourse, how often were you able to maintain your erection after you had penetrated (entered) your partner?', nl: 'Hoe vaak kon u de afgelopen 4 weken tijdens de geslachtsgemeenschap uw erectie behouden, nadat u bij uw partner was gepenetreerd (binnengegaan)?', fr: "Au cours des six derniers mois: Lorsque vous avez essayé d'avoir des rapports sexuels, avec quelle fréquence avez-vous pu rester en érection après avoir pénétré votre partenaire ?", }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -162,12 +162,12 @@ export const IIEF5_INPUTS: Array = [ }, { input_id: 'IIEF5_Q04', - input_label: { + label: { en: 'Over the past 6 months, during sexual intercourse, how difficult was it to maintain your erection to completion of intercourse?', nl: 'Hoe moeilijk was het de afgelopen 4 weken om tijdens de geslachtsgemeenschap uw erectie te behouden tot de geslachtsdaad voltooid was?', fr: "Au cours des six derniers mois: Pendant vos rapports sexuels, à quel point vous a-t-il été difficile de rester en érection jusqu'à la fin de ces rapports ?", }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -223,12 +223,12 @@ export const IIEF5_INPUTS: Array = [ }, { input_id: 'IIEF5_Q05', - input_label: { + label: { en: 'Over the past 6 months, when you attempted sexual intercourse, how often was it satisfactory for you?', nl: 'Hoe vaak was het de afgelopen 4 weken bevredigend voor u wanneer u probeerde geslachtsgemeenschap te hebben?', fr: "Au cours des six derniers mois: Lorsque vous avez essayé d'avoir des rapports sexuels, avec quelle fréquence en avez-vous été satisfait ?", }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/ikdc/definition/ikdc_inputs.ts b/todo/ikdc/definition/ikdc_inputs.ts index 72f196b..89a8583 100644 --- a/todo/ikdc/definition/ikdc_inputs.ts +++ b/todo/ikdc/definition/ikdc_inputs.ts @@ -3,11 +3,11 @@ import type { InputType } from '../../../src/types/calculations.types' export const IKDC_INPUTS: Array = [ { input_id: 'IKDC_Q01', - input_label: { + label: { en: 'What is the highest level of activity that you can perform without significant knee pain?', nl: 'Wat is het hoogste niveau van activiteiten dat u kunt bereiken zonder aanzienlijke pijn in uw knie?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -50,12 +50,12 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q02', - input_label: { + label: { en: 'During the past 4 weeks, or since injury, how often have you had pain?', nl: 'Hoe vaak hebt u in de laatste 4 weken, of sinds uw ongeval, pijn gehad?', }, inverse: true, // This item is reverse scored - input_type: { + type: { type: 'number', range: { min: { @@ -71,12 +71,12 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q03', - input_label: { + label: { en: 'If you have pain, how severe is it?', nl: 'Als u pijn heeft, hoe erg is deze dan?', }, inverse: true, // This item is reverse scored - input_type: { + type: { type: 'number', range: { min: { @@ -92,11 +92,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q04', - input_label: { + label: { en: 'During the past 4 weeks, or since your injury, how stiff or swollen was your knee?', nl: 'Hoe stijf of gezwollen was uw knie in de laatste 4 weken, of sinds uw ongeval?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -139,11 +139,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q05', - input_label: { + label: { en: 'What is the highest level of activity you can perform without significant swelling in your knee?', nl: 'Wat is het hoogste niveau van activiteiten dat u kunt bereiken zonder een aanzienlijke zwelling van uw knie?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -186,11 +186,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q06', - input_label: { + label: { en: 'During the past 4 weeks, or since your injury, did your knee lock or catch?', nl: 'Heeft u in de laatste 4 weken, of sinds uw ongeval, last gehad van slot en/of zwikklachten?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -212,11 +212,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q07', - input_label: { + label: { en: 'What is the highest level of activity that you can perform without significant giving way in your knee?', nl: 'Wat is het hoogste niveau van activiteiten dat u kunt bereiken zonder dat u door uw knie zwikt? ', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -259,11 +259,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q08', - input_label: { + label: { en: 'What is the highest level of activity you can participate in on a regular basis?', nl: 'Wat is het hoogste niveau van activiteiten waaraan u regelmatig kunt deelnemen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -306,11 +306,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q09A', - input_label: { + label: { en: 'How does your knee affect your ability to go up stairs', nl: 'Hoe moeilijk is de volgende activiteit voor u, door uw knieklachten: trap oplopen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -353,11 +353,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q09B', - input_label: { + label: { en: 'How does your knee affect your ability to go down stairs', nl: 'Hoe moeilijk is de volgende activiteit voor u, door uw knieklachten: trap aflopen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -400,11 +400,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q09C', - input_label: { + label: { en: 'How does your knee affect your ability to kneel on the front of your knee', nl: 'Hoe moeilijk is de volgende activiteit voor u, door uw knieklachten: op uw knieën zitten?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -447,11 +447,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q09D', - input_label: { + label: { en: 'How does your knee affect your ability to squat', nl: 'Hoe moeilijk is de volgende activiteit voor u, door uw knieklachten: hurken?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -494,11 +494,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q09E', - input_label: { + label: { en: 'How does your knee affect your ability to sit with your knee bent', nl: 'Hoe moeilijk is de volgende activiteit voor u, door uw knieklachten: zitten (met gebogen knieën)?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -541,11 +541,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q09F', - input_label: { + label: { en: 'How does your knee affect your ability to rise from a chair', nl: 'Hoe moeilijk is de volgende activiteit voor u, door uw knieklachten: opstaan uit een stoel?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -588,11 +588,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q09G', - input_label: { + label: { en: 'How does your knee affect your ability to run straight ahead', nl: 'Hoe moeilijk is de volgende activiteit voor u, door uw knieklachten: rechtdoor hardlopen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -635,11 +635,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q09H', - input_label: { + label: { en: 'How does your knee affect your ability to jump and land on involved leg', nl: 'Hoe moeilijk is de volgende activiteit voor u, door uw knieklachten: springen en neerkomen op het aangedane been?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -682,11 +682,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q09I', - input_label: { + label: { en: 'How does your knee affect your ability to stop and start quickly', nl: 'Hoe moeilijk is de volgende activiteit voor u, door uw knieklachten: snel starten en stoppen bij lopen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -729,11 +729,11 @@ export const IKDC_INPUTS: Array = [ }, { input_id: 'IKDC_Q10_CURRENT_KNEE_FUNCTION', - input_label: { + label: { en: 'How would you rate the CURRENT function of your knee on a scale of 0 to 10 with 10 being normal, excellent function and 0 being the inability to perform any of your usual daily activities which may include sports?', nl: 'Beoordeel de huidige functie van uw knie op een schaal van 0 tot 10, als 10 normaal/perfecte functie betekent, en 0 betekent dat uw kniefunctie ervoor zorgt dat u geen van uw normale activiteiten kunt uitvoeren (inclusief sport). ', }, - input_type: { + type: { type: 'number', range: { min: { diff --git a/todo/ipss/definition/ipss_inputs.ts b/todo/ipss/definition/ipss_inputs.ts index b735bcc..990154b 100644 --- a/todo/ipss/definition/ipss_inputs.ts +++ b/todo/ipss/definition/ipss_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Nooit', en: 'Not at all' } }, @@ -37,7 +37,7 @@ const input_type: NumberInputType = { export const IPSS_INPUTS: Array = [ { input_id: 'IPSS_Q01', - input_label: { + label: { nl: 'Hoe vaak in de afgelopen maand had u het gevoel dat uw blaas na het plassen nog niet helemaal leeg was?', en: 'Over the past month, how often have you had a sensation of not emptying your bladder completely after you finish urinating?', }, @@ -46,7 +46,7 @@ export const IPSS_INPUTS: Array = [ }, { input_id: 'IPSS_Q02', - input_label: { + label: { nl: 'Hoe vaak in de afgelopen maand moest u binnen twee uur na het plassen opnieuw plassen?', en: 'Over the past month, how often have you had to urinate again less than two hours after you finished urinating?', }, @@ -55,7 +55,7 @@ export const IPSS_INPUTS: Array = [ }, { input_id: 'IPSS_Q03', - input_label: { + label: { nl: 'Hoe vaak in de afgelopen maand gebeurde het tijdens het plassen dat de straal enige keren stopte en dan weer begon?', en: 'Over the past month, how often have you found you stopped and started again several times when you urinated?', }, @@ -64,7 +64,7 @@ export const IPSS_INPUTS: Array = [ }, { input_id: 'IPSS_Q04', - input_label: { + label: { nl: 'Hoe vaak in de afgelopen maand had u moeite om het plassen uit te stellen?', en: 'Over the last month, how difficult have you found it to postpone urination?', }, @@ -73,7 +73,7 @@ export const IPSS_INPUTS: Array = [ }, { input_id: 'IPSS_Q05', - input_label: { + label: { nl: 'Hoe vaak in de afgelopen maand had u een slappe straal bij het plassen?', en: 'Over the past month, how often have you had a weak urinary stream?', }, @@ -82,7 +82,7 @@ export const IPSS_INPUTS: Array = [ }, { input_id: 'IPSS_Q06', - input_label: { + label: { nl: 'Hoe vaak in de afgelopen maand moest u persen voordat de urinestraal op gang kwam?', en: 'Over the past month, how often have you had to push or strain to begin urination?', }, @@ -91,11 +91,11 @@ export const IPSS_INPUTS: Array = [ }, { input_id: 'IPSS_Q07', - input_label: { + label: { nl: 'Hoe vaak in de afgelopen maand moest u gemiddeld per nacht het bed uit om te plassen?', en: 'Over the past month, many times did you most typically get up to urinate from the time you went to bed until the time you got up in the morning?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { nl: '0 keer', en: 'None' } }, diff --git a/todo/isi/definition/isi_inputs.ts b/todo/isi/definition/isi_inputs.ts index 3b6b708..b63d78d 100644 --- a/todo/isi/definition/isi_inputs.ts +++ b/todo/isi/definition/isi_inputs.ts @@ -3,10 +3,10 @@ import type { InputType } from '../../../src/types/calculations.types' export const ISI_INPUTS: Array = [ { input_id: 'ISI_Q01', - input_label: { + label: { en: 'Difficulty falling asleep', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -42,10 +42,10 @@ export const ISI_INPUTS: Array = [ }, { input_id: 'ISI_Q02', - input_label: { + label: { en: 'Difficulty staying asleep', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -81,10 +81,10 @@ export const ISI_INPUTS: Array = [ }, { input_id: 'ISI_Q03', - input_label: { + label: { en: 'Problems waking up too early', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -120,10 +120,10 @@ export const ISI_INPUTS: Array = [ }, { input_id: 'ISI_Q04', - input_label: { + label: { en: 'How SATISFIED/DISSATISFIED are you with your CURRENT sleep pattern?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -159,10 +159,10 @@ export const ISI_INPUTS: Array = [ }, { input_id: 'ISI_Q05', - input_label: { + label: { en: 'How NOTICEABLE to others do you think your sleep problem is in terms of impairing the quality of your life?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -198,10 +198,10 @@ export const ISI_INPUTS: Array = [ }, { input_id: 'ISI_Q06', - input_label: { + label: { en: 'How WORRIED/DISTRESSED are you about your current sleep problem?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -237,10 +237,10 @@ export const ISI_INPUTS: Array = [ }, { input_id: 'ISI_Q07', - input_label: { + label: { en: 'To what extent do you consider your sleep problem to INTERFERE with your daily functioning (e.g. daytime fatigue, mood, ability to function at work/daily chores, concentration, memory, mood, etc.) CURRENTLY?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/k_bild/definition/k_bild_inputs.ts b/todo/k_bild/definition/k_bild_inputs.ts index f9f27f7..faab3ab 100644 --- a/todo/k_bild/definition/k_bild_inputs.ts +++ b/todo/k_bild/definition/k_bild_inputs.ts @@ -3,10 +3,10 @@ import type { InputType } from '../../../src/types/calculations.types' export const KBILD_INPUTS: Array = [ { input_id: 'K_BILD_Q01', - input_label: { + label: { en: 'In the last 2 weeks, I have been breathless climbing stairs or walking up an incline or hill.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -54,10 +54,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q02', - input_label: { + label: { en: 'In the last 2 weeks, because of my lung condition, my chest has felt tight.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -105,10 +105,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q03', - input_label: { + label: { en: 'In the last 2 weeks have you worried about the seriousness of your lung complaint?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -156,10 +156,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q04', - input_label: { + label: { en: 'In the last 2 weeks have you avoided doing things that make you breathless?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -207,10 +207,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q05', - input_label: { + label: { en: 'In the last 2 weeks have you felt in control of your lung condition?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -258,10 +258,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q06', - input_label: { + label: { en: 'In the last 2 weeks, has your lung complaint made you feel fed up or down in the dumps?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -309,10 +309,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q07', - input_label: { + label: { en: 'In the last 2 weeks, I have felt the urge to breathe, also known as ‘air hunger’.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -360,10 +360,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q08', - input_label: { + label: { en: 'In the last 2 weeks, my lung condition has made me feel anxious.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -411,10 +411,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q09', - input_label: { + label: { en: 'In the last 2 weeks, how often have you experienced ‘wheeze’ or whistling sounds from your chest?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -462,10 +462,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q10', - input_label: { + label: { en: 'In the last 2 weeks, how much of the time have you felt your lung disease is getting worse?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -513,10 +513,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q11', - input_label: { + label: { en: 'In the last 2 weeks has your lung condition interfered with your job or other daily tasks?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -564,10 +564,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q12', - input_label: { + label: { en: 'In the last 2 weeks have you expected your lung complaint to get worse?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -615,10 +615,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q13', - input_label: { + label: { en: 'In the last 2 weeks have you expected your lung complaint to get worse?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -666,10 +666,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q14', - input_label: { + label: { en: 'In the last 2 weeks, has your lung condition made you think more about the end of your life?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -717,10 +717,10 @@ export const KBILD_INPUTS: Array = [ }, { input_id: 'K_BILD_Q15', - input_label: { + label: { en: 'Are you financially worse off because of your lung condition?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/koos_ps/definition/koos_ps_inputs.ts b/todo/koos_ps/definition/koos_ps_inputs.ts index 582a8a2..b251341 100644 --- a/todo/koos_ps/definition/koos_ps_inputs.ts +++ b/todo/koos_ps/definition/koos_ps_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../../types/calculations.types' import { NumberInputType } from '../../../../types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0, label: { nl: 'Geen', en: 'None', fr: 'Jamais' } }, @@ -15,7 +15,7 @@ const input_type: NumberInputType = { export const KOOS_PS_INPUTS: Array = [ { input_id: '1_rise_from_bed', - input_label: { + label: { nl: 'Opstaan vanuit bed', en: 'Rising from bed', fr: 'Se lever du lit', @@ -25,7 +25,7 @@ export const KOOS_PS_INPUTS: Array = [ }, { input_id: '2_socks', - input_label: { + label: { nl: 'Sokken / kousen aantrekken', en: 'Putting on socks/stockings', fr: 'Mettre des chaussettes/bas', @@ -35,7 +35,7 @@ export const KOOS_PS_INPUTS: Array = [ }, { input_id: '3_rise_from_chair', - input_label: { + label: { nl: 'Opstaan vanuit een stoel', en: 'Rising from sitting', fr: 'Se lever d`une chaise', @@ -45,7 +45,7 @@ export const KOOS_PS_INPUTS: Array = [ }, { input_id: '4_pickup_from_floor', - input_label: { + label: { nl: 'Bukken naar de grond/iets oppakken van de grond', en: 'Bending to floor', fr: 'Ramasser quelque chose du sol', @@ -55,7 +55,7 @@ export const KOOS_PS_INPUTS: Array = [ }, { input_id: '5_turn_on_knee', - input_label: { + label: { nl: 'Draaien op een belaste knie', en: 'Twisting/pivoting on your injured knee', fr: 'Tourner sur un genou blessé', @@ -65,13 +65,13 @@ export const KOOS_PS_INPUTS: Array = [ }, { input_id: '6_kneel', - input_label: { nl: 'Knielen', en: 'Kneeling', fr: 's`agenouiller' }, + label: { nl: 'Knielen', en: 'Kneeling', fr: 's`agenouiller' }, input_type, required: true, }, { input_id: '7_staying_squat', - input_label: { + label: { nl: 'Op uw hurken zitten', en: 'Squatting', fr: 'S`accroupir', diff --git a/todo/korq/definition/korq_inputs.ts b/todo/korq/definition/korq_inputs.ts index 80ab3ec..69d71fd 100644 --- a/todo/korq/definition/korq_inputs.ts +++ b/todo/korq/definition/korq_inputs.ts @@ -7,7 +7,7 @@ export const TWO = 2 export const THREE = 3 export const FOUR = 4 -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -54,7 +54,7 @@ const input_type: NumberInputType = { export const KORQ_INPUTS: Array = [ { input_id: 'Q01_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with using a computer screen?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec l`utilisation d`un écran d`ordinateur?', }, @@ -62,7 +62,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q02_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with driving during the day?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec la conduite pendant la journée?', }, @@ -70,7 +70,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q03_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with driving during the night?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec la conduite pendant la nuit?', }, @@ -78,7 +78,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q04_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with reading street signs?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec la lecture des panneaux de rue?', }, @@ -86,7 +86,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q05_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with watching TV?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec le visionnage de la télévision?', }, @@ -94,7 +94,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q06_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with walking up/down steps?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec la montée/descente des escaliers?', }, @@ -102,7 +102,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q07_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with avoiding objects in your path?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec l`évitement d`obstacles sur votre chemin?', }, @@ -110,7 +110,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q08_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with your ability to do your job?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec votre capacité à faire votre travail?', }, @@ -118,7 +118,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q09_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with seeing in the distance?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec la vision à distance?', }, @@ -126,7 +126,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q10_KORQ', - input_label: { + label: { en: 'How much do on coming lights interfere with your ability to see, to do your tasks?', fr: 'Dans quelle mesure les lumières venant en sens inverse interfèrent-elles avec votre capacité à voir et à effectuer vos tâches?', }, @@ -134,7 +134,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q11_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with doing fine tasks at near?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec l`accomplissement de tâches fines de près?', }, @@ -142,7 +142,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q12_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with doing your hobby?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec la pratique de votre passe-temps?', }, @@ -150,7 +150,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q13_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with recognizing faces?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec la reconnaissance des visages?', }, @@ -158,7 +158,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q14_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with seeing in poor light?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec la vision en conditions de faible luminosité?', }, @@ -166,7 +166,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q15_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with doing household tasks? (e.g. cleaning, ironing, washing, washing up)', fr: 'Dans quelle mesure votre vision interfère-t-elle avec l`accomplissement de tâches ménagères? (par ex. nettoyage, repassage, lavage, vaisselle)', }, @@ -174,7 +174,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q16_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with judging depth?', fr: 'Dans quelle mesure votre vision interfère-t-elle avec l`évaluation des distances?', }, @@ -182,7 +182,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q17_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with seeing small objects in the distance? (e.g. golf ball, darts)', fr: 'Dans quelle mesure votre vision interfère-t-elle avec la vision d`objets petits à distance? (par ex. balle de golf, fléchettes)', }, @@ -190,7 +190,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q18_KORQ', - input_label: { + label: { en: 'How much does your vision interfere with sighting tasks? (e.g. camera, microscope, binoculars etc.)', fr: 'Dans quelle mesure votre vision interfère-t-elle avec les tâches de visée? (par ex. appareil photo, microscope, jumelles, etc.)', }, @@ -198,7 +198,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q19_KORQ', - input_label: { + label: { en: 'How much are you troubled by distorted vision?', fr: 'Dans quelle mesure êtes-vous gêné par une vision déformée?', }, @@ -206,7 +206,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q20_KORQ', - input_label: { + label: { en: 'How much are you troubled by glare and wearing sunglasses all the time?', fr: 'Dans quelle mesure êtes-vous gêné par l`éblouissement et le port de lunettes de soleil tout le temps?', }, @@ -214,7 +214,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q21_KORQ', - input_label: { + label: { en: 'How much does a bright sunny day interfere with your ability to see, to do your tasks?', fr: 'Dans quelle mesure une journée ensoleillée interfère-t-elle avec votre capacité à voir et à effectuer vos tâches?', }, @@ -222,7 +222,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q22_KORQ', - input_label: { + label: { en: 'How much are you troubled by wearing rigid gas permeable contact lenses?', fr: 'Dans quelle mesure êtes-vous gêné par le port de lentilles de contact rigides perméables aux gaz?', }, @@ -230,7 +230,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q23_KORQ', - input_label: { + label: { en: 'How much are you troubled by headaches when wearing your glasses/contact lenses?', fr: 'Dans quelle mesure êtes-vous gêné par des maux de tête lorsque vous portez vos lunettes/lentilles de contact?', }, @@ -238,7 +238,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q24_KORQ', - input_label: { + label: { en: 'How much are you troubled by dry eyes?', fr: 'Dans quelle mesure êtes-vous gêné par les yeux secs?', }, @@ -246,7 +246,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q25_KORQ', - input_label: { + label: { en: 'With respect to yours eyes and vision: How much are you troubled by windy days?', fr: 'En ce qui concerne vos yeux et votre vision: Dans quelle mesure êtes-vous gêné par les journées venteuses?', }, @@ -254,7 +254,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q26_KORQ', - input_label: { + label: { en: 'With respect to yours eyes and vision: How much are you troubled when you are tired?', fr: 'En ce qui concerne vos yeux et votre vision: Dans quelle mesure êtes-vous gêné lorsque vous êtes fatigué?', }, @@ -262,7 +262,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q27_KORQ', - input_label: { + label: { en: 'With respect to yours eyes and vision: How much are you troubled by dry days?', fr: 'En ce qui concerne vos yeux et votre vision: Dans quelle mesure êtes-vous gêné par les journées sèches?', }, @@ -270,7 +270,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q28_KORQ', - input_label: { + label: { en: 'With respect to yours eyes and vision: How much are you troubled by dusty days?', fr: 'En ce qui concerne vos yeux et votre vision: Dans quelle mesure êtes-vous gêné par les journées poussiéreuses?', }, @@ -278,7 +278,7 @@ export const KORQ_INPUTS: Array = [ }, { input_id: 'Q29_KORQ', - input_label: { + label: { en: 'With respect to yours eyes and vision: How much are you troubled by smoky environments?', fr: 'En ce qui concerne vos yeux et votre vision: Dans quelle mesure êtes-vous gêné par les environnements enfumés?', }, diff --git a/todo/math/divide/definition/divide_inputs.ts b/todo/math/divide/definition/divide_inputs.ts index 6c803a2..bbd152d 100644 --- a/todo/math/divide/definition/divide_inputs.ts +++ b/todo/math/divide/definition/divide_inputs.ts @@ -3,19 +3,19 @@ import type { InputType } from '../../../../src/types/calculations.types' export const DIVIDE_INPUTS: Array = [ { input_id: 'DIVIDEND', - input_label: { + label: { en: 'Dividend', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'DIVISOR', - input_label: { + label: { en: 'Divisor', }, - input_type: { + type: { type: 'number', }, }, diff --git a/todo/math/multiply/definition/multiply_inputs.ts b/todo/math/multiply/definition/multiply_inputs.ts index cc46b2f..8b6eab2 100644 --- a/todo/math/multiply/definition/multiply_inputs.ts +++ b/todo/math/multiply/definition/multiply_inputs.ts @@ -3,271 +3,271 @@ import type { InputType } from '../../../../src/types/calculations.types' export const MULTIPLY_INPUTS: Array = [ { input_id: 'FACTOR_1', - input_label: { + label: { en: 'Factor 1', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_2', - input_label: { + label: { en: 'Factor 2', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_3', - input_label: { + label: { en: 'Factor 3', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_4', - input_label: { + label: { en: 'Factor 4', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_5', - input_label: { + label: { en: 'Factor 5', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_6', - input_label: { + label: { en: 'Factor 6', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_7', - input_label: { + label: { en: 'Factor 7', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_8', - input_label: { + label: { en: 'Factor 8', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_9', - input_label: { + label: { en: 'Factor 9', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_10', - input_label: { + label: { en: 'Factor 10', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_11', - input_label: { + label: { en: 'Factor 11', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_12', - input_label: { + label: { en: 'Factor 12', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_13', - input_label: { + label: { en: 'Factor 13', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_14', - input_label: { + label: { en: 'Factor 14', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_15', - input_label: { + label: { en: 'Factor 15', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_16', - input_label: { + label: { en: 'Factor 16', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_17', - input_label: { + label: { en: 'Factor 17', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_18', - input_label: { + label: { en: 'Factor 18', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_19', - input_label: { + label: { en: 'Factor 19', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_20', - input_label: { + label: { en: 'Factor 20', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_21', - input_label: { + label: { en: 'Factor 21', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_22', - input_label: { + label: { en: 'Factor 22', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_23', - input_label: { + label: { en: 'Factor 23', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_24', - input_label: { + label: { en: 'Factor 24', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_25', - input_label: { + label: { en: 'Factor 25', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_26', - input_label: { + label: { en: 'Factor 26', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_27', - input_label: { + label: { en: 'Factor 27', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_28', - input_label: { + label: { en: 'Factor 28', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_29', - input_label: { + label: { en: 'Factor 29', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'FACTOR_30', - input_label: { + label: { en: 'Factor 30', }, - input_type: { + type: { type: 'number', }, }, diff --git a/todo/math/subtract/definition/subtract_inputs.ts b/todo/math/subtract/definition/subtract_inputs.ts index 36e50bb..a2bfe9d 100644 --- a/todo/math/subtract/definition/subtract_inputs.ts +++ b/todo/math/subtract/definition/subtract_inputs.ts @@ -3,19 +3,19 @@ import type { InputType } from '../../../../src/types/calculations.types' export const SUBTRACT_INPUTS: Array = [ { input_id: 'MINUEND', - input_label: { + label: { en: 'Minuend', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'SUBTRAHEND', - input_label: { + label: { en: 'Subtrahend', }, - input_type: { + type: { type: 'number', }, }, diff --git a/todo/math/sum/definition/sum_inputs.ts b/todo/math/sum/definition/sum_inputs.ts index f6e278f..0565c8a 100644 --- a/todo/math/sum/definition/sum_inputs.ts +++ b/todo/math/sum/definition/sum_inputs.ts @@ -3,271 +3,271 @@ import type { InputType } from '../../../../src/types/calculations.types' export const SUM_INPUTS: Array = [ { input_id: 'ADDEND_1', - input_label: { + label: { en: 'Addend 1', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_2', - input_label: { + label: { en: 'Addend 2', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_3', - input_label: { + label: { en: 'Addend 3', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_4', - input_label: { + label: { en: 'Addend 4', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_5', - input_label: { + label: { en: 'Addend 5', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_6', - input_label: { + label: { en: 'Addend 6', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_7', - input_label: { + label: { en: 'Addend 7', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_8', - input_label: { + label: { en: 'Addend 8', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_9', - input_label: { + label: { en: 'Addend 9', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_10', - input_label: { + label: { en: 'Addend 10', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_11', - input_label: { + label: { en: 'Addend 11', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_12', - input_label: { + label: { en: 'Addend 12', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_13', - input_label: { + label: { en: 'Addend 13', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_14', - input_label: { + label: { en: 'Addend 14', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_15', - input_label: { + label: { en: 'Addend 15', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_16', - input_label: { + label: { en: 'Addend 16', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_17', - input_label: { + label: { en: 'Addend 17', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_18', - input_label: { + label: { en: 'Addend 18', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_19', - input_label: { + label: { en: 'Addend 19', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_20', - input_label: { + label: { en: 'Addend 20', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_21', - input_label: { + label: { en: 'Addend 21', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_22', - input_label: { + label: { en: 'Addend 22', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_23', - input_label: { + label: { en: 'Addend 23', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_24', - input_label: { + label: { en: 'Addend 24', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_25', - input_label: { + label: { en: 'Addend 25', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_26', - input_label: { + label: { en: 'Addend 26', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_27', - input_label: { + label: { en: 'Addend 27', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_28', - input_label: { + label: { en: 'Addend 28', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_29', - input_label: { + label: { en: 'Addend 29', }, - input_type: { + type: { type: 'number', }, }, { input_id: 'ADDEND_30', - input_label: { + label: { en: 'Addend 30', }, - input_type: { + type: { type: 'number', }, }, diff --git a/todo/mds_updrs/definition/mds_updrs_scales.ts b/todo/mds_updrs/definition/mds_updrs_scales.ts index c4ca00d..16b5c38 100644 --- a/todo/mds_updrs/definition/mds_updrs_scales.ts +++ b/todo/mds_updrs/definition/mds_updrs_scales.ts @@ -8,8 +8,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'PART_1_Q1_COGNITIVE_IMPAIRMENT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -26,8 +26,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q2_HALLUCINATIONS_AND_PSYCHOSIS', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -44,8 +44,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q3_DEPRESSED_MOOD', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -62,8 +62,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q4_ANXIOUS_MOOD', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -80,8 +80,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q5_APATHY', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -98,8 +98,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q6_FEATURES_OF_DOPAMINE_DYSREGULATION_SYNDROME', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -116,8 +116,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q7_SLEEP_PROBLEMS', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -134,8 +134,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q8_DAYTIME_SLEEPINESS', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -152,8 +152,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q9_PAIN_AND_OTHER_SENSATIONS', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -170,8 +170,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q10_URINARY_PROBLEMS', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -188,8 +188,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q11_CONSTIPATION_PROBLEMS', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -206,8 +206,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q12_LIGHT_HEADEDNESS_ON_STANDING', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -224,8 +224,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_1_Q13_FATIGUE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -247,8 +247,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'PART_2_Q1_SPEECH', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -265,8 +265,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q2_SALIVA_AND_DROOLING', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -283,8 +283,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q3_CHEWING_AND_SWALLOWING', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -301,8 +301,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q4_EATING_TASKS', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -319,8 +319,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q5_DRESSING', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -337,8 +337,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q6_HYGIENE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -355,8 +355,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q7_HANDWRITING', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -373,8 +373,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q8_DOING_HOBBIES_AND_OTHER_ACTIVITIES', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -391,8 +391,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q9_TURNING_IN_BED', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -409,8 +409,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q10_TREMOR', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -427,8 +427,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q11_GETTING_OUT_OF_BED_CAR_OR_DEEP_CHAIR', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -445,8 +445,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q12_WALKING_AND_BALANCE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -463,8 +463,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_2_Q13_FREEZING', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -486,8 +486,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'PART_3_Q1_SPEECH', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -504,8 +504,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q2_FACIAL_EXPRESSION', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -522,8 +522,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q3_RIGIDITY_NECK', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -540,8 +540,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q3_RIGIDITY_RUE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -558,8 +558,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q3_RIGIDITY_LUE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -576,8 +576,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q3_RIGIDITY_RLE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -594,8 +594,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q3_RIGIDITY_LLE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -612,8 +612,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q4_FINGER_TAPPING_RIGHT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -630,8 +630,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q4_FINGER_TAPPING_LEFT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -648,8 +648,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q5_HAND_MOVEMENTS_RIGHT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -666,8 +666,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q5_HAND_MOVEMENTS_LEFT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -684,8 +684,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q6_PRO_SUPINATION_MOVEMENTS_OF_HANDS_RIGHT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -702,8 +702,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q6_PRO_SUPINATION_MOVEMENTS_OF_HANDS_LEFT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -720,8 +720,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q7_TOE_TAPPING_RIGHT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -738,8 +738,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q7_TOE_TAPPING_LEFT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -756,8 +756,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q8_LEG_AGILITY_RIGHT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -774,8 +774,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q8_LEG_AGILITY_LEFT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -792,8 +792,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q9_ARISING_FROM_CHAIR', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -810,8 +810,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q10_GAIT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -828,8 +828,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q11_FREEZING_OF_GAIT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -846,8 +846,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q12_POSTURAL_STABILITY', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -864,8 +864,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q13_POSTURE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -882,8 +882,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q14_GLOBAL_SPONTANEITY_OF_MOVEMENT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -900,8 +900,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q15_POSTURAL_TREMOR_OF_THE_HANDS_RIGHT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -918,8 +918,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q15_POSTURAL_TREMOR_OF_THE_HANDS_LEFT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -936,8 +936,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q16_KINETIC_TREMOR_OF_THE_HANDS_RIGHT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -954,8 +954,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q16_KINETIC_TREMOR_OF_THE_HANDS_LEFT', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -972,8 +972,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q17_REST_TREMOR_AMPLITUDE_RUE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -990,8 +990,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q17_REST_TREMOR_AMPLITUDE_LUE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -1008,8 +1008,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q17_REST_TREMOR_AMPLITUDE_RLE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -1026,8 +1026,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q17_REST_TREMOR_AMPLITUDE_LLE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -1044,8 +1044,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q17_REST_TREMOR_AMPLITUDE_LIP_JAW', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -1062,8 +1062,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_3_Q18_CONSTANCY_OF_REST_TREMOR', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -1085,8 +1085,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'PART_4_Q1_TIME_SPENT_WITH_DYSKINESIAS', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -1103,8 +1103,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_4_Q2_FUNCTIONAL_IMPACT_OF_DYSKINESIAS', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -1121,8 +1121,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_4_Q3_TIME_SPENT_IN_THE_OFF_STATE', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -1139,8 +1139,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_4_Q4_FUNCTIONAL_IMPACT_OF_FLUCTUATIONS', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -1157,8 +1157,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_4_Q5_COMPLEXITY_OF_MOTOR_FLUCTUATIONS', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, @@ -1175,8 +1175,8 @@ export const MDS_UPDRS_SCALES: DefaultSubscaleType[] = [ }, { input_id: 'PART_4_Q6_PAINFUL_OFF_STATE_DYSTONIA', - input_label: { nl: '', en: '' }, - input_type: { + label: { nl: '', en: '' }, + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Normal: ', nl: 'Normaal: ' } }, diff --git a/todo/mfis/definition/mfis_inputs.ts b/todo/mfis/definition/mfis_inputs.ts index 69d14cc..06c49d6 100644 --- a/todo/mfis/definition/mfis_inputs.ts +++ b/todo/mfis/definition/mfis_inputs.ts @@ -7,7 +7,7 @@ export const SOMETIMES = 2 export const OFTEN = 3 export const ALMOST_ALWAYS = 4 -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -44,147 +44,147 @@ const input_type: NumberInputType = { export const MFIS_INPUTS: Array = [ { input_id: 'Q01', - input_label: { + label: { en: 'I have been less alert.', }, input_type, }, { input_id: 'Q02', - input_label: { + label: { en: 'I have had difficulty paying attention.', }, input_type, }, { input_id: 'Q03', - input_label: { + label: { en: 'I have been unable to think clearly.', }, input_type, }, { input_id: 'Q04', - input_label: { + label: { en: 'I have been clumsy and uncoordinated.', }, input_type, }, { input_id: 'Q05', - input_label: { + label: { en: 'I have been forgetful.', }, input_type, }, { input_id: 'Q06', - input_label: { + label: { en: 'I have had to pace myself in my physical activities.', }, input_type, }, { input_id: 'Q07', - input_label: { + label: { en: 'I have been less motivated to do anything that requires physical effort.', }, input_type, }, { input_id: 'Q08', - input_label: { + label: { en: 'I have been less motivated to participate in social activities.', }, input_type, }, { input_id: 'Q09', - input_label: { + label: { en: 'I have been limited in my ability to do things away from home.', }, input_type, }, { input_id: 'Q10', - input_label: { + label: { en: ' I have had trouble maintaining physical effort for long periods.', }, input_type, }, { input_id: 'Q11', - input_label: { + label: { en: 'I have had difficulty making decisions', }, input_type, }, { input_id: 'Q12', - input_label: { + label: { en: 'I have been less motivated to do anything that requires thinking.', }, input_type, }, { input_id: 'Q13', - input_label: { + label: { en: 'My muscles have felt weak.', }, input_type, }, { input_id: 'Q14', - input_label: { + label: { en: 'I have been physically uncomfortable.', }, input_type, }, { input_id: 'Q15', - input_label: { + label: { en: 'I have had trouble finishing tasks that require thinking.', }, input_type, }, { input_id: 'Q16', - input_label: { + label: { en: 'I have had difficulty organizing things.', }, input_type, }, { input_id: 'Q17', - input_label: { + label: { en: 'I have been less able to complete tasks that require physical effort.', }, input_type, }, { input_id: 'Q18', - input_label: { + label: { en: 'My thinking has been slowed down.', }, input_type, }, { input_id: 'Q19', - input_label: { + label: { en: 'I have had trouble concentrating.', }, input_type, }, { input_id: 'Q20', - input_label: { + label: { en: 'I have limited my physical activities.', }, input_type, }, { input_id: 'Q21', - input_label: { + label: { en: 'I have needed to rest more often or for longer periods of time.', }, input_type, diff --git a/todo/mini_best_test/definition/mini_best_test_sections.ts b/todo/mini_best_test/definition/mini_best_test_sections.ts index 67cbfea..efe36a0 100644 --- a/todo/mini_best_test/definition/mini_best_test_sections.ts +++ b/todo/mini_best_test/definition/mini_best_test_sections.ts @@ -9,8 +9,8 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ input_ids_in_subscale: [ { input_id: 'MINI_BEST_TEST_Q01', - input_label: { nl: 'Van zit naar stand', en: 'Sit to stand' }, - input_type: { + label: { nl: 'Van zit naar stand', en: 'Sit to stand' }, + type: { type: 'number', allowed_answers: [ { @@ -39,8 +39,8 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ }, { input_id: 'MINI_BEST_TEST_Q02', - input_label: { nl: 'Op de tenen staan', en: 'Rise to toes' }, - input_type: { + label: { nl: 'Op de tenen staan', en: 'Rise to toes' }, + type: { type: 'number', allowed_answers: [ { @@ -65,11 +65,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ { input_id: 'MINI_BEST_TEST_Q03_LEFT', bilateral: true, - input_label: { + label: { nl: 'Op één been staan (links)', en: 'Stand on one leg (left)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 2, label: { nl: 'Normaal: 20 sec', en: 'Normal: 20 s' } }, @@ -88,11 +88,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ { input_id: 'MINI_BEST_TEST_Q03_RIGHT', bilateral: true, - input_label: { + label: { nl: 'Op één been staan (rechts)', en: 'Stand on one leg (right)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 2, label: { nl: 'Normaal: 20 sec', en: 'Normal: 20 s' } }, @@ -114,11 +114,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ input_ids_in_subscale: [ { input_id: 'MINI_BEST_TEST_Q04', - input_label: { + label: { nl: 'Corrigerende stappen ter compensatie - vooruit', en: 'Compensatory stepping correction - forward', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -147,11 +147,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ }, { input_id: 'MINI_BEST_TEST_Q05', - input_label: { + label: { nl: 'Corrigerende stappen ter compensatie – achteruit (=Push & Release test)', en: 'Compensatory stepping correction - backward', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -181,11 +181,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ { input_id: 'MINI_BEST_TEST_Q06_LEFT', bilateral: true, - input_label: { + label: { nl: 'Corrigerende stappen ter compensatie naar links', en: 'Compensatory stepping correction - lateral (left)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -215,11 +215,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ { input_id: 'MINI_BEST_TEST_Q06_RIGHT', bilateral: true, - input_label: { + label: { nl: 'Corrigerende stappen ter compensatie naar rechts', en: 'Compensatory stepping correction - lateral (right)', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -253,11 +253,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ input_ids_in_subscale: [ { input_id: 'MINI_BEST_TEST_Q07', - input_label: { + label: { nl: 'Staan (voeten naast elkaar); ogen open, op stevige ondergrond', en: 'Stance (feet together); eyes open, firm surface', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 2, label: { nl: 'Normaal: 30 sec', en: 'Normal: 30 s' } }, @@ -274,11 +274,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ }, { input_id: 'MINI_BEST_TEST_Q08', - input_label: { + label: { nl: 'Staan (voeten naast elkaar); ogen dicht, op schuimrubber', en: 'Stance (feet together); eyes closed, foam surface', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 2, label: { nl: 'Normaal: 30 sec', en: 'Normal: 30 s' } }, @@ -295,11 +295,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ }, { input_id: 'MINI_BEST_TEST_Q09', - input_label: { + label: { nl: 'Helling - ogen dicht', en: 'Incline - Eyes closed', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -330,11 +330,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ input_ids_in_subscale: [ { input_id: 'MINI_BEST_TEST_Q10', - input_label: { + label: { nl: 'Veranderen van loopsnelheid', en: 'Change in gait speed', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -363,11 +363,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ }, { input_id: 'MINI_BEST_TEST_Q11', - input_label: { + label: { nl: 'Lopen met draaien van het hoofd - naar links en rechts', en: 'Walk with head turns - horizontal', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -396,11 +396,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ }, { input_id: 'MINI_BEST_TEST_Q12', - input_label: { + label: { nl: 'Lopen met draai om de as', en: 'Walk with pivot turns', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -429,11 +429,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ }, { input_id: 'MINI_BEST_TEST_Q13', - input_label: { + label: { nl: 'Over een obstakel stappen', en: 'Step over obstacles', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -462,11 +462,11 @@ export const MINI_BEST_TEST_SECTIONS: Array = [ }, { input_id: 'MINI_BEST_TEST_Q14', - input_label: { + label: { nl: 'Timed Get-up & Go met dubbeltaak [loopafstand 3 meter]', en: 'Timed Up & Go with dual task [3 meter walk]', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/mlks/definition/mlks_inputs.ts b/todo/mlks/definition/mlks_inputs.ts index 857eb01..17c736f 100644 --- a/todo/mlks/definition/mlks_inputs.ts +++ b/todo/mlks/definition/mlks_inputs.ts @@ -17,12 +17,12 @@ export const TWENTY_FIVE = 25 export const MLKS_INPUTS: Array = [ { input_id: 'Q01_LIMP', - input_label: { + label: { en: 'Limp', nl: 'Afwijkend looppatroon, mank lopen', fr: 'Boiterie', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -54,12 +54,12 @@ export const MLKS_INPUTS: Array = [ }, { input_id: 'Q02_CANE_OR_CRUTCHES', - input_label: { + label: { en: 'Using cane or crutches', nl: 'Steun', fr: 'Utiliser une canne ou des béquilles', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -91,12 +91,12 @@ export const MLKS_INPUTS: Array = [ }, { input_id: 'Q03_LOCKING_KNEE', - input_label: { + label: { en: 'Locking sensation in the knee', nl: 'Blokkades/slotverschijnselen', fr: 'Sensation de blocage dans le genou', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -144,12 +144,12 @@ export const MLKS_INPUTS: Array = [ }, { input_id: 'Q04_GIVING_WAY_SENSATION_KNEE', - input_label: { + label: { en: 'Giving way sensation from the knee', nl: 'Door de knie zakken', fr: 'Sensation de cèder au niveau du genou', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -205,12 +205,12 @@ export const MLKS_INPUTS: Array = [ }, { input_id: 'Q05_PAIN', - input_label: { + label: { en: 'Pain', nl: 'Pijn', fr: 'Douleur', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -266,12 +266,12 @@ export const MLKS_INPUTS: Array = [ }, { input_id: 'Q06_SWELLING', - input_label: { + label: { en: 'Swelling', nl: 'Zwelling', fr: 'Gonflement', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -311,12 +311,12 @@ export const MLKS_INPUTS: Array = [ }, { input_id: 'Q07_CLIMBING_STAIRS', - input_label: { + label: { en: 'Climbing stairs', nl: 'Traplopen', fr: 'Monter les escaliers', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -356,12 +356,12 @@ export const MLKS_INPUTS: Array = [ }, { input_id: 'Q08_SQUATTING', - input_label: { + label: { en: 'Squatting', nl: 'Hurkzit', fr: 'Accroupissement', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/mmse/definition/mmse_inputs.ts b/todo/mmse/definition/mmse_inputs.ts index 927b8ce..8396375 100644 --- a/todo/mmse/definition/mmse_inputs.ts +++ b/todo/mmse/definition/mmse_inputs.ts @@ -3,7 +3,7 @@ import type { InputType } from '../../../src/types/calculations.types' export const MMSE_INPUTS: Array = [ { input_id: 'ORIENTATION_TO_TIME', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -18,7 +18,7 @@ export const MMSE_INPUTS: Array = [ }, { input_id: 'ORIENTATION_TO_PLACE', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -33,7 +33,7 @@ export const MMSE_INPUTS: Array = [ }, { input_id: 'REGISTRATION', - input_type: { + type: { type: 'number', allowed_answers: [{ value: 0 }, { value: 1 }, { value: 2 }, { value: 3 }], }, @@ -41,7 +41,7 @@ export const MMSE_INPUTS: Array = [ }, { input_id: 'ATTENTION_AND_CALCULATION', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -56,7 +56,7 @@ export const MMSE_INPUTS: Array = [ }, { input_id: 'RECALL', - input_type: { + type: { type: 'number', allowed_answers: [{ value: 0 }, { value: 1 }, { value: 2 }, { value: 3 }], }, @@ -64,7 +64,7 @@ export const MMSE_INPUTS: Array = [ }, { input_id: 'LANGUAGE', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -82,7 +82,7 @@ export const MMSE_INPUTS: Array = [ }, { input_id: 'CONSTRUCT', - input_type: { + type: { type: 'number', allowed_answers: [{ value: 0 }, { value: 1 }], }, diff --git a/todo/moca/definition/moca_scales.ts b/todo/moca/definition/moca_scales.ts index e0eef59..7e0a338 100644 --- a/todo/moca/definition/moca_scales.ts +++ b/todo/moca/definition/moca_scales.ts @@ -6,21 +6,21 @@ export const MOCA_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'ALTERNATING_TRAIL_MARKING', - input_type: { + type: { type: 'number', allowed_answers: [{ value: 0 }, { value: 1 }], }, }, { input_id: 'VISUOCONSTRUCTIONAL_SKILLS_CUBE', - input_type: { + type: { type: 'number', allowed_answers: [{ value: 0 }, { value: 1 }], }, }, { input_id: 'VISUOCONSTRUCTIONAL_SKILLS_CLOCK', - input_type: { + type: { type: 'numbers_array', allowed_answers: [ { value: 0, label: { en: 'Contour' } }, @@ -36,7 +36,7 @@ export const MOCA_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'NAMING', - input_type: { + type: { type: 'numbers_array', allowed_answers: [ { value: 0, label: { en: 'Lion' } }, @@ -52,28 +52,28 @@ export const MOCA_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'FORWARD_DIGIT_SPAN', - input_type: { + type: { type: 'number', allowed_answers: [{ value: 0 }, { value: 1 }], }, }, { input_id: 'BACKWARD_DIGIT_SPAN', - input_type: { + type: { type: 'number', allowed_answers: [{ value: 0 }, { value: 1 }], }, }, { input_id: 'VIGILANCE', - input_type: { + type: { type: 'number', allowed_answers: [{ value: 0 }, { value: 1 }], }, }, { input_id: 'SERIAL_7S', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -90,14 +90,14 @@ export const MOCA_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'SENTENCE_REPETITION', - input_type: { + type: { type: 'number', allowed_answers: [{ value: 0 }, { value: 1 }, { value: 2 }], }, }, { input_id: 'VERBAL_FLUENCY', - input_type: { + type: { type: 'number', allowed_answers: [{ value: 0 }, { value: 1 }], }, @@ -109,7 +109,7 @@ export const MOCA_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'ABSTRACTION', - input_type: { + type: { type: 'number', allowed_answers: [{ value: 0 }, { value: 1 }, { value: 2 }], }, @@ -121,7 +121,7 @@ export const MOCA_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'DELAYED_RECALL', - input_type: { + type: { type: 'numbers_array', allowed_answers: [ { value: 0, label: { en: 'Face' } }, @@ -139,7 +139,7 @@ export const MOCA_SCALES: Array = [ input_ids_in_subscale: [ { input_id: 'ORIENTATION', - input_type: { + type: { type: 'numbers_array', allowed_answers: [ { value: 0, label: { en: 'Date' } }, diff --git a/todo/modified_caregiver_strain_index/definition/modified_caregiver_strain_index_inputs.ts b/todo/modified_caregiver_strain_index/definition/modified_caregiver_strain_index_inputs.ts index 0f58b1f..3066446 100644 --- a/todo/modified_caregiver_strain_index/definition/modified_caregiver_strain_index_inputs.ts +++ b/todo/modified_caregiver_strain_index/definition/modified_caregiver_strain_index_inputs.ts @@ -5,7 +5,7 @@ const YES_ANSWER = 2 const SOMETIMES_ANSWER = 1 const NO_ANSWER = 0 -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: NO_ANSWER, label: { en: 'No', nl: 'Nee' } }, @@ -23,7 +23,7 @@ const input_type: NumberInputType = { export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ { input_id: 'CSI_Q01', - input_label: { + label: { nl: 'Mijn nachtrust is verstoord.', en: 'My sleep is disturbed (e.g., because the person I care for is in and out of bed or wanders around at night)', }, @@ -32,7 +32,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q02', - input_label: { + label: { nl: 'Hem of haar helpen kost me nogal wat moeite en tijd.', en: 'Caregiving is inconvenient (e.g., helping takes so much time or it’s a long drive over to help)', }, @@ -41,7 +41,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q03', - input_label: { + label: { nl: 'Ik vind het lichamelijk zwaar.', en: 'It is a physical strain (e.g., because of lifting in and out of a chair; effort or concentration is required)', }, @@ -50,7 +50,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q04', - input_label: { + label: { nl: 'Het beperkt me in andere dingen die ik wil doen.', en: 'Caregiving is confining (e.g., helping restricts free time or cannot go visiting)', }, @@ -59,7 +59,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q05', - input_label: { + label: { nl: 'Wij hebben onze dagelijkse manier van doen moeten aanpassen.', en: 'There have been family adjustments (e.g., because helping has disrupted routine; there has been no privacy)', }, @@ -68,7 +68,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q06', - input_label: { + label: { nl: 'Wij hebben onze plannen moeten wijzigen.', en: 'There have been changes in personal plans (e.g., had to turn down a job; could not go on vacation)', }, @@ -77,7 +77,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q07', - input_label: { + label: { nl: 'Er zijn ook andere zaken waaraan ik mijn tijd moet besteden.', en: 'There have been other demands on my time (e.g., other family members need me)', }, @@ -86,7 +86,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q08', - input_label: { + label: { nl: 'Emotioneel gedragen we ons anders ten opzichte van elkaar.', en: 'There have been emotional adjustments (e.g., because of severe arguments)', }, @@ -95,7 +95,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q09', - input_label: { + label: { nl: 'Het gedrag van mijn man/vrouw maakt me soms van streek.', en: 'Some behavior is upsetting (e.g., because of incontinence; the person I care for has trouble remembering things; or the person I care for accuses people of taking things)', }, @@ -104,7 +104,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q10', - input_label: { + label: { nl: 'Het is pijnlijk te moeten zien dat hij/zij een ander persoon is geworden.', en: 'It is upsetting to find that he/she has changed so much from his/her former self (e.g., he/she is a different person than he/she used to be)', }, @@ -113,7 +113,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q11', - input_label: { + label: { nl: 'Ik heb mijn werk/baan moeten aanpassen aan de situatie.', en: 'There have been work adjustments (e.g., because of having to take time off)', }, @@ -122,7 +122,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q12', - input_label: { + label: { nl: 'Ik word geheel door deze situatie in beslag genomen.', en: "I'm feeling completely overwhelmed (e.g., because of worry about the person I care for; concerns about how you I will manage)", }, @@ -131,7 +131,7 @@ export const MODIFIED_CAREGIVER_STRAIN_INDEX_INPUTS: Array = [ }, { input_id: 'CSI_Q13', - input_label: { + label: { nl: 'We leven onder financiële druk.', en: 'It is a financial strain', }, diff --git a/todo/mpi/definition/mpi_domains.ts b/todo/mpi/definition/mpi_domains.ts index 0799458..03fa8bc 100644 --- a/todo/mpi/definition/mpi_domains.ts +++ b/todo/mpi/definition/mpi_domains.ts @@ -17,7 +17,7 @@ const add_allowed_answers = ( input: Pick, ): InputType => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }) export const MPI_DOMAINS: DefaultSubscaleType[] = [ @@ -26,140 +26,140 @@ export const MPI_DOMAINS: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'MPI_PART1_Q01', - input_label: { + label: { en: '1.Rate the level of your pain at the present moment.', nl: '', }, }, { input_id: 'MPI_PART1_Q02', - input_label: { + label: { en: 'In general, how much does your pain problem interfere with your day to day activities?', nl: '', }, }, { input_id: 'MPI_PART1_Q03', - input_label: { + label: { en: '3.Since the time you developed a pain problem, how much has your pain changed your ability to work?', nl: '', }, }, { input_id: 'MPI_PART1_Q04', - input_label: { + label: { en: 'How much has your pain changed the amount of satisfaction or enjoyment you get from participating in social and recreational activities?', nl: '', }, }, { input_id: 'MPI_PART1_Q05', - input_label: { + label: { en: 'How supportive or helpful is your spouse (significant other) to you in relation to your pain?', nl: '', }, }, { input_id: 'MPI_PART1_Q06', - input_label: { + label: { en: 'Rate your overall mood during the past week.', nl: '', }, }, { input_id: 'MPI_PART1_Q07', - input_label: { + label: { en: 'On the average, how severe has your pain been during the last week?', nl: '', }, }, { input_id: 'MPI_PART1_Q08', - input_label: { + label: { en: 'How much has your pain changed your ability to participate in recreational and other social activities?', nl: '', }, }, { input_id: 'MPI_PART1_Q09', - input_label: { + label: { en: 'How much has your pain changed the amount of satisfaction you get from family- related activities?', nl: '', }, }, { input_id: 'MPI_PART1_Q10', - input_label: { + label: { en: 'How worried is your spouse (significant other) about you in relation to your pain problem?', nl: '', }, }, { input_id: 'MPI_PART1_Q11', - input_label: { + label: { en: 'During the past week, how much control do you feel that you have had over your life?', nl: '', }, }, { input_id: 'MPI_PART1_Q12', - input_label: { + label: { en: 'How much suffering do you experience because of your pain?', nl: '', }, }, { input_id: 'MPI_PART1_Q13', - input_label: { + label: { en: 'How much has your pain changed your marriage and other family relationships?', nl: '', }, }, { input_id: 'MPI_PART1_Q14', - input_label: { + label: { en: 'How much has your pain changed the amount of satisfaction or enjoyment you get from work?', nl: '', }, }, { input_id: 'MPI_PART1_Q15', - input_label: { + label: { en: 'How attentive is your spouse (significant other) to your pain problem?', nl: '', }, }, { input_id: 'MPI_PART1_Q16', - input_label: { + label: { en: 'During the past week, how much do you feel that you’ve been able to deal with your problems?', nl: '', }, }, { input_id: 'MPI_PART1_Q17', - input_label: { + label: { en: 'How much has your pain changed your ability to do household chores?', nl: '', }, }, { input_id: 'MPI_PART1_Q18', - input_label: { + label: { en: 'During the past week, how irritable have you been?', nl: '', }, }, { input_id: 'MPI_PART1_Q19', - input_label: { + label: { en: 'How much has your pain changed your friendships with people other than your family?', nl: '', }, }, { input_id: 'MPI_PART1_Q20', - input_label: { + label: { en: 'During the past week, how tense or anxious have you been?', nl: '', }, @@ -171,98 +171,98 @@ export const MPI_DOMAINS: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'MPI_PART2_Q01', - input_label: { + label: { en: 'In this section, we are interested in knowing how your significant other (this refers to the person you indicated above) responds to you when he or she knows that you are in pain. On the scale listed below each question, circle a number to indicate how often your significant other generally responds to you in that particular way when you are in pain. Ignores me.', nl: '', }, }, { input_id: 'MPI_PART2_Q02', - input_label: { + label: { en: 'Asks me what he/she can do to help.', nl: '', }, }, { input_id: 'MPI_PART2_Q03', - input_label: { + label: { en: 'Reads to me.', nl: '', }, }, { input_id: 'MPI_PART2_Q04', - input_label: { + label: { en: 'Expresses irritation at me.', nl: '', }, }, { input_id: 'MPI_PART2_Q05', - input_label: { + label: { en: 'Takes over my jobs or duties.', nl: '', }, }, { input_id: 'MPI_PART2_Q06', - input_label: { + label: { en: 'Talks to me about something else to take my mind off the pain.', nl: '', }, }, { input_id: 'MPI_PART2_Q07', - input_label: { + label: { en: 'Expresses frustration at me.', nl: '', }, }, { input_id: 'MPI_PART2_Q08', - input_label: { + label: { en: 'Tries to get me to rest.', nl: '', }, }, { input_id: 'MPI_PART2_Q09', - input_label: { + label: { en: 'Tries to involve me in some activity', nl: '', }, }, { input_id: 'MPI_PART2_Q10', - input_label: { + label: { en: 'Expresses anger at me.', nl: '', }, }, { input_id: 'MPI_PART2_Q11', - input_label: { + label: { en: 'Gets me some pain medications.', nl: '', }, }, { input_id: 'MPI_PART2_Q12', - input_label: { + label: { en: 'Encourages me to work on a hobby.', nl: '', }, }, { input_id: 'MPI_PART2_Q13', - input_label: { + label: { en: 'Gets me something to eat or drink.', nl: '', }, }, { input_id: 'MPI_PART2_Q14', - input_label: { + label: { en: 'Turns on the T.V. to take my mind off my pain', nl: '', }, @@ -274,126 +274,126 @@ export const MPI_DOMAINS: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'MPI_PART3_Q01', - input_label: { + label: { en: 'Listed below are 18 common daily activities. Please indicate how often you do each of these activities by circling a number on the scale listed below each activity. Please complete all 18 questions. Wash dishes.', nl: '', }, }, { input_id: 'MPI_PART3_Q02', - input_label: { + label: { en: 'Mow the lawn.', nl: '', }, }, { input_id: 'MPI_PART3_Q03', - input_label: { + label: { en: 'Go out to eat.', nl: '', }, }, { input_id: 'MPI_PART3_Q04', - input_label: { + label: { en: 'Play cards or other games.', nl: '', }, }, { input_id: 'MPI_PART3_Q05', - input_label: { + label: { en: 'Go grocery shopping.', nl: '', }, }, { input_id: 'MPI_PART3_Q06', - input_label: { + label: { en: 'Work in the garden.', nl: '', }, }, { input_id: 'MPI_PART3_Q07', - input_label: { + label: { en: 'Go to a movie.', nl: '', }, }, { input_id: 'MPI_PART3_Q08', - input_label: { + label: { en: 'Visit friends.', nl: '', }, }, { input_id: 'MPI_PART3_Q09', - input_label: { + label: { en: 'Help with the house cleaning.', nl: '', }, }, { input_id: 'MPI_PART3_Q10', - input_label: { + label: { en: 'Work on the car.', nl: '', }, }, { input_id: 'MPI_PART3_Q11', - input_label: { + label: { en: 'Take a ride in a car.', nl: '', }, }, { input_id: 'MPI_PART3_Q12', - input_label: { + label: { en: 'Visit relatives.', nl: '', }, }, { input_id: 'MPI_PART3_Q13', - input_label: { + label: { en: 'Prepare a meal.', nl: '', }, }, { input_id: 'MPI_PART3_Q14', - input_label: { + label: { en: 'Wash the car.', nl: '', }, }, { input_id: 'MPI_PART3_Q15', - input_label: { + label: { en: 'Take a trip.', nl: '', }, }, { input_id: 'MPI_PART3_Q16', - input_label: { + label: { en: 'Go to a park or beach.', nl: '', }, }, { input_id: 'MPI_PART3_Q17', - input_label: { + label: { en: 'Do a load of laundry.', nl: '', }, }, { input_id: 'MPI_PART3_Q18', - input_label: { + label: { en: 'Work on a needed house repair.', nl: '', }, diff --git a/todo/msq/definition/msq_inputs.ts b/todo/msq/definition/msq_inputs.ts index 265a9a9..3233785 100644 --- a/todo/msq/definition/msq_inputs.ts +++ b/todo/msq/definition/msq_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const INPUT_TYPE: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -38,499 +38,499 @@ const INPUT_TYPE: NumberInputType = { export const MSQ_INPUTS: Array = [ { input_id: 'HEAD_Q01_HEADACHES', - input_label: { + label: { en: 'Head - Headaches', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'HEAD_Q02_FAINTNESS', - input_label: { + label: { en: 'Head - Faintness', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'HEAD_Q03_DIZZINESS', - input_label: { + label: { en: 'Head - Dizziness', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'HEAD_Q04_INSOMNIA', - input_label: { + label: { en: 'Head - Insomnia', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EYES_Q01_WATERY_OR_ITCHY_EYES', - input_label: { + label: { en: 'Eyes - Watery or itchy eyes', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EYES_Q02_SWOLLEN_REDDENED_OR_STICKY_EYELIDS', - input_label: { + label: { en: 'Eyes - Swollen, reddened or sticky eyelids', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EYES_Q03_BAGS_OR_DARK_CIRCLES_UNDER_EYES', - input_label: { + label: { en: 'Eyes - Bags or dark circles under eyes', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EYES_Q04_BLURRED_OR_TUNNEL_VISION', - input_label: { + label: { en: 'Eyes - Blurred or tunnel vision', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EARS_Q01_ITCHY_EARS', - input_label: { + label: { en: 'Ears - Itchy ears', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EARS_Q02_EARACHES_EAR_INFECTIONS', - input_label: { + label: { en: 'Ears - Earaches, ear infections', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EARS_Q03_DRAINAGE_FROM_EAR', - input_label: { + label: { en: 'Ears - Drainage from ear', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EARS_Q04_RINGING_EARS_HEARING_LOSS', - input_label: { + label: { en: 'Ears - Ringing in ears, hearing loss', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'NOSE_Q01_STUFFY_NOSE', - input_label: { + label: { en: 'Nose - Stuffy nose', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'NOSE_Q02_SINUS_PROBLEMS', - input_label: { + label: { en: 'Nose - Sinus problems', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'NOSE_Q03_HAY_FEVER', - input_label: { + label: { en: 'Nose - Hay fever', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'NOSE_Q04_SNEEZING_ATTACKS', - input_label: { + label: { en: 'Nose - Sneezing attacks', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'NOSE_Q05_EXCESSIVE_MUCUS_FORMATION', - input_label: { + label: { en: 'Nose - Excessive mucus formation', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MOUTH_THROAT_Q01_CHRONIC_COUGHING', - input_label: { + label: { en: 'Mouth/throat - Chronic coughing', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MOUTH_THROAT_Q02_GAGGING_FREQUENT_NEED_TO_CLEAR_THROAT', - input_label: { + label: { en: 'Mouth/throat - Gagging, frequent need to clear throat', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MOUTH_THROAT_Q03_SORE_THROAT_HOARSENESS_LOSS_OF_VOUICE', - input_label: { + label: { en: 'Mouth/throat - Sore throat, hoarseness, loss of voice', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MOUTH_THROAT_Q04_SWOLLEN_OR_DISCOLORED_TONGUE_GUMS_LIPS', - input_label: { + label: { en: 'Mouth/throat - Swollen or discolored tongue, gums, lips', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MOUTH_THROAT_Q05_CANKER_SORES', - input_label: { + label: { en: 'Mouth/throat - Canker sores', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'SKIN_Q01_ACNE', - input_label: { + label: { en: 'Skin - Acne', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'SKIN_Q02_HIVES_RASHES_DRY_SKIN', - input_label: { + label: { en: 'Skin - Hives, rashes, dry skin', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'SKIN_Q03_HAIR_LOSS', - input_label: { + label: { en: 'Skin - Hair loss', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'SKIN_Q04_FLUSHING_HOT_FLASHES', - input_label: { + label: { en: 'Skin - Flushing, hot flashes', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'SKIN_Q05_EXCESSIVE_SWEATING', - input_label: { + label: { en: 'Skin - Excessive sweating', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'HEART_Q01_IRREGULAR_OR_SKIPPED_HEARTBEAT', - input_label: { + label: { en: 'Heart - Irregular or skipped heartbeat', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'HEART_Q02_RAPID_OR_POUNDING_HEARTBEAT', - input_label: { + label: { en: 'Heart - Rapid or pounding heartbeat', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'HEART_Q03_CHEST_PAIN', - input_label: { + label: { en: 'Heart - Chest pain', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'LUNGS_Q01_CHEST_CONGESTION', - input_label: { + label: { en: 'Lungs - Chest congestion', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'LUNGS_Q02_ASTHMA_BRONCHITIS', - input_label: { + label: { en: 'Lungs - Asthma, bronchitis', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'LUNGS_Q03_SHORTNESS_OF_BREATH', - input_label: { + label: { en: 'Lungs - Shortness of breath', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'LUNGS_Q04_DIFFICULTY_BREATHING', - input_label: { + label: { en: 'Lungs - Difficulty breating', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'DIGESTIVE_TRACT_Q01_NAUSEA_VOMITING', - input_label: { + label: { en: 'Digestive tract - Nausea, vomiting', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'DIGESTIVE_TRACT_Q02_DIARRHEA', - input_label: { + label: { en: 'Digestive tract - Diarrhea', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'DIGESTIVE_TRACT_Q03_CONSTIPATION', - input_label: { + label: { en: 'Digestive tract - Constipation', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'DIGESTIVE_TRACT_Q04_BLOATED_FEELING', - input_label: { + label: { en: 'Digestive tract - Bloated feeling', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'DIGESTIVE_TRACT_Q05_BELCHING_PASSING_GAS', - input_label: { + label: { en: 'Digestive tract - Belching, passing gas', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'DIGESTIVE_TRACT_Q06_HEARTBURN', - input_label: { + label: { en: 'Digestive tract - Heartburn', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'DIGESTIVE_TRACT_Q07_INTESTINAL_STOMACH_PAIN', - input_label: { + label: { en: 'Digestive tract - Intestinal/stomach pain', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'JOINTS_MUSCLE_Q01_PAIN_OR_ACHES_IN_JOINTS', - input_label: { + label: { en: 'Joints/muscle - Pain or aches in joints', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'JOINTS_MUSCLE_Q02_ARTHRITIS', - input_label: { + label: { en: 'Joints/muscle - Arthritis', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'JOINTS_MUSCLE_Q03_STIFFNESS_OR_LIMITATION_OF_MOVEMENT', - input_label: { + label: { en: 'Joints/muscle - Stiffness or limitation of movement', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'JOINTS_MUSCLE_Q04_PAIN_OR_ACHES_IN_MUSCLES', - input_label: { + label: { en: 'Joints/muscle - Pain or aches in muscles', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'JOINTS_MUSCLE_Q05_FEELING_OF_WEAKNESS_OR_TIREDNESS', - input_label: { + label: { en: 'Joints/muscle - Feeling of weakness or tiredness', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'WEIGHT_Q01_BINGE_EATING_DRINKING', - input_label: { + label: { en: 'Weight - Binge eating/drinking', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'WEIGHT_Q02_CRAVING_CERTAIN_FOODS', - input_label: { + label: { en: 'Weight - Craving certain foods', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'WEIGHT_Q03_EXCESSIVE_WEIGHT', - input_label: { + label: { en: 'Weight - Excessive weight', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'WEIGHT_Q04_COMPULSIVE_EATING', - input_label: { + label: { en: 'Weight - Compulsive eating', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'WEIGHT_Q05_WATER_RETENTION', - input_label: { + label: { en: 'Weight - Water retention', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'WEIGHT_Q06_UNDERWEIGHT', - input_label: { + label: { en: 'Weight - Underweight', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'ENERGY_ACTIVITY_Q01_FATIGUE_SLUGGISHNESS', - input_label: { + label: { en: 'Energy/activity - Fatigue, sluggishness', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'ENERGY_ACTIVITY_Q02_APATHY_LETHARGY', - input_label: { + label: { en: 'Energy/activity - Apathy, lethargy', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'ENERGY_ACTIVITY_Q03_HYPERACTIVITY', - input_label: { + label: { en: 'Energy/activity - Hyperactivity', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'ENERGY_ACTIVITY_Q04_RESTLESSNESS', - input_label: { + label: { en: 'Energy/activity - Restlessness', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MIND_Q01_POOR_MEMORY', - input_label: { + label: { en: 'Mind - Poor memory', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MIND_Q02_CONFUSION_POOR_COMPREHENSION', - input_label: { + label: { en: 'Mind - Confusion, poor comprehension', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MIND_Q03_POOR_CONCENTRATION', - input_label: { + label: { en: 'Mind - Poor concentration', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MIND_Q04_POOR_PHYSICAL_COORDINATION', - input_label: { + label: { en: 'Mind - Poor physical coordination', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MIND_Q05_DIFFICULTY_IN_MAKING_DECISIONS', - input_label: { + label: { en: 'Mind - Difficulty in making decisions', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MIND_Q06_STUTTERING_OR_STAMMERING', - input_label: { + label: { en: 'Mind - Stuttering or stammering', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MIND_Q07_SLURRED_SPEECH', - input_label: { + label: { en: 'Mind - Slurred speech', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'MIND_Q08_LEARNING_DISABILITIES', - input_label: { + label: { en: 'Mind - Learning disabilities', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EMOTIONS_Q01_MOOD_SWINGS', - input_label: { + label: { en: 'Emotions - Mood swings', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EMOTIONS_Q02_ANXIETY_FEAR_NERVOUSNESS', - input_label: { + label: { en: 'Emotions - Anxiety, fear, nervousness', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EMOTIONS_Q03_ANGER_IRRITABILITY_AGGRESSIVENESS', - input_label: { + label: { en: 'Emotions - Anger, irritability, aggressiveness', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'EMOTIONS_Q04_DEPRESSION', - input_label: { + label: { en: 'Emotions - Depression', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'OTHER_Q01_FREQUENT_ILLNESS', - input_label: { + label: { en: 'Other - Frequent illness', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'OTHER_Q02_FREQUENT_OR_URGENT_URINATION', - input_label: { + label: { en: 'Other - Frequent or urgent urination', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, { input_id: 'OTHER_Q03_GENITAL_ITCH_OR_DISCHARGE', - input_label: { + label: { en: 'Other - Genital itch or discharge', }, - input_type: INPUT_TYPE, + type: INPUT_TYPE, }, ] diff --git a/todo/ndi/definition/ndi_inputs.ts b/todo/ndi/definition/ndi_inputs.ts index 8453c9f..22b1426 100644 --- a/todo/ndi/definition/ndi_inputs.ts +++ b/todo/ndi/definition/ndi_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -export const input_type: NumberInputType = { +export const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0 }, @@ -17,7 +17,7 @@ export const NDI_INPUTS: Array = [ { input_id: 'NDI_Q01', input_type, - input_label: { + label: { en: 'Pain Intensity', nl: '', }, @@ -26,7 +26,7 @@ export const NDI_INPUTS: Array = [ { input_id: 'NDI_Q02', input_type, - input_label: { + label: { en: 'Personal Care (Washing, Dressing, etc.)', nl: '', }, @@ -35,7 +35,7 @@ export const NDI_INPUTS: Array = [ { input_id: 'NDI_Q03', input_type, - input_label: { + label: { en: 'Lifting', nl: '', }, @@ -44,7 +44,7 @@ export const NDI_INPUTS: Array = [ { input_id: 'NDI_Q04', input_type, - input_label: { + label: { en: 'Reading', nl: '', }, @@ -53,7 +53,7 @@ export const NDI_INPUTS: Array = [ { input_id: 'NDI_Q05', input_type, - input_label: { + label: { en: 'Headaches', nl: '', }, @@ -62,7 +62,7 @@ export const NDI_INPUTS: Array = [ { input_id: 'NDI_Q06', input_type, - input_label: { + label: { en: 'Concentration', nl: '', }, @@ -71,7 +71,7 @@ export const NDI_INPUTS: Array = [ { input_id: 'NDI_Q07', input_type, - input_label: { + label: { en: 'Work', nl: '', }, @@ -80,7 +80,7 @@ export const NDI_INPUTS: Array = [ { input_id: 'NDI_Q08', input_type, - input_label: { + label: { en: 'Driving', nl: '', }, @@ -89,7 +89,7 @@ export const NDI_INPUTS: Array = [ { input_id: 'NDI_Q09', input_type, - input_label: { + label: { en: 'Sleeping', nl: '', }, @@ -98,7 +98,7 @@ export const NDI_INPUTS: Array = [ { input_id: 'NDI_Q10', input_type, - input_label: { + label: { en: 'Recreation', nl: '', }, diff --git a/todo/oas/definition/oas_inputs.ts b/todo/oas/definition/oas_inputs.ts index 55ea399..5295ef5 100644 --- a/todo/oas/definition/oas_inputs.ts +++ b/todo/oas/definition/oas_inputs.ts @@ -3,10 +3,10 @@ import type { InputType } from '../../../src/types/calculations.types' export const OAS_INPUTS: Array = [ { input_id: 'OAS_Q01', - input_label: { + label: { en: 'I can lead a productive and fulfilling life despite my ostomy.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -40,10 +40,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q02', - input_label: { + label: { en: 'I think I am leading quite a normal life despite my ostomy.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -77,11 +77,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q03', - input_label: { + label: { en: 'There are many things I would do if I did not have an ostomy.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -115,10 +115,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q04', - input_label: { + label: { en: 'I feel free to travel where I want despite my ostomy.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -152,10 +152,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q05', - input_label: { + label: { en: 'I have felt comfortable participating in sports and physical exercise since my ostomy surgery.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -189,11 +189,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q06', - input_label: { + label: { en: 'I find that I unnecessarily restrict the range of my activities because of my ostomy.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -227,10 +227,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q07', - input_label: { + label: { en: 'I have been better able to work since I had my ostomy surgery.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -264,10 +264,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q08', - input_label: { + label: { en: 'I am more able to enjoy sexual activities because of improved health since having ostomy surgery.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -301,11 +301,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q09', - input_label: { + label: { en: 'At times I lack self-confidence because of my ostomy.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -339,11 +339,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q10', - input_label: { + label: { en: 'I feel ashamed of my ostomy, as if it were a sign of my own physical or emotional weakness.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -377,11 +377,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q11', - input_label: { + label: { en: 'At times I resent my friends who do not have ostomies or the health problems that lead to ostomy surgery.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -415,10 +415,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q12', - input_label: { + label: { en: 'My self-respect has not suffered because of my ostomy.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -452,11 +452,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q13', - input_label: { + label: { en: 'I feel somehow "dirty" and "unclean" because of my ostomy.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -490,11 +490,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q14', - input_label: { + label: { en: 'I leave places early to avoid producing embarrassing odors in the bathroom.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -528,10 +528,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q15', - input_label: { + label: { en: 'I feel comfortable with my body, including my stoma.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -565,11 +565,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q16', - input_label: { + label: { en: 'I feel that I am somehow being punished for something by having this ostomy.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -603,11 +603,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q17', - input_label: { + label: { en: 'I get depressed when I realize that I will have this ostomy for the rest of my life.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -641,10 +641,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q18', - input_label: { + label: { en: 'I can discuss even the most embarrassing aspects of my ostomy with my doctor.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -678,11 +678,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q19', - input_label: { + label: { en: 'I feel like a complainer when I have to contact my doctor or ET0 about my ostomy.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -716,11 +716,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q20', - input_label: { + label: { en: 'I avoid telling my doctor about changes in my stoma and its functioning.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -754,10 +754,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q21', - input_label: { + label: { en: 'I feel that I am well educated about my stoma and caring for it.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -791,10 +791,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q22', - input_label: { + label: { en: 'I am confident that I know the proper methods for managing my ostomy.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -828,11 +828,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q23', - input_label: { + label: { en: "Since I've had my surgery, I feel I'm more likely to get sick than other people.", }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -866,11 +866,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q24', - input_label: { + label: { en: 'I find myself worrying that my surgery did not really cure my health problems.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -904,11 +904,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q25', - input_label: { + label: { en: 'I worry more than I used to about being left alone.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -942,11 +942,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q26', - input_label: { + label: { en: 'I feel embarrassed by my ostomy, as though it were something to hide.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -980,11 +980,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q27', - input_label: { + label: { en: 'I feel that I am not as sexually attractive as I used to be because of my stoma.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -1018,10 +1018,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q28', - input_label: { + label: { en: 'I can laugh afterwards about awkward situations that happen because of my ostomy.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -1055,10 +1055,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q29', - input_label: { + label: { en: 'Most of the time, I forget about my ostomy and am not aware of it.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -1092,11 +1092,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q30', - input_label: { + label: { en: 'I worry about embarrassing accidents happening in the course of normal sexual ativity.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -1130,11 +1130,11 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q31', - input_label: { + label: { en: 'I think other people would be uncomfortable around me if they knew about my stoma.', }, inverse: true, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -1168,10 +1168,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q32', - input_label: { + label: { en: 'I feel confident that I can trust my appliance when I am in public places.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -1205,10 +1205,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q33', - input_label: { + label: { en: 'My ostomy surgery helped me decide what things are most important in my life.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -1242,10 +1242,10 @@ export const OAS_INPUTS: Array = [ }, { input_id: 'OAS_Q34', - input_label: { + label: { en: 'My ostomy reminds me how fortunate I am to have received good medical care.', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/orebro/long_version/definition/ompq_inputs.ts b/todo/orebro/long_version/definition/ompq_inputs.ts index 153b793..742dafa 100644 --- a/todo/orebro/long_version/definition/ompq_inputs.ts +++ b/todo/orebro/long_version/definition/ompq_inputs.ts @@ -4,7 +4,7 @@ import type { OMPQInputType } from '../../../../src/types/calculations/inputs/cu export const DEFAULT_MIN_SCORE_PER_INPUT = 0 export const DEFAULT_MAX_SCORE_PER_INPUT = 10 -const DEFAULT_INPUT_TYPE: NumberInputType = { +const DEFAULT_type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0 }, @@ -29,11 +29,11 @@ const DEFAULT_INPUT_TYPE: NumberInputType = { export const OMPQ_INPUTS: Array = [ { input_id: 'OMPQ_Q05', - input_label: { + label: { en: 'Where do you have pain? Place a tick for all appropriate sites.', nl: '', }, - input_type: { + type: { type: 'strings_array', allowed_answers: [ { value: 'neck', label: { en: 'Neck' } }, @@ -51,11 +51,11 @@ export const OMPQ_INPUTS: Array = [ }, { input_id: 'OMPQ_Q06', - input_label: { + label: { en: 'How many days of work have you missed because of pain during the past 18 months? Tick one.', nl: '', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 1, label: { en: '0 days' } }, @@ -76,11 +76,11 @@ export const OMPQ_INPUTS: Array = [ }, { input_id: 'OMPQ_Q07', - input_label: { + label: { en: 'How long have you had your current pain problem? Tick one.', nl: '', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 1, label: { en: '0-1 week' } }, @@ -101,198 +101,198 @@ export const OMPQ_INPUTS: Array = [ }, { input_id: 'OMPQ_Q08', - input_label: { + label: { en: 'Is your work heavy or monotonous? Circle the best alternative.', nl: '', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: false, }, { input_id: 'OMPQ_Q09', - input_label: { + label: { en: 'How would you rate the pain that you have had during the past week? Circle one.', nl: '', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: false, }, { input_id: 'OMPQ_Q10', - input_label: { + label: { en: 'In the past three months, on average, how bad was your pain on a 0-10 scale? Circle one.', nl: '', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: false, }, { input_id: 'OMPQ_Q11', - input_label: { + label: { en: 'How often would you say that you have experience pain episodes, on average, during the past three months? Circle one.', nl: ' ', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: false, }, { input_id: 'OMPQ_Q12', - input_label: { + label: { en: 'Based on all things you do to cope, or deal with your pain, on an average day, how much are you able to decrease it? Circle the appropriate number.', nl: ' ', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: true, }, { input_id: 'OMPQ_Q13', - input_label: { + label: { en: 'How tense or anxious have you felt in the past week? Circle one.', nl: ' ', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: false, }, { input_id: 'OMPQ_Q14', - input_label: { + label: { en: 'How much have you been bothered by feeling depressed in the past week? Circle one.', nl: ' ', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: false, }, { input_id: 'OMPQ_Q15', - input_label: { + label: { en: 'In your view, how large is the risk that your current pain may become persistent? Circle one.', nl: ' ', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: false, }, { input_id: 'OMPQ_Q16', - input_label: { + label: { en: 'In your estimation, what are the chances that you will be able to work in six months? Circle one.', nl: ' ', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: true, }, { input_id: 'OMPQ_Q17', - input_label: { + label: { en: 'If you take into consideration your work routines, management, salary, promotion possibilities and work mates, how satisfied are you with your job? Circle one.', nl: ' ', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: true, }, { input_id: 'OMPQ_Q18', - input_label: { + label: { en: 'Physical activity makes my pain worse.', nl: ' ', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: false, }, { input_id: 'OMPQ_Q19', - input_label: { + label: { en: 'An increase in pain is an indication that I should stop what I’m doing until the pain decreases.', nl: ' ', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: false, }, { input_id: 'OMPQ_Q20', - input_label: { + label: { en: 'I should not do my normal work with my present pain.', nl: '', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: false, }, { input_id: 'OMPQ_Q21', - input_label: { + label: { en: 'I can do light work for an hour.', nl: '', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: true, }, { input_id: 'OMPQ_Q22', - input_label: { + label: { en: 'I can walk for an hour.', nl: '', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: true, }, { input_id: 'OMPQ_Q23', - input_label: { + label: { en: 'I can do ordinary household chores.', nl: '', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: true, }, { input_id: 'OMPQ_Q24', - input_label: { + label: { en: 'I can do the weekly shopping.', nl: ' ', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: true, }, { input_id: 'OMPQ_Q25', - input_label: { + label: { en: 'I can sleep at night.', nl: ' ', }, - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, min_score: DEFAULT_MIN_SCORE_PER_INPUT, max_score: DEFAULT_MAX_SCORE_PER_INPUT, inverse: true, diff --git a/todo/orebro/short_version/definition/ompq_10_inputs.ts b/todo/orebro/short_version/definition/ompq_10_inputs.ts index 1aba9c3..45998c7 100644 --- a/todo/orebro/short_version/definition/ompq_10_inputs.ts +++ b/todo/orebro/short_version/definition/ompq_10_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../../src/types/calculations.types' import { NumberInputType } from '../../../../src/types/calculations/inputs/calculation-inputs.types' -export const input_type: NumberInputType = { +export const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0 }, @@ -21,7 +21,7 @@ export const input_type: NumberInputType = { export const OMPQ_10_INPUTS: Array = [ { input_id: 'OREBRO_01', - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -101,7 +101,7 @@ export const OMPQ_10_INPUTS: Array = [ { input_id: 'OREBRO_02', input_type, - input_label: { + label: { en: 'How would you rate the pain that you have had during the past week? Circle one.', nl: '', }, @@ -110,7 +110,7 @@ export const OMPQ_10_INPUTS: Array = [ { input_id: 'OREBRO_03', input_type, - input_label: { + label: { en: 'I can do light work for an hour.', nl: '', }, @@ -119,7 +119,7 @@ export const OMPQ_10_INPUTS: Array = [ { input_id: 'OREBRO_04', input_type, - input_label: { + label: { en: 'I can sleep at night.', nl: '', }, @@ -128,7 +128,7 @@ export const OMPQ_10_INPUTS: Array = [ { input_id: 'OREBRO_05', input_type, - input_label: { + label: { en: 'How tense or anxious have you felt in the past week? Circle one.', nl: '', }, @@ -137,7 +137,7 @@ export const OMPQ_10_INPUTS: Array = [ { input_id: 'OREBRO_06', input_type, - input_label: { + label: { en: 'How much have you been bothered by feeling depressed in the past week? Circle one.', nl: '', }, @@ -146,7 +146,7 @@ export const OMPQ_10_INPUTS: Array = [ { input_id: 'OREBRO_07', input_type, - input_label: { + label: { en: 'In your view, how large is the risk that your current pain may become persistent?', nl: '', }, @@ -155,7 +155,7 @@ export const OMPQ_10_INPUTS: Array = [ { input_id: 'OREBRO_08', input_type, - input_label: { + label: { en: 'In your estimation, what are the chances you will be working your normal duties in 3 months', nl: '', }, @@ -164,7 +164,7 @@ export const OMPQ_10_INPUTS: Array = [ { input_id: 'OREBRO_09', input_type, - input_label: { + label: { en: 'An increase in pain is an indication that I should stop what I’m doing until the pain decreases.', nl: '', }, @@ -173,7 +173,7 @@ export const OMPQ_10_INPUTS: Array = [ { input_id: 'OREBRO_10', input_type, - input_label: { + label: { en: 'I should not do my normal work with my present pain.', nl: '', }, diff --git a/todo/oswestry/definition/oswestry_inputs.ts b/todo/oswestry/definition/oswestry_inputs.ts index 5ac53ab..75aca9f 100644 --- a/todo/oswestry/definition/oswestry_inputs.ts +++ b/todo/oswestry/definition/oswestry_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -export const input_type: NumberInputType = { +export const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0 }, @@ -16,7 +16,7 @@ export const input_type: NumberInputType = { export const OSWESTRY_INPUTS: Array = [ { input_id: '1_pain', - input_label: { + label: { en: 'Pain intensity', nl: '', }, @@ -25,7 +25,7 @@ export const OSWESTRY_INPUTS: Array = [ }, { input_id: '2_personal_care', - input_label: { + label: { en: 'Personal care (washing, dressing etc)', nl: '', }, @@ -34,7 +34,7 @@ export const OSWESTRY_INPUTS: Array = [ }, { input_id: '3_lifting', - input_label: { + label: { en: 'Lifting', nl: '', }, @@ -43,7 +43,7 @@ export const OSWESTRY_INPUTS: Array = [ }, { input_id: '4_running', - input_label: { + label: { en: 'Walking', nl: '', }, @@ -52,7 +52,7 @@ export const OSWESTRY_INPUTS: Array = [ }, { input_id: '5_sitting', - input_label: { + label: { en: 'Sitting', nl: '', }, @@ -61,7 +61,7 @@ export const OSWESTRY_INPUTS: Array = [ }, { input_id: '6_standing', - input_label: { + label: { en: 'Standing', nl: '', }, @@ -70,7 +70,7 @@ export const OSWESTRY_INPUTS: Array = [ }, { input_id: '7_sleep', - input_label: { + label: { en: 'Sleeping', nl: '', }, @@ -79,7 +79,7 @@ export const OSWESTRY_INPUTS: Array = [ }, { input_id: '8_sex_life', - input_label: { + label: { en: 'Sex life (if applicable)', nl: '', }, @@ -88,7 +88,7 @@ export const OSWESTRY_INPUTS: Array = [ }, { input_id: '9_social_life', - input_label: { + label: { en: 'Social life', nl: '', }, @@ -97,7 +97,7 @@ export const OSWESTRY_INPUTS: Array = [ }, { input_id: '10_travel', - input_label: { + label: { en: 'Travelling', nl: '', }, diff --git a/todo/oxford_hip_score/definition/oxford_hip_score_inputs.ts b/todo/oxford_hip_score/definition/oxford_hip_score_inputs.ts index b67179d..e95b2c6 100644 --- a/todo/oxford_hip_score/definition/oxford_hip_score_inputs.ts +++ b/todo/oxford_hip_score/definition/oxford_hip_score_inputs.ts @@ -4,12 +4,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_01', required: true, - input_label: { + label: { en: 'How would you describe the pain you usually had from your hip?', fr: 'Comment décririez-vous la douleur que vous habituellement ressentie dans votre hanche?', nl: 'Hoe zou u de pijn omschrijven die u normaal in/rond uw heup heeft?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -38,12 +38,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_02', required: true, - input_label: { + label: { en: 'Have you had any trouble with washing and drying yourself (all over) because of your hip?', fr: 'Avez-vous eu des difficultés pour vous laver et vous sécher le corps vous-même (des pieds à la tête) à cause de votre hanche?', nl: 'Heeft u, door uw heup, moeite met het wassen en afdrogen van uw hele lichaam?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -92,12 +92,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_03', required: true, - input_label: { + label: { en: 'Have you had any trouble getting in and out of a car or using public transport because of your hip? (whichever you tend to use)', fr: 'Avez-vous eu des difficultés à cause de votre hanche pour entrer ou sortir d’une voiture ou pour utiliser les transports en commun (quelque soit le mode de transport utilisé)?', nl: 'Heeft u, door uw heup, moeite bij het in en uit stappen van de auto, trein, bus of ander openbaar vervoer?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -146,12 +146,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_04', required: true, - input_label: { + label: { en: 'Have you been able to put on a pair of socks, stockings or tights?', fr: 'Avez-vous été capable de mettre seul(e) vos bas, collants ou chaussettes?', nl: 'Kunt u zelf uw sokken, kousen of panty`s aantrekken?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -200,12 +200,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_05', required: true, - input_label: { + label: { en: 'Could you do the household shopping on your own?', fr: 'Avez-vous pu faire tout(e) seul(e) des courses pour la maison?', nl: 'Kunt u zelf uw dagelijkse boodschappen doen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -254,12 +254,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_06', required: true, - input_label: { + label: { en: 'For how long have you been able to walk before pain from your hip becomes severe? (with or without a stick)', fr: 'Combien de temps pouviez-vous marcher (sans vous arrêter) avant que la douleur dans votre hanche ne devienne très importante ? (avec ou sans canne)?', nl: 'Hoe lang kunt u lopen (met of zonder stok) voordat de pijn in/rond uw heup ernstig wordt?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -308,12 +308,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_07', required: true, - input_label: { + label: { en: 'Have you been able to climb a flight of stairs?', fr: 'Avez-vous pu monter un étage par les escaliers?', nl: 'Kunt u trap lopen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -362,12 +362,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_08', required: true, - input_label: { + label: { en: 'After a meal (sat at a table), how painful has it been for you to stand up from a chair because of your hip?', fr: 'Apres être resté assis (pour un repas par exemple), quel degré de douleur avez-vous ressenti en vous levant de la chaise à cause de votre hanche?', nl: 'Hoe pijnlijk is uw heup, als u na het eten aan tafel, uit uw stoel opstaat?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -416,12 +416,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_09', required: true, - input_label: { + label: { en: 'Have you been limping when walking, because of your hip?', fr: 'Avez-vous boité en marchant, à cause de votre hanche?', nl: 'Trekt u, vanwege uw heup, met uw been tijdens het lopen (afgelopen 4 weken)?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -466,12 +466,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_10', required: true, - input_label: { + label: { en: 'Have you had any sudden, severe pain - "shooting", "stabbing" or "spasms" - from the affected hip?', fr: 'Avez-vous ressenti au niveau de votre hanche malade (ou opérée) une douleur soudaine, vive et intense (en coup de poignard, spasme, en vrille, etc...)?', nl: 'Heeft u wel eens dagen waarop u plotselinge, ernstige pijn (scheuten, steken en/of krampen) in/rond uw heup heeft?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -520,12 +520,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_11', required: true, - input_label: { + label: { en: 'How much has pain from your hip interfered with your usual work (including housework)?', fr: 'La douleur de votre hanche vous a-t-elle gêné(e) dans votre travail ou vos activités habituelles (taches ménagères comprises)?', nl: 'In hoeverre beïnvloedt de pijn in uw heup uw dagelijkse werk (inclusief huishoudelijk werk)?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -551,12 +551,12 @@ export const OHS_INPUTS: Array = [ { input_id: 'ohs_12', required: true, - input_label: { + label: { en: 'Have you been troubled by pain from your hip in bed at night?', fr: 'Avez-vous souffert de douleurs de votre hanche au lit la nuit?', nl: 'Heeft u wel eens nachten waarop u in bed last heeft van pijn in/rond uw heup?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/oxford_knee_score/definition/oxford_knee_score_inputs.ts b/todo/oxford_knee_score/definition/oxford_knee_score_inputs.ts index f8267f5..ddc2428 100644 --- a/todo/oxford_knee_score/definition/oxford_knee_score_inputs.ts +++ b/todo/oxford_knee_score/definition/oxford_knee_score_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -export const input_type: NumberInputType = { +export const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0 }, @@ -16,7 +16,7 @@ export const OKS_INPUTS: Array = [ { input_id: '1_usual_knee_pain', input_type, - input_label: { + label: { en: 'During the past 4 weeks...How would you describe the pain you usually have from your knee?', nl: '', }, @@ -25,7 +25,7 @@ export const OKS_INPUTS: Array = [ { input_id: '2_washing_and_trouble_washing', input_type, - input_label: { + label: { en: 'During the past 4 weeks...Have you had any trouble with washing and drying yourself (all over) because of your knee?', nl: '', }, @@ -34,7 +34,7 @@ export const OKS_INPUTS: Array = [ { input_id: '3_car_problem', input_type, - input_label: { + label: { en: 'During the past 4 weeks...Have you had any trouble getting in and out of a car or using public transport because of your knee? (whichever you would tend to use)', nl: '', }, @@ -43,7 +43,7 @@ export const OKS_INPUTS: Array = [ { input_id: '4_time_before_pain', input_type, - input_label: { + label: { en: 'During the past 4 weeks...For how long have you been able to walk before pain from your knee becomes severe? (with or without a stick)', nl: '', }, @@ -52,7 +52,7 @@ export const OKS_INPUTS: Array = [ { input_id: '5_table_pain', input_type, - input_label: { + label: { en: 'During the past 4 weeks...After a meal (sat at a table), how painful has it been for you to stand up from a chair because of your knee?', nl: '', }, @@ -61,7 +61,7 @@ export const OKS_INPUTS: Array = [ { input_id: '6_have_you_been_limping_when_walking', input_type, - input_label: { + label: { en: 'During the past 4 weeks...Have you been limping when walking, because of your knee?', nl: '', }, @@ -70,7 +70,7 @@ export const OKS_INPUTS: Array = [ { input_id: '7_kneel_down_and_get_up', input_type, - input_label: { + label: { en: 'During the past 4 weeks...Could you kneel down and get up again afterwards?', nl: '', }, @@ -79,7 +79,7 @@ export const OKS_INPUTS: Array = [ { input_id: '8_trouble_with_night_pain', input_type, - input_label: { + label: { en: 'During the past 4 weeks...Have you been troubled by pain from your knee in bed at night?', nl: '', }, @@ -88,7 +88,7 @@ export const OKS_INPUTS: Array = [ { input_id: '9_usual_pain_work', input_type, - input_label: { + label: { en: 'During the past 4 weeks...How much has pain from your knee interfered with your usual work (including housework)?', nl: '', }, @@ -97,7 +97,7 @@ export const OKS_INPUTS: Array = [ { input_id: '10_knee_sudden_failure', input_type, - input_label: { + label: { en: "During the past 4 weeks...Have you felt that your knee might suddenly 'give way' or let you down?", nl: '', }, @@ -106,7 +106,7 @@ export const OKS_INPUTS: Array = [ { input_id: '11_household_shopping', input_type, - input_label: { + label: { en: 'During the past 4 weeks...Could you do the household shopping on your own?', nl: '', }, @@ -115,7 +115,7 @@ export const OKS_INPUTS: Array = [ { input_id: '12_flight_of_stairs', input_type, - input_label: { + label: { en: 'During the past 4 weeks...Could you walk down one flight of stairs?', nl: '', }, diff --git a/todo/packyears/definition/packyears_inputs.ts b/todo/packyears/definition/packyears_inputs.ts index 5504aae..533f361 100644 --- a/todo/packyears/definition/packyears_inputs.ts +++ b/todo/packyears/definition/packyears_inputs.ts @@ -3,13 +3,13 @@ import type { InputType } from '../../../src/types/calculations.types' export const PACKYEARS_INPUTS: Array = [ { input_id: 'cigarettes_per_day', - input_label: { + label: { nl: 'Hoeveel sigaretten rook of rookte je gemiddeld per dag?', en: 'On average, how many cigarettes do or did you smoke per day?', fr: 'En moyenne, combien de cigarettes fumiez-vous ou fumiez-vous par jour?', de: 'Wie viele Zigaretten haben oder haben Sie durchschnittlich pro Tag geraucht?', }, - input_type: { + type: { type: 'number', range: { min: { value: 0 }, max: { value: 100 } }, }, @@ -24,13 +24,13 @@ export const PACKYEARS_INPUTS: Array = [ }, { input_id: 'number_years_smoking', - input_label: { + label: { nl: 'Hoeveel jaar rook je of heb je gerookt?', en: 'For how many years have you been smoking or have you smoked?', fr: "Depuis combien d'années fumez-vous ou fumez-vous?", de: 'Seit wie vielen Jahren rauchst du oder hast du geraucht?', }, - input_type: { + type: { type: 'number', range: { min: { value: 0 }, max: { value: 100 } }, }, diff --git a/todo/panss_6/definition/panss_6_inputs.ts b/todo/panss_6/definition/panss_6_inputs.ts index a96d2d4..4fe7322 100644 --- a/todo/panss_6/definition/panss_6_inputs.ts +++ b/todo/panss_6/definition/panss_6_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -50,42 +50,42 @@ const input_type: NumberInputType = { export const PANSS_6_INPUTS: Array = [ { input_id: 'PANSS_6_Q01_DELUSIONS', - input_label: { + label: { en: 'Delusions', }, input_type, }, { input_id: 'PANSS_6_Q02_CONCEPTUAL_DISORGANIZATIONS', - input_label: { + label: { en: 'Conceptual disorganization', }, input_type, }, { input_id: 'PANSS_6_Q03_HALLUCINATORY_BEHAVIOR', - input_label: { + label: { en: 'Hallucinatory behavior', }, input_type, }, { input_id: 'PANSS_6_Q04_BLUNTED_AFFECT', - input_label: { + label: { en: 'Blunted affect', }, input_type, }, { input_id: 'PANSS_6_Q05_PASSIVE_SOCIAL_WITHDRAWAL', - input_label: { + label: { en: 'Passive/apathetic social withdrawal', }, input_type, }, { input_id: 'PANSS_6_Q06_LACK_OF_SPONTANEITY', - input_label: { + label: { en: 'Lack of spontaneity and flow of conversation', }, input_type, diff --git a/todo/paq_c/definition/paq_c_inputs.ts b/todo/paq_c/definition/paq_c_inputs.ts index e9fbc5d..baf9afb 100644 --- a/todo/paq_c/definition/paq_c_inputs.ts +++ b/todo/paq_c/definition/paq_c_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -export const input_type: NumberInputType = { +export const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 1 }, diff --git a/todo/pci/definition/pci_subscales.ts b/todo/pci/definition/pci_subscales.ts index 2e66e69..67279ad 100644 --- a/todo/pci/definition/pci_subscales.ts +++ b/todo/pci/definition/pci_subscales.ts @@ -5,7 +5,7 @@ const ALLOWED_ANSWERS = [{ value: 1 }, { value: 2 }, { value: 3 }, { value: 4 }] //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }) export const PCI_SUBSCALES: DefaultSubscaleType[] = [ diff --git a/todo/pcl_5/definition/pcl_5_inputs.ts b/todo/pcl_5/definition/pcl_5_inputs.ts index d0d1d0e..1f0fe41 100644 --- a/todo/pcl_5/definition/pcl_5_inputs.ts +++ b/todo/pcl_5/definition/pcl_5_inputs.ts @@ -44,142 +44,142 @@ const ANSWER_OPTIONS: NumberInputType = { export const PCL5_INPUTS: Array = [ { input_id: 'PCL5_Q01', - input_label: { + label: { en: 'In the past month, how much were you bothered by: repeated, disturbing, and unwanted memories of the stressful experience?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q02', - input_label: { + label: { en: 'In the past month, how much were you bothered by: repeated, disturbing dreams of the stressful experience?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q03', - input_label: { + label: { en: 'In the past month, how much were you bothered by: suddenly feeling or acting as if the stressful experience were actually happening again (as if you were actually back there reliving it)?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q04', - input_label: { + label: { en: 'In the past month, how much were you bothered by: feeling very upset when something reminded you of the stressful experience?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q05', - input_label: { + label: { en: 'In the past month, how much were you bothered by: having strong physical reactions when something reminded you of the stressful experience (for example, heart pounding, trouble breathing, sweating)?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q06', - input_label: { + label: { en: 'In the past month, how much were you bothered by: avoiding memories, thoughts, or feelings related to the stressful experience?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q07', - input_label: { + label: { en: 'In the past month, how much were you bothered by: avoiding external reminders of the stressful experience (for example, people, places, conversations, activities, objects, or situations)?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q08', - input_label: { + label: { en: 'In the past month, how much were you bothered by: trouble remembering important parts of the stressful experience?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q09', - input_label: { + label: { en: 'In the past month, how much were you bothered by: having strong negative beliefs about yourself, other people, or the world (for example, having thoughts such as: I am bad, there is something seriously wrong with me, no one can be trusted, the world is completely dangerous)?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q10', - input_label: { + label: { en: 'In the past month, how much were you bothered by: blaming yourself or someone else for the stressful experience or what happened after it?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q11', - input_label: { + label: { en: 'In the past month, how much were you bothered by: having strong negative feelings such as fear, horror, anger, guilt, or shame?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q12', - input_label: { + label: { en: 'In the past month, how much were you bothered by: loss of interest in activities that you used to enjoy?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q13', - input_label: { + label: { en: 'In the past month, how much were you bothered by: feeling distant or cut off from other people?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q14', - input_label: { + label: { en: 'In the past month, how much were you bothered by: trouble experiencing positive feelings (for example, being unable to feel happiness or have loving feelings for people close to you)?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q15', - input_label: { + label: { en: 'In the past month, how much were you bothered by: irritable behavior, angry outbursts, or acting aggressively?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q16', - input_label: { + label: { en: 'In the past month, how much were you bothered by: taking too many risks or doing things that could cause you harm?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q17', - input_label: { + label: { en: 'In the past month, how much were you bothered by: being “superalert” or watchful or on guard?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q18', - input_label: { + label: { en: 'In the past month, how much were you bothered by: feeling jumpy or easily startled?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q19', - input_label: { + label: { en: 'In the past month, how much were you bothered by: having difficulty concentrating?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, { input_id: 'PCL5_Q20', - input_label: { + label: { en: 'In the past month, how much were you bothered by: trouble falling or staying asleep?', }, - input_type: ANSWER_OPTIONS, + type: ANSWER_OPTIONS, }, ] diff --git a/todo/pcs/definition/pcs_scales.ts b/todo/pcs/definition/pcs_scales.ts index 4deeb1e..f0322ea 100644 --- a/todo/pcs/definition/pcs_scales.ts +++ b/todo/pcs/definition/pcs_scales.ts @@ -11,7 +11,7 @@ const ALLOWED_ANSWERS = [ //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }) export const PCS_SCALES: Array = [ diff --git a/todo/pdi/definition/pdi_inputs.ts b/todo/pdi/definition/pdi_inputs.ts index 7764df9..6193bcf 100644 --- a/todo/pdi/definition/pdi_inputs.ts +++ b/todo/pdi/definition/pdi_inputs.ts @@ -1,7 +1,7 @@ import { type InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', component: 'slider', range: { @@ -19,7 +19,7 @@ const input_type: NumberInputType = { export const PDI_INPUTS: Array = [ { input_id: 'Q01', - input_label: { + label: { en: 'Family and home responsibilities: activities related to home and family', nl: 'Familiare en huishoudelijke verantwoordelijkheden: Deze categorie houdt activiteiten in die te maken hebben met huishoudelijke werkzaamheden in en rond het huis (b.v. tuinieren e.d.) en verplichtingen ten aanzien van andere familieleden (b.v. kinderen naar school brengen e.d.).', }, @@ -27,7 +27,7 @@ export const PDI_INPUTS: Array = [ }, { input_id: 'Q02', - input_label: { + label: { en: 'Recreation: hobbies sports and other leisure time activities', nl: 'Recreatie: Deze categorie omvat activiteiten zoals hobby’s, sport en andere vrije tijdsbestedingen.', }, @@ -35,7 +35,7 @@ export const PDI_INPUTS: Array = [ }, { input_id: 'Q03', - input_label: { + label: { en: 'Social activity: participation with friends and acquaintances other than family members', nl: 'Sociale activiteiten: Deze categorie heeft te maken met samen met vrienden en/of familie uit te voeren activiteiten, zoals feestjes, theater of concertbezoek, uit eten gaan en andere sociale gelegenheden.', }, @@ -43,7 +43,7 @@ export const PDI_INPUTS: Array = [ }, { input_id: 'Q04', - input_label: { + label: { en: 'Occupation: activities partly or directly related to working including housework or volunteering', nl: 'Beroep: Deze categorie omvat activiteiten die geheel of gedeeltelijk te maken hebben met uw beroep. Ook niet-betaald werk, zoals huishouden of vrijwilligers werk, hoort hierbij.', }, @@ -51,7 +51,7 @@ export const PDI_INPUTS: Array = [ }, { input_id: 'Q05', - input_label: { + label: { en: 'Sexual behavior: frequency and quality of sex life?', nl: 'Sexuele activiteiten: Deze categorie vraagt naar de invloed op de frequentie en de kwaliteit van uw sexleven.', }, @@ -59,7 +59,7 @@ export const PDI_INPUTS: Array = [ }, { input_id: 'Q06', - input_label: { + label: { en: 'Self care: personal maintenance and independent daily living (bathing dressing etc.)', nl: 'Zelfverzorging: Deze categorie omvat activiteiten op het gebied van persoonlijke verzorging en onafhankelijke kunnen uitvoeren van allerlei dagelijkse activiteiten (b.v. douchen, aankleden, autorijden)', }, @@ -67,7 +67,7 @@ export const PDI_INPUTS: Array = [ }, { input_id: 'Q07', - input_label: { + label: { en: 'Life-support activity: basic life-supporting behaviors (eating sleeping breathing etc.)', nl: 'Basale levensbehoeftes: Deze categorie omvat activiteiten die de vitale levensfuncties omvatten, zoals eten, slapen en ademhalen.', }, diff --git a/todo/pdq_8/definition/pdq_8_inputs.ts b/todo/pdq_8/definition/pdq_8_inputs.ts index fb7f77f..c96cf9a 100644 --- a/todo/pdq_8/definition/pdq_8_inputs.ts +++ b/todo/pdq_8/definition/pdq_8_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -export const input_type: NumberInputType = { +export const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0 }, diff --git a/todo/phq_2/definition/phq_2_inputs.ts b/todo/phq_2/definition/phq_2_inputs.ts index e583b7e..470c5fb 100644 --- a/todo/phq_2/definition/phq_2_inputs.ts +++ b/todo/phq_2/definition/phq_2_inputs.ts @@ -3,11 +3,11 @@ import type { InputType } from '../../../src/types/calculations.types' export const PHQ2_INPUTS: Array = [ { input_id: 'PHQ2_Q01', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by little interest or pleasure in doing things?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van weinig interesse of plezier in activiteiten?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -34,11 +34,11 @@ export const PHQ2_INPUTS: Array = [ }, { input_id: 'PHQ2_Q02', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by feeling down, depressed, or hopeless?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van u neerslachtig, depressief of wanhopig voelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/phq_4/definition/phq_4_inputs.ts b/todo/phq_4/definition/phq_4_inputs.ts index bc1507d..ba71245 100644 --- a/todo/phq_4/definition/phq_4_inputs.ts +++ b/todo/phq_4/definition/phq_4_inputs.ts @@ -3,10 +3,10 @@ import type { InputType } from '../../../src/types/calculations.types' export const PHQ4_INPUTS: Array = [ { input_id: 'PHQ4_Q01', - input_label: { + label: { en: 'Over the last two weeks, how often have you been bothered by feeling nervous, anxious or on edge?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -33,10 +33,10 @@ export const PHQ4_INPUTS: Array = [ }, { input_id: 'PHQ4_Q02', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by not being able to stop or control worrying?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -63,10 +63,10 @@ export const PHQ4_INPUTS: Array = [ }, { input_id: 'PHQ4_Q03', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by feeling down, depressed or hopeless?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -93,10 +93,10 @@ export const PHQ4_INPUTS: Array = [ }, { input_id: 'PHQ4_Q04', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by little interest or pleasure in doing things?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/phq_8/definition/phq_8_inputs.ts b/todo/phq_8/definition/phq_8_inputs.ts index 6e5ec0a..0ed87a2 100644 --- a/todo/phq_8/definition/phq_8_inputs.ts +++ b/todo/phq_8/definition/phq_8_inputs.ts @@ -3,11 +3,11 @@ import type { InputType } from '../../../src/types/calculations.types' export const PHQ8_INPUTS: Array = [ { input_id: 'PHQ8_Q01', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by little interest or pleasure in doing things?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van weinig interesse of plezier in activiteiten?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -34,11 +34,11 @@ export const PHQ8_INPUTS: Array = [ }, { input_id: 'PHQ8_Q02', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by feeling down, depressed, or hopeless?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van u neerslachtig, depressief of wanhopig voelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -65,11 +65,11 @@ export const PHQ8_INPUTS: Array = [ }, { input_id: 'PHQ8_Q03', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by trouble falling or staying asleep, or sleeping too much?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van moeilijk inslapen, moeilijk doorslapen of te veel slapen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -96,11 +96,11 @@ export const PHQ8_INPUTS: Array = [ }, { input_id: 'PHQ8_Q04', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by feeling tired or having little energy?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van u moe voelen of gebrek aan energie hebben?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -127,11 +127,11 @@ export const PHQ8_INPUTS: Array = [ }, { input_id: 'PHQ8_Q05', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by poor appetite or overeating?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van weinig eetlust of overmatig eten.?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -158,11 +158,11 @@ export const PHQ8_INPUTS: Array = [ }, { input_id: 'PHQ8_Q06', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by feeling bad about yourself or that you are a failure or have let yourself or your family down?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van een slecht gevoel hebben over uzelf, het gevoel hebben dat u een mislukkeling bent of dat u zichzelf of uw familie teleurgesteld hebt?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -189,11 +189,11 @@ export const PHQ8_INPUTS: Array = [ }, { input_id: 'PHQ8_Q07', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by trouble concentrating on things, such as reading the newspaper or watching television?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van problemen om u te concentreren, bijvoorbeeld om de krant te lezen of om tv te kijken?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -220,11 +220,11 @@ export const PHQ8_INPUTS: Array = [ }, { input_id: 'PHQ8_Q08', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by moving or speaking so slowly that other people could have noticed. Or the opposite being so fidgety or restless that you have been moving around a lot more than usual?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van zo traag bewegen of zo langzaam spreken dat andere mensen dit opgemerkt hebben? Of het tegenovergestelde: zo zenuwachtig of rusteloos zijn dat u veel meer bewoog dan gebruikelijk?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/phq_9/definition/phq_9_inputs.ts b/todo/phq_9/definition/phq_9_inputs.ts index fb1de5d..fe02702 100644 --- a/todo/phq_9/definition/phq_9_inputs.ts +++ b/todo/phq_9/definition/phq_9_inputs.ts @@ -3,11 +3,11 @@ import type { InputType } from '../../../src/types/calculations.types' export const PHQ9_INPUTS: Array = [ { input_id: 'PHQ9_Q01', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by little interest or pleasure in doing things?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van weinig interesse of plezier in activiteiten?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -34,11 +34,11 @@ export const PHQ9_INPUTS: Array = [ }, { input_id: 'PHQ9_Q02', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by feeling down, depressed, or hopeless?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van u neerslachtig, depressief of wanhopig voelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -65,11 +65,11 @@ export const PHQ9_INPUTS: Array = [ }, { input_id: 'PHQ9_Q03', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by trouble falling or staying asleep, or sleeping too much?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van moeilijk inslapen, moeilijk doorslapen of te veel slapen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -96,11 +96,11 @@ export const PHQ9_INPUTS: Array = [ }, { input_id: 'PHQ9_Q04', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by feeling tired or having little energy?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van u moe voelen of gebrek aan energie hebben?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -127,11 +127,11 @@ export const PHQ9_INPUTS: Array = [ }, { input_id: 'PHQ9_Q05', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by poor appetite or overeating?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van weinig eetlust of overmatig eten.?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -158,11 +158,11 @@ export const PHQ9_INPUTS: Array = [ }, { input_id: 'PHQ9_Q06', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by feeling bad about yourself or that you are a failure or have let yourself or your family down?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van een slecht gevoel hebben over uzelf, het gevoel hebben dat u een mislukkeling bent of dat u zichzelf of uw familie teleurgesteld hebt?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -189,11 +189,11 @@ export const PHQ9_INPUTS: Array = [ }, { input_id: 'PHQ9_Q07', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by trouble concentrating on things, such as reading the newspaper or watching television?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van problemen om u te concentreren, bijvoorbeeld om de krant te lezen of om tv te kijken?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -220,11 +220,11 @@ export const PHQ9_INPUTS: Array = [ }, { input_id: 'PHQ9_Q08', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by moving or speaking so slowly that other people could have noticed. Or the opposite being so fidgety or restless that you have been moving around a lot more than usual?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van zo traag bewegen of zo langzaam spreken dat andere mensen dit opgemerkt hebben? Of het tegenovergestelde: zo zenuwachtig of rusteloos zijn dat u veel meer bewoog dan gebruikelijk?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { @@ -251,11 +251,11 @@ export const PHQ9_INPUTS: Array = [ }, { input_id: 'PHQ9_Q09', - input_label: { + label: { en: 'Over the last 2 weeks, how often have you been bothered by thoughts that you would be better off dead, or of hurting yourself?', nl: 'Hoe vaak hebt u in de afgelopen 2 weken last gehad van de gedachte dat u beter dood zou kunnen zijn of de gedachte uzelf op een bepaalde manier pijn te doen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/physical_activity_measurements/definition/physical_activity_measurements_inputs.ts b/todo/physical_activity_measurements/definition/physical_activity_measurements_inputs.ts index 058f15e..8459691 100644 --- a/todo/physical_activity_measurements/definition/physical_activity_measurements_inputs.ts +++ b/todo/physical_activity_measurements/definition/physical_activity_measurements_inputs.ts @@ -26,42 +26,42 @@ const ACTIVITY_PER_DAY_IN_MINUTES: NumberInputType = { export const PA_INPUTS: Array = [ { input_id: 'LIGHT_PA_DAYS_PER_WEEK', - input_type: HOW_MANY_DAYS_PER_WEEK, + type: HOW_MANY_DAYS_PER_WEEK, info: { en: 'Days per week of light physical activity' }, format: 'days per week', required: false, }, { input_id: 'LIGHT_PA_MINUTES_PER_DAY', - input_type: ACTIVITY_PER_DAY_IN_MINUTES, + type: ACTIVITY_PER_DAY_IN_MINUTES, info: { en: 'Minutes per day of light physical activity' }, format: 'minutes per day', required: false, }, { input_id: 'MODERATE_PA_DAYS_PER_WEEK', - input_type: HOW_MANY_DAYS_PER_WEEK, + type: HOW_MANY_DAYS_PER_WEEK, info: { en: 'Days per week of moderate physical activity' }, format: 'days per week', required: false, }, { input_id: 'MODERATE_PA_MINUTES_PER_DAY', - input_type: ACTIVITY_PER_DAY_IN_MINUTES, + type: ACTIVITY_PER_DAY_IN_MINUTES, info: { en: 'Minutes per day of moderate physical activity' }, format: 'minutes per day', required: false, }, { input_id: 'VIGOROUS_PA_DAYS_PER_WEEK', - input_type: HOW_MANY_DAYS_PER_WEEK, + type: HOW_MANY_DAYS_PER_WEEK, info: { en: 'Days per week of vigorous physical activity' }, format: 'days per week', required: false, }, { input_id: 'VIGOROUS_PA_MINUTES_PER_DAY', - input_type: ACTIVITY_PER_DAY_IN_MINUTES, + type: ACTIVITY_PER_DAY_IN_MINUTES, info: { en: 'Minutes per day of vigorous physical activity' }, format: 'minutes per day', required: false, diff --git a/todo/posas_observer/definition/posas_observer_inputs.ts b/todo/posas_observer/definition/posas_observer_inputs.ts index 280f290..80502a1 100644 --- a/todo/posas_observer/definition/posas_observer_inputs.ts +++ b/todo/posas_observer/definition/posas_observer_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 1 }, diff --git a/todo/posas_patient/definition/posas_patient_inputs.ts b/todo/posas_patient/definition/posas_patient_inputs.ts index cd4f74d..43733e4 100644 --- a/todo/posas_patient/definition/posas_patient_inputs.ts +++ b/todo/posas_patient/definition/posas_patient_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 1 }, diff --git a/todo/pro2/definition/pro2_inputs.ts b/todo/pro2/definition/pro2_inputs.ts index b0c3e33..7962c11 100644 --- a/todo/pro2/definition/pro2_inputs.ts +++ b/todo/pro2/definition/pro2_inputs.ts @@ -10,7 +10,7 @@ export const SUBSCORE_QUESTIONS = ['STOOL_FREQUENCY', 'ABDOMINAL_PAIN'] export const PRO2_INPUTS: Array = [ { input_id: 'STOOL_FREQUENCY', - input_type: { + type: { type: 'number', range: { min: { value: 0 }, @@ -25,7 +25,7 @@ export const PRO2_INPUTS: Array = [ }, { input_id: 'ABDOMINAL_PAIN', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'None' } }, @@ -42,7 +42,7 @@ export const PRO2_INPUTS: Array = [ }, { input_id: 'GENERAL_WELL_BEING', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Generally well' } }, @@ -60,7 +60,7 @@ export const PRO2_INPUTS: Array = [ }, { input_id: 'JOINT_PROBLEMS', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No' } }, @@ -72,7 +72,7 @@ export const PRO2_INPUTS: Array = [ }, { input_id: 'SKIN_PROBLEMS', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No' } }, @@ -84,7 +84,7 @@ export const PRO2_INPUTS: Array = [ }, { input_id: 'EYE_PROBLEMS', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No' } }, @@ -96,7 +96,7 @@ export const PRO2_INPUTS: Array = [ }, { input_id: 'MOUTH_SORES', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No' } }, diff --git a/todo/pro_ctcae/definition/pro_ctcae_symptoms.ts b/todo/pro_ctcae/definition/pro_ctcae_symptoms.ts index ff4076c..b5c543d 100644 --- a/todo/pro_ctcae/definition/pro_ctcae_symptoms.ts +++ b/todo/pro_ctcae/definition/pro_ctcae_symptoms.ts @@ -26,7 +26,7 @@ const NOT_APPLICABLE = { value: 888, label: { en: 'Not applicable' } } //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { type: 'number', allowed_answers: DEFAULT_ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: DEFAULT_ALLOWED_ANSWERS }, }) /** @@ -69,7 +69,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_5_voice_quality_changes_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -145,7 +145,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_12_gas_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -293,7 +293,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_24_rash_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -329,7 +329,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_29_hives_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -347,7 +347,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_31_nail_loss_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -359,7 +359,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_32_nail_ridging_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -371,7 +371,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_33_nail_discoloration_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -383,7 +383,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_34_sensitivity_to_sunlight_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -395,7 +395,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_35_bed_pressure_sores_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -407,7 +407,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_36_radiation_skin_reaction_severity', - input_type: { + type: { type: 'number', allowed_answers: [...DEFAULT_ALLOWED_ANSWERS, NOT_APPLICABLE], }, @@ -419,7 +419,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_37_skin_darkening_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -431,7 +431,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_38_stretch_marks_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -482,7 +482,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_42_flashing_lights_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -494,7 +494,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_43_visual_floaters_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -717,7 +717,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_57_irregular_periods_vaginal_bleeding_boolean', - input_type: { + type: { type: 'number', allowed_answers: [...ALLOWED_ANSWERS_FOR_BOOLEAN, NOT_APPLICABLE], }, @@ -729,7 +729,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_58_missed_expected_menstruation_period_boolean', - input_type: { + type: { type: 'number', allowed_answers: [...ALLOWED_ANSWERS_FOR_BOOLEAN, NOT_APPLICABLE], }, @@ -785,7 +785,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_64_change_in_usual_urine_color_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -810,7 +810,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_66_achieve_and_maintain_erection_severity', - input_type: { + type: { type: 'number', allowed_answers: [ ...DEFAULT_ALLOWED_ANSWERS, @@ -826,7 +826,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_67_ejaculation_frequency', - input_type: { + type: { type: 'number', allowed_answers: [ ...DEFAULT_ALLOWED_ANSWERS, @@ -842,7 +842,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_68_decreased_libido_severity', - input_type: { + type: { type: 'number', allowed_answers: [ ...DEFAULT_ALLOWED_ANSWERS, @@ -858,7 +858,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_69_delayed_orgasm_boolean', - input_type: { + type: { type: 'number', allowed_answers: [ ...ALLOWED_ANSWERS_FOR_BOOLEAN, @@ -874,7 +874,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_70_unable_to_have_orgasm_boolean', - input_type: { + type: { type: 'number', allowed_answers: [ ...ALLOWED_ANSWERS_FOR_BOOLEAN, @@ -890,7 +890,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_71_pain_w_sexual_intercourse_severity', - input_type: { + type: { type: 'number', allowed_answers: [ ...DEFAULT_ALLOWED_ANSWERS, @@ -912,7 +912,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_73_bruising_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -950,7 +950,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_76_decreased_sweating_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, @@ -988,7 +988,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_79_pain_and_swelling_boolean', - input_type: { + type: { type: 'number', allowed_answers: [...ALLOWED_ANSWERS_FOR_BOOLEAN, NOT_APPLICABLE], }, @@ -1006,7 +1006,7 @@ export const PRO_CTCAE_SYMPTOMS: Array = [ input_ids_in_subscale: [ { input_id: 'proctcae_81_other_symptoms_boolean', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_FOR_BOOLEAN, }, diff --git a/todo/promis_10/definition/promis_10_inputs.ts b/todo/promis_10/definition/promis_10_inputs.ts index d94a8aa..33a499b 100644 --- a/todo/promis_10/definition/promis_10_inputs.ts +++ b/todo/promis_10/definition/promis_10_inputs.ts @@ -5,11 +5,11 @@ export const SUBSCORE_QUESTIONS = ['STOOL_FREQUENCY', 'ABDOMINAL_PAIN'] export const PROMIS_10_INPUTS: Array = [ { input_id: 'PROMIS_10_Q01', - input_label: { + label: { en: 'In general, would you say your health is:', nl: 'Hoe zou u uw gezondheid in het algemeen beoordelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 5, label: { en: 'Excellent', nl: 'Uitstekend' } }, @@ -22,11 +22,11 @@ export const PROMIS_10_INPUTS: Array = [ }, { input_id: 'PROMIS_10_Q02', - input_label: { + label: { en: 'In general, would you say your quality of life is:', nl: 'Hoe zou u de kwaliteit van uw leven in het algemeen beoordelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 5, label: { en: 'Excellent', nl: 'Uitstekend' } }, @@ -39,11 +39,11 @@ export const PROMIS_10_INPUTS: Array = [ }, { input_id: 'PROMIS_10_Q03', - input_label: { + label: { en: 'In general, how would you rate your physical health?', nl: 'Hoe zou u uw lichamelijke gezondheid in het algemeen beoordelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 5, label: { en: 'Excellent', nl: 'Uitstekend' } }, @@ -56,11 +56,11 @@ export const PROMIS_10_INPUTS: Array = [ }, { input_id: 'PROMIS_10_Q04', - input_label: { + label: { en: 'In general, how would you rate your mental health, including your mood and your ability to think?', nl: 'Hoe zou u uw geestelijke gezondheid, met inbegrip van uw humeur en uw denkvermogen, beoordelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 5, label: { en: 'Excellent', nl: 'Uitstekend' } }, @@ -73,11 +73,11 @@ export const PROMIS_10_INPUTS: Array = [ }, { input_id: 'PROMIS_10_Q05', - input_label: { + label: { en: 'In general, how would you rate your satisfaction with your social activities and relationships?', nl: 'Hoe tevreden bent u met uw sociale activiteiten en relaties in het algemeen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 5, label: { en: 'Excellent', nl: 'Uitstekend' } }, @@ -90,11 +90,11 @@ export const PROMIS_10_INPUTS: Array = [ }, { input_id: 'PROMIS_10_Q06', - input_label: { + label: { en: 'To what extent are you able to carry out your everyday physcial activities such as walking, climbing stairs, carrying groceries, or moving a chair?', nl: 'In hoeverre bent u in staat geweest uw dagelijkse activiteiten zoals wandelen, traplopen, het dragen van boodschappen, of het verplaatsen van een stoel uit te voeren?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 5, label: { en: 'Completely', nl: 'Uitstekend' } }, @@ -107,11 +107,11 @@ export const PROMIS_10_INPUTS: Array = [ }, { input_id: 'PROMIS_10_Q07RC', - input_label: { + label: { en: 'How would you rate your pain on average?', nl: 'Hoe zou u, gemiddeld gezien, uw pijn beoordelen?', }, - input_type: { + type: { type: 'number', component: 'slider', range: { @@ -134,11 +134,11 @@ export const PROMIS_10_INPUTS: Array = [ }, { input_id: 'PROMIS_10_Q08R', - input_label: { + label: { en: 'How would you rate your fatigue on average?', nl: 'Hoe zou u, gemiddeld gezien, uw vermoeidheid beoordelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 5, label: { en: 'None', nl: 'Geen' } }, @@ -151,11 +151,11 @@ export const PROMIS_10_INPUTS: Array = [ }, { input_id: 'PROMIS_10_Q09R', - input_label: { + label: { en: 'In general, please rate how well you carry out your usual social activities and roles. This includes activities at home, at work and in your community, and responsibilities as a parent, child, spouse, employee, friend, etc.', nl: 'Hoe goed gaat het uitvoeren van uw gebruikelijke sociale activiteiten en rollen in het algemeen? (Bv. activiteiten thuis, op het werk, in uw gemeenschap, en verantwoordelijkheden als ouder, kind, partner, werknemer, vriend, etc.).', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 5, label: { en: 'Excellent', nl: 'Uitstekend' } }, @@ -168,11 +168,11 @@ export const PROMIS_10_INPUTS: Array = [ }, { input_id: 'PROMIS_10_Q10R', - input_label: { + label: { en: 'How often have you been bothered by emotional problems such as feeling anxious, depressed or irritable?', nl: 'Hoe vaak hebt u last gehad van emotionele problemen zoals uzelf angstig, depressief or irriteerbaar voelen?', }, - input_type: { + type: { type: 'number', allowed_answers: [ { value: 5, label: { en: 'Never', nl: 'Nooit' } }, diff --git a/todo/prtee/definition/prtee_subscales.ts b/todo/prtee/definition/prtee_subscales.ts index 58d1a3c..a003d71 100644 --- a/todo/prtee/definition/prtee_subscales.ts +++ b/todo/prtee/definition/prtee_subscales.ts @@ -17,7 +17,7 @@ const ALLOWED_ANSWERS = [ //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }) export const PRTEE_SUBSCALES: Array = [ diff --git a/todo/psk/definition/psk_inputs.ts b/todo/psk/definition/psk_inputs.ts index 809bcb6..824a0f7 100644 --- a/todo/psk/definition/psk_inputs.ts +++ b/todo/psk/definition/psk_inputs.ts @@ -3,7 +3,7 @@ import type { InputType } from '../../../src/types/calculations.types' export const PSK_INPUTS: Array = [ { input_id: 'SCORE_FOR_ACTIVITY_01', - input_type: { + type: { type: 'number', range: { min: { value: 0 }, @@ -14,7 +14,7 @@ export const PSK_INPUTS: Array = [ }, { input_id: 'SCORE_FOR_ACTIVITY_02', - input_type: { + type: { type: 'number', range: { min: { value: 0 }, @@ -25,7 +25,7 @@ export const PSK_INPUTS: Array = [ }, { input_id: 'SCORE_FOR_ACTIVITY_03', - input_type: { + type: { type: 'number', range: { min: { value: 0 }, @@ -36,7 +36,7 @@ export const PSK_INPUTS: Array = [ }, { input_id: 'SCORE_FOR_ACTIVITY_04', - input_type: { + type: { type: 'number', range: { min: { value: 0 }, @@ -47,7 +47,7 @@ export const PSK_INPUTS: Array = [ }, { input_id: 'SCORE_FOR_ACTIVITY_05', - input_type: { + type: { type: 'number', range: { min: { value: 0 }, diff --git a/todo/psqi/definition/psqi_input.ts b/todo/psqi/definition/psqi_input.ts index 2caa7e8..9301b84 100644 --- a/todo/psqi/definition/psqi_input.ts +++ b/todo/psqi/definition/psqi_input.ts @@ -212,154 +212,154 @@ const INPUT_TYPES: Record = { export const PSQI_INPUT: Array = [ { input_id: 'Q01', - input_type: INPUT_TYPES.serie_7, - input_label: { + type: INPUT_TYPES.serie_7, + label: { en: 'During the past month, what time have you usually gone to bed at night? (In 24 hour format)', nl: 'Hoe laat ging u ’s avond meestal naar bed gedurende de afgelopen maand? (In 24-uursformaat)', }, }, { input_id: 'Q02', - input_type: INPUT_TYPES.serie_2, - input_label: { + type: INPUT_TYPES.serie_2, + label: { en: 'During the past month, how long (in minutes) has it usually taken you to fall asleep each night?', nl: 'Hoeveel minuten duurde het de afgelopen maand gewoonlijk elke nacht vooraleer u in slaap viel?', }, }, { input_id: 'Q03', - input_type: INPUT_TYPES.serie_7, - input_label: { + type: INPUT_TYPES.serie_7, + label: { en: 'During the past month, what time have you usually gotten up in the morning? (In 24 hour format)', nl: 'Hoe laat stond u tijdens de afgelopen maand ’s morgens op? (In 24-uursformaat)', }, }, { input_id: 'Q04', - input_type: INPUT_TYPES.serie_7, - input_label: { + type: INPUT_TYPES.serie_7, + label: { en: 'During the past month, how many hours of actual sleep did you get at night? (This may be different than the number of hours you spent in bed.)', nl: 'Aan hoeveel uren SLAAP kwam u gemiddeld per nacht tijdens de afgelopen maand? (Dat kan verschillen van het aantal uren dat u in bed doorbracht)', }, }, { input_id: 'Q05a', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you had trouble sleeping because you cannot get to sleep within 30 minutes', nl: 'Hoe vaak had u tijdens de afgelopen maand moeilijkheden met slapen, omdat u niet binnen 30 minuten in slaap viel?', }, }, { input_id: 'Q05b', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you had trouble sleeping because you wake up in the middle of the night or early morning?', nl: 'Hoe vaak had u tijdens de afgelopen maand moeilijkheden met slapen, omdat u midden in de nacht of in de vroege morgen wakker werd?', }, }, { input_id: 'Q05c', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you had trouble sleeping because you have to get up to use the bathroom?', nl: 'Hoe vaak had u tijdens de afgelopen maand moeilijkheden met slapen, omdat u naar het toilet moest gaan?', }, }, { input_id: 'Q05d', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you had trouble sleeping because you cannot breathe comfortably?', nl: 'Hoe vaak had u tijdens de afgelopen maand moeilijkheden met slapen, omdat u niet makkelijk kon ademhalen?', }, }, { input_id: 'Q05e', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you had trouble sleeping because you cough or snore loudly?', nl: 'Hoe vaak had u tijdens de afgelopen maand moeilijkheden met slapen, omdat u luid hoestte of snurkte?', }, }, { input_id: 'Q05f', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you had trouble sleeping because you feel too cold?', nl: 'Hoe vaak had u tijdens de afgelopen maand moeilijkheden met slapen, omdat u het te koud had?', }, }, { input_id: 'Q05g', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you had trouble sleeping because you feel too hot?', nl: 'Hoe vaak had u tijdens de afgelopen maand moeilijkheden met slapen, omdat u het te warm had?', }, }, { input_id: 'Q05h', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you had trouble sleeping because you have bad dreams?', nl: 'Hoe vaak had u tijdens de afgelopen maand moeilijkheden met slapen, omdat u nachtmerries had?', }, }, { input_id: 'Q05i', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you had trouble sleeping because you have pain?', nl: 'Hoe vaak had u tijdens de afgelopen maand moeilijkheden met slapen, omdat u pijn had?', }, }, { input_id: 'Q05j', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you had trouble sleeping because of other reason(s):', nl: 'Hoe vaak had u tijdens de afgelopen maand moeilijkheden met slapen, omdat u (een) andere reden (en) had?', }, }, { input_id: 'Q05jj', - input_type: { + type: { type: 'string', }, - input_label: { + label: { en: 'If you had other reason(s), please describe:', nl: 'Als u een andere reden had, beschrijf deze dan:', }, }, { input_id: 'Q06', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you taken medicine to help you sleep (prescribed or “over the counter”)?', nl: 'Hoe vaak nam u gedurende de afgelopen maand geneesmiddelen in (al dan niet voorgeschreven) als hulp bij het slapen?', }, }, { input_id: 'Q07', - input_type: INPUT_TYPES.serie_1, - input_label: { + type: INPUT_TYPES.serie_1, + label: { en: 'During the past month, how often have you had trouble staying awake while driving, eating meals, or engaging in social activity?', nl: 'Hoe vaak had u het de afgelopen maand moeilijk om wakker te blijven tijdens het autorijden, het eten of deelname aan een sociale activiteit?', }, }, { input_id: 'Q08', - input_type: INPUT_TYPES.serie_4, - input_label: { + type: INPUT_TYPES.serie_4, + label: { en: 'During the past month, how much of a problem has it been for you to keep up enough enthusiasm to get things done?', nl: 'In welke mate was het de afgelopen maand voor u een probleem om met voldoende enthousiasme uw dagelijkse activiteiten uit te voeren?', }, }, { input_id: 'Q09', - input_type: INPUT_TYPES.serie_5, - input_label: { + type: INPUT_TYPES.serie_5, + label: { en: 'During the past month, how would you rate your sleep quality overall?', nl: 'Hoe zou u uw globale slaapkwaliteit tijdens de afgelopen maand beoordelen?', }, diff --git a/todo/pss_4/definition/pss_4_inputs.ts b/todo/pss_4/definition/pss_4_inputs.ts index 6dde493..c189ed0 100644 --- a/todo/pss_4/definition/pss_4_inputs.ts +++ b/todo/pss_4/definition/pss_4_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { @@ -30,28 +30,28 @@ const input_type: NumberInputType = { export const PSS4_INPUTS: Array = [ { input_id: 'PSS4_Q01', - input_label: { + label: { en: 'In the last month, how often have you felt that you were unable to control the important things in your life?', }, input_type, }, { input_id: 'PSS4_Q02', - input_label: { + label: { en: 'In the last month, how often have you felt confident about your ability to handle your personal problems?', }, input_type, }, { input_id: 'PSS4_Q03', - input_label: { + label: { en: 'In the last month, how often have you felt that that things were going your way?', }, input_type, }, { input_id: 'PSS4_Q04', - input_label: { + label: { en: 'In the last month, how often have you felt difficulties were piling up so high that you could not overcome them?', }, input_type, diff --git a/todo/qol_stoma/definition/qol_stoma_inputs.ts b/todo/qol_stoma/definition/qol_stoma_inputs.ts index cae17e2..ce73a52 100644 --- a/todo/qol_stoma/definition/qol_stoma_inputs.ts +++ b/todo/qol_stoma/definition/qol_stoma_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [{ value: 1 }, { value: 2 }, { value: 3 }, { value: 4 }], } diff --git a/todo/quickdash/definition/quickdash_subscales.ts b/todo/quickdash/definition/quickdash_subscales.ts index cdb7a05..1787918 100644 --- a/todo/quickdash/definition/quickdash_subscales.ts +++ b/todo/quickdash/definition/quickdash_subscales.ts @@ -11,7 +11,7 @@ const ALLOWED_ANSWERS = [ //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }) export const QUICKDASH_SUBSCALES: Array = [ diff --git a/todo/sccai/definition/sccai_inputs.ts b/todo/sccai/definition/sccai_inputs.ts index 0b4b88e..a4cadd3 100644 --- a/todo/sccai/definition/sccai_inputs.ts +++ b/todo/sccai/definition/sccai_inputs.ts @@ -3,7 +3,7 @@ import type { InputType } from '../../../src/types/calculations.types' export const SCCAI_INPUTS: Array = [ { input_id: 'number_of_stools_during_day', // Bowel frequency (day) - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: '0-3' } }, @@ -16,7 +16,7 @@ export const SCCAI_INPUTS: Array = [ }, { input_id: 'nbr_stools_during_night', // Bowel frequency (night) - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: '0' } }, @@ -28,7 +28,7 @@ export const SCCAI_INPUTS: Array = [ }, { input_id: 'urgency_of_going_to_toilet', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No urgency' } }, @@ -41,7 +41,7 @@ export const SCCAI_INPUTS: Array = [ }, { input_id: 'blood_in_stool', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No blood' } }, @@ -54,7 +54,7 @@ export const SCCAI_INPUTS: Array = [ }, { input_id: 'general_wellness', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Very well' } }, @@ -68,7 +68,7 @@ export const SCCAI_INPUTS: Array = [ }, { input_id: 'joint_pain', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No' } }, @@ -79,7 +79,7 @@ export const SCCAI_INPUTS: Array = [ }, { input_id: 'eye_problems', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No' } }, @@ -90,7 +90,7 @@ export const SCCAI_INPUTS: Array = [ }, { input_id: 'deep_skin_problems', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No' } }, @@ -101,7 +101,7 @@ export const SCCAI_INPUTS: Array = [ }, { input_id: 'surface_skin_problems', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'No' } }, diff --git a/todo/scl90/definition/scl90_subscales.ts b/todo/scl90/definition/scl90_subscales.ts index fea44c4..3975948 100644 --- a/todo/scl90/definition/scl90_subscales.ts +++ b/todo/scl90/definition/scl90_subscales.ts @@ -11,7 +11,7 @@ const ALLOWED_ANSWERS = [ //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }) export const SCL90_SUBSCALES: Array = [ diff --git a/todo/scl90r/definition/scl90r_subscales.ts b/todo/scl90r/definition/scl90r_subscales.ts index db51bb2..4f3d77b 100644 --- a/todo/scl90r/definition/scl90r_subscales.ts +++ b/todo/scl90r/definition/scl90r_subscales.ts @@ -11,7 +11,7 @@ const ALLOWED_ANSWERS = [ //@ts-expect-error to do const add_allowed_answers = input => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS }, }) export const SCL90R_SUBSCALES: Array = [ diff --git a/todo/sdq/definition/sdq_subscales.ts b/todo/sdq/definition/sdq_subscales.ts index fa4992b..2404a14 100644 --- a/todo/sdq/definition/sdq_subscales.ts +++ b/todo/sdq/definition/sdq_subscales.ts @@ -34,7 +34,7 @@ const ALLOWED_ANSWERS_IMPACT = [ //@ts-expect-error to do const add_allowed_answers_impact_part = input => ({ ...input, - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_IMPACT }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_IMPACT }, }) export const SDQ_SUBSCALES: DefaultSubscaleType[] = [ @@ -43,23 +43,23 @@ export const SDQ_SUBSCALES: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'EMOTIONAL_PROBLEMS_Q01', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'EMOTIONAL_PROBLEMS_Q02', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'EMOTIONAL_PROBLEMS_Q03', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'EMOTIONAL_PROBLEMS_Q04', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'EMOTIONAL_PROBLEMS_Q05', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, ], }, @@ -68,26 +68,26 @@ export const SDQ_SUBSCALES: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'CONDUCT_PROBLEMS_Q01', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'CONDUCT_PROBLEMS_Q02', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_INVERTED, }, }, { input_id: 'CONDUCT_PROBLEMS_Q03', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'CONDUCT_PROBLEMS_Q04', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'CONDUCT_PROBLEMS_Q05', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, ], }, @@ -96,26 +96,26 @@ export const SDQ_SUBSCALES: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'HYPERACTIVITY_Q01', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'HYPERACTIVITY_Q02', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'HYPERACTIVITY_Q03', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'HYPERACTIVITY_Q04', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_INVERTED, }, }, { input_id: 'HYPERACTIVITY_Q05', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_INVERTED, }, @@ -127,29 +127,29 @@ export const SDQ_SUBSCALES: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'PEER_PROBLEMS_Q01', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'PEER_PROBLEMS_Q02', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_INVERTED, }, }, { input_id: 'PEER_PROBLEMS_Q03', - input_type: { + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_INVERTED, }, }, { input_id: 'PEER_PROBLEMS_Q04', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'PEER_PROBLEMS_Q05', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, ], }, @@ -158,23 +158,23 @@ export const SDQ_SUBSCALES: DefaultSubscaleType[] = [ input_ids_in_subscale: [ { input_id: 'PROSOCIAL_Q01', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'PROSOCIAL_Q02', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'PROSOCIAL_Q03', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'PROSOCIAL_Q04', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, { input_id: 'PROSOCIAL_Q05', - input_type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, + type: { type: 'number', allowed_answers: ALLOWED_ANSWERS_NORMAL }, }, ], }, diff --git a/todo/short form surveys/sf36/README.md b/todo/sf36/README.md similarity index 100% rename from todo/short form surveys/sf36/README.md rename to todo/sf36/README.md diff --git a/todo/short form surveys/sf36/__testdata__/sf36_test_responses.ts b/todo/sf36/__testdata__/sf36_test_responses.ts similarity index 100% rename from todo/short form surveys/sf36/__testdata__/sf36_test_responses.ts rename to todo/sf36/__testdata__/sf36_test_responses.ts diff --git a/todo/short form surveys/sf36/definition/index.ts b/todo/sf36/definition/index.ts similarity index 100% rename from todo/short form surveys/sf36/definition/index.ts rename to todo/sf36/definition/index.ts diff --git a/todo/short form surveys/sf36/definition/sf36_output.ts b/todo/sf36/definition/sf36_output.ts similarity index 100% rename from todo/short form surveys/sf36/definition/sf36_output.ts rename to todo/sf36/definition/sf36_output.ts diff --git a/todo/sf36/definition/sf36_subscales.ts b/todo/sf36/definition/sf36_subscales.ts new file mode 100644 index 0000000..110d37f --- /dev/null +++ b/todo/sf36/definition/sf36_subscales.ts @@ -0,0 +1,109 @@ +import { type DefaultSubscaleType } from '../../../../src/types/calculations.types' +import { NumberInputType } from '../../../../src/types/calculations/inputs/calculation-inputs.types' + +const INPUT_TYPES: Record = { + serie_1: { + type: 'number', + allowed_answers: [ + { value: 1 }, + { value: 2 }, + { value: 3 }, + { value: 4 }, + { value: 5 }, + ], + }, + serie_2: { + type: 'number', + allowed_answers: [{ value: 1 }, { value: 2 }, { value: 3 }], + }, + serie_3: { type: 'number', allowed_answers: [{ value: 1 }, { value: 2 }] }, + serie_4: { + type: 'number', + allowed_answers: [ + { value: 1 }, + { value: 2 }, + { value: 3 }, + { value: 4 }, + { value: 5 }, + { value: 6 }, + ], + }, +} + +export const SF36_SUBSCALES: Array = [ + { + id: 'PHYSICAL_FUNCTIONING', + input_ids_in_subscale: [ + { input_id: 'SF36_Q03', type: INPUT_TYPES.serie_2 }, + { input_id: 'SF36_Q04', type: INPUT_TYPES.serie_2 }, + { input_id: 'SF36_Q05', type: INPUT_TYPES.serie_2 }, + { input_id: 'SF36_Q06', type: INPUT_TYPES.serie_2 }, + { input_id: 'SF36_Q07', type: INPUT_TYPES.serie_2 }, + { input_id: 'SF36_Q08', type: INPUT_TYPES.serie_2 }, + { input_id: 'SF36_Q09', type: INPUT_TYPES.serie_2 }, + { input_id: 'SF36_Q10', type: INPUT_TYPES.serie_2 }, + { input_id: 'SF36_Q11', type: INPUT_TYPES.serie_2 }, + { input_id: 'SF36_Q12', type: INPUT_TYPES.serie_2 }, + ], + }, + { + id: 'ROLE_LIMITATIONS_PHYSICAL_HEALTH', + input_ids_in_subscale: [ + { input_id: 'SF36_Q13', type: INPUT_TYPES.serie_3 }, + { input_id: 'SF36_Q14', type: INPUT_TYPES.serie_3 }, + { input_id: 'SF36_Q15', type: INPUT_TYPES.serie_3 }, + { input_id: 'SF36_Q16', type: INPUT_TYPES.serie_3 }, + ], + }, + { + id: 'ROLE_LIMITATIONS_EMOTIONAL_PROBLEMS', + input_ids_in_subscale: [ + { input_id: 'SF36_Q17', type: INPUT_TYPES.serie_3 }, + { input_id: 'SF36_Q18', type: INPUT_TYPES.serie_3 }, + { input_id: 'SF36_Q19', type: INPUT_TYPES.serie_3 }, + ], + }, + { + id: 'ENERGY_FATIGUE', + input_ids_in_subscale: [ + { input_id: 'SF36_Q23', type: INPUT_TYPES.serie_4 }, + { input_id: 'SF36_Q27', type: INPUT_TYPES.serie_4 }, + { input_id: 'SF36_Q29', type: INPUT_TYPES.serie_4 }, + { input_id: 'SF36_Q31', type: INPUT_TYPES.serie_4 }, + ], + }, + { + id: 'EMOTIONAL_WELLBEING', + input_ids_in_subscale: [ + { input_id: 'SF36_Q24', type: INPUT_TYPES.serie_4 }, + { input_id: 'SF36_Q25', type: INPUT_TYPES.serie_4 }, + { input_id: 'SF36_Q26', type: INPUT_TYPES.serie_4 }, + { input_id: 'SF36_Q28', type: INPUT_TYPES.serie_4 }, + { input_id: 'SF36_Q30', type: INPUT_TYPES.serie_4 }, + ], + }, + { + id: 'SOCIAL_FUNCTIONING', + input_ids_in_subscale: [ + { input_id: 'SF36_Q20', type: INPUT_TYPES.serie_1 }, + { input_id: 'SF36_Q32', type: INPUT_TYPES.serie_1 }, + ], + }, + { + id: 'PAIN', + input_ids_in_subscale: [ + { input_id: 'SF36_Q21', type: INPUT_TYPES.serie_4 }, + { input_id: 'SF36_Q22', type: INPUT_TYPES.serie_1 }, + ], + }, + { + id: 'GENERAL_HEALTH', + input_ids_in_subscale: [ + { input_id: 'SF36_Q01', type: INPUT_TYPES.serie_1 }, + { input_id: 'SF36_Q33', type: INPUT_TYPES.serie_1 }, + { input_id: 'SF36_Q34', type: INPUT_TYPES.serie_1 }, + { input_id: 'SF36_Q35', type: INPUT_TYPES.serie_1 }, + { input_id: 'SF36_Q36', type: INPUT_TYPES.serie_1 }, + ], + }, +] diff --git a/todo/short form surveys/sf36/sf36.test.ts b/todo/sf36/sf36.test.ts similarity index 100% rename from todo/short form surveys/sf36/sf36.test.ts rename to todo/sf36/sf36.test.ts diff --git a/todo/short form surveys/sf36/sf36.ts b/todo/sf36/sf36.ts similarity index 100% rename from todo/short form surveys/sf36/sf36.ts rename to todo/sf36/sf36.ts diff --git a/todo/short form surveys/sf36/sf36_conversion_table.ts b/todo/sf36/sf36_conversion_table.ts similarity index 100% rename from todo/short form surveys/sf36/sf36_conversion_table.ts rename to todo/sf36/sf36_conversion_table.ts diff --git a/todo/short form surveys/index.ts b/todo/short form surveys/index.ts deleted file mode 100644 index e51f147..0000000 --- a/todo/short form surveys/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { sf12 } from './sf12/sf12' -export { sf36 } from './sf36/sf36' diff --git a/todo/short form surveys/sf12/definition/sf12_output.ts b/todo/short form surveys/sf12/definition/sf12_output.ts deleted file mode 100644 index 415eb2f..0000000 --- a/todo/short form surveys/sf12/definition/sf12_output.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { CalculationOutputDefinition } from '../../../../src/types/calculations.types' - -export const SF12_OUTPUT: CalculationOutputDefinition[] = [ - { - subresult_id: 'PHYSICAL_COMPONENT_SCORE', - label: { en: 'Physical Component Score (PCS)' }, - type: 'number', - }, - { - subresult_id: 'MENTAL_COMPONENT_SCORE', - label: { en: 'Mental Component Score (MCS)' }, - type: 'number', - }, -] diff --git a/todo/short form surveys/sf12/definition/sf12_subscales.ts b/todo/short form surveys/sf12/definition/sf12_subscales.ts deleted file mode 100644 index 69de4d1..0000000 --- a/todo/short form surveys/sf12/definition/sf12_subscales.ts +++ /dev/null @@ -1,20 +0,0 @@ -export type SubscaleType = 'PHYSICAL_HEALTH' | 'MENTAL_HEALTH' - -export const SF12_SUBSCALES: Record = { - PHYSICAL_HEALTH: [ - 'SF12_Q01', - 'SF12_Q02', - 'SF12_Q03', - 'SF12_Q04', - 'SF12_Q05', - 'SF12_Q08', - ], - MENTAL_HEALTH: [ - 'SF12_Q06', - 'SF12_Q07', - 'SF12_Q09', - 'SF12_Q10', - 'SF12_Q11', - 'SF12_Q12', - ], -} diff --git a/todo/short form surveys/sf12/helpers/calculate_sf12_scores.ts b/todo/short form surveys/sf12/helpers/calculate_sf12_scores.ts deleted file mode 100644 index bb400b0..0000000 --- a/todo/short form surveys/sf12/helpers/calculate_sf12_scores.ts +++ /dev/null @@ -1,207 +0,0 @@ -/* eslint-disable no-magic-numbers */ - -import { round } from 'mathjs' - -import type { - InputType, - WIPCalculationResultType, -} from '../../../../src/types/calculations.types' -import { MISSING_MESSAGE } from '../../../../PARAMETERS' -import { validate_subscale_scores } from './validate_subscale_scores' - -export const calculate_sf12_scores = ( - inputs_with_answers: Array, -): WIPCalculationResultType => { - const is_valid_physical_subscale = validate_subscale_scores( - inputs_with_answers, - 'PHYSICAL_HEALTH', - ) - - const is_valid_mental_subscale = validate_subscale_scores( - inputs_with_answers, - 'MENTAL_HEALTH', - ) - // all 12 answers are used in each of the subscales hence we - if (!is_valid_physical_subscale || !is_valid_mental_subscale) { - return [ - { - id: 'PHYSICAL_COMPONENT_SCORE', - score: MISSING_MESSAGE, - }, - { - id: 'MENTAL_COMPONENT_SCORE', - score: MISSING_MESSAGE, - }, - ] - } - - // map the raw score to the question id - const mapped_values = inputs_with_answers.reduce((acc, item) => { - //@ts-expect-error fix later - acc[item.input_id] = item.raw_input_value - return acc - }, {}) - - /// MAPPING - // SF12_Q01 -> rgh1 SF12_Q02 -> pf02 - // SF12_Q03 -> pf04 SF12_Q04 -> rp2 - // SF12_Q05 -> rp3 SF12_Q06 -> re2 - // SF12_Q07 -> re3 SF12_Q08 -> rbp2 - // SF12_Q09 -> rmh3 SF12_Q10 -> rvt2 - // SF12_Q11 -> mh4 SF12_Q12 -> sf2 - // Data cleaning and reverse scoring - //@ts-expect-error fix later - const rgh1 = 6 - mapped_values.SF12_Q01 - //@ts-expect-error fix later - const rbp2 = 6 - mapped_values.SF12_Q08 - //@ts-expect-error fix later - const rmh3 = 7 - mapped_values.SF12_Q09 - //@ts-expect-error fix later - const rvt2 = 7 - mapped_values.SF12_Q10 - //@ts-expect-error fix later - const pf02 = mapped_values.SF12_Q02 - //@ts-expect-error fix later - const pf04 = mapped_values.SF12_Q03 - //@ts-expect-error fix later - const rp2 = mapped_values.SF12_Q04 - //@ts-expect-error fix later - const rp3 = mapped_values.SF12_Q05 - //@ts-expect-error fix later - const re2 = mapped_values.SF12_Q06 - //@ts-expect-error fix later - const re3 = mapped_values.SF12_Q07 - //@ts-expect-error fix later - const mh4 = mapped_values.SF12_Q11 - //@ts-expect-error fix later - const sf2 = mapped_values.SF12_Q12 - - // Creating indicator variables - const indicators = { - pf02_1: pf02 === 1 ? 1 : 0, - pf02_2: pf02 === 2 ? 1 : 0, - pf04_1: pf04 === 1 ? 1 : 0, - pf04_2: pf04 === 2 ? 1 : 0, - rp2_1: rp2 === 1 ? 1 : 0, - rp3_1: rp3 === 1 ? 1 : 0, - bp2_1: rbp2 === 1 ? 1 : 0, - bp2_2: rbp2 === 2 ? 1 : 0, - bp2_3: rbp2 === 3 ? 1 : 0, - bp2_4: rbp2 === 4 ? 1 : 0, - gh1_1: rgh1 === 1 ? 1 : 0, - gh1_2: rgh1 === 2 ? 1 : 0, - gh1_3: rgh1 === 3 ? 1 : 0, - gh1_4: rgh1 === 4 ? 1 : 0, - vt2_1: rvt2 === 1 ? 1 : 0, - vt2_2: rvt2 === 2 ? 1 : 0, - vt2_3: rvt2 === 3 ? 1 : 0, - vt2_4: rvt2 === 4 ? 1 : 0, - vt2_5: rvt2 === 5 ? 1 : 0, - sf2_1: sf2 === 1 ? 1 : 0, - sf2_2: sf2 === 2 ? 1 : 0, - sf2_3: sf2 === 3 ? 1 : 0, - sf2_4: sf2 === 4 ? 1 : 0, - re2_1: re2 === 1 ? 1 : 0, - re3_1: re3 === 1 ? 1 : 0, - mh3_1: rmh3 === 1 ? 1 : 0, - mh3_2: rmh3 === 2 ? 1 : 0, - mh3_3: rmh3 === 3 ? 1 : 0, - mh3_4: rmh3 === 4 ? 1 : 0, - mh3_5: rmh3 === 5 ? 1 : 0, - mh4_1: mh4 === 1 ? 1 : 0, - mh4_2: mh4 === 2 ? 1 : 0, - mh4_3: mh4 === 3 ? 1 : 0, - mh4_4: mh4 === 4 ? 1 : 0, - mh4_5: mh4 === 5 ? 1 : 0, - } - - // Weighting and aggregation for PCS12 and MCS12 scores - - // PHYSICAL_COMPONENT_SCORE - const RAWPCS12 = - -7.23216 * indicators.pf02_1 + - -3.45555 * indicators.pf02_2 + - -6.24397 * indicators.pf04_1 + - -2.73557 * indicators.pf04_2 + - -4.61617 * indicators.rp2_1 + - -5.51747 * indicators.rp3_1 + - -11.25544 * indicators.bp2_1 + - -8.38063 * indicators.bp2_2 + - -6.50522 * indicators.bp2_3 + - -3.8013 * indicators.bp2_4 + - -8.37399 * indicators.gh1_1 + - -5.56461 * indicators.gh1_2 + - -3.02396 * indicators.gh1_3 + - -1.31872 * indicators.gh1_4 + - -2.44706 * indicators.vt2_1 + - -2.02168 * indicators.vt2_2 + - -1.6185 * indicators.vt2_3 + - -1.14387 * indicators.vt2_4 + - -0.42251 * indicators.vt2_5 + - -0.33682 * indicators.sf2_1 + - -0.94342 * indicators.sf2_2 + - -0.18043 * indicators.sf2_3 + - 0.11038 * indicators.sf2_4 + - 3.04365 * indicators.re2_1 + - 2.32091 * indicators.re3_1 + - 3.46638 * indicators.mh3_1 + - 2.90426 * indicators.mh3_2 + - 2.37241 * indicators.mh3_3 + - 1.36689 * indicators.mh3_4 + - 0.66514 * indicators.mh3_5 + - 4.61446 * indicators.mh4_1 + - 3.41593 * indicators.mh4_2 + - 2.34247 * indicators.mh4_3 + - 1.28044 * indicators.mh4_4 + - 0.41188 * indicators.mh4_5 + - 56.57706 - - // MENTAL_COMPONENT_SCORE - const RAWMCS12 = - 3.93115 * indicators.pf02_1 + - 1.8684 * indicators.pf02_2 + - 2.68282 * indicators.pf04_1 + - 1.43103 * indicators.pf04_2 + - 1.4406 * indicators.rp2_1 + - 1.66968 * indicators.rp3_1 + - 1.48619 * indicators.bp2_1 + - 1.76691 * indicators.bp2_2 + - 1.49384 * indicators.bp2_3 + - 0.90384 * indicators.bp2_4 + - -1.71175 * indicators.gh1_1 + - -0.16891 * indicators.gh1_2 + - 0.03482 * indicators.gh1_3 + - -0.06064 * indicators.gh1_4 + - -6.02409 * indicators.vt2_1 + - -4.88962 * indicators.vt2_2 + - -3.29805 * indicators.vt2_3 + - -1.65178 * indicators.vt2_4 + - -0.92057 * indicators.vt2_5 + - -6.29724 * indicators.sf2_1 + - -8.26066 * indicators.sf2_2 + - -5.63286 * indicators.sf2_3 + - -3.13896 * indicators.sf2_4 + - -6.82672 * indicators.re2_1 + - -5.69921 * indicators.re3_1 + - -10.19085 * indicators.mh3_1 + - -7.92717 * indicators.mh3_2 + - -6.31121 * indicators.mh3_3 + - -4.09842 * indicators.mh3_4 + - -1.94949 * indicators.mh3_5 + - -16.15395 * indicators.mh4_1 + - -10.77911 * indicators.mh4_2 + - -8.09914 * indicators.mh4_3 + - -4.59055 * indicators.mh4_4 + - -1.95934 * indicators.mh4_5 + - 60.75781 - - return [ - { - id: 'PHYSICAL_COMPONENT_SCORE', - score: round(RAWPCS12, 5), - }, - { - id: 'MENTAL_COMPONENT_SCORE', - score: round(RAWMCS12, 5), - }, - ] -} diff --git a/todo/short form surveys/sf12/helpers/index.ts b/todo/short form surveys/sf12/helpers/index.ts deleted file mode 100644 index 12c97bb..0000000 --- a/todo/short form surveys/sf12/helpers/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { validate_subscale_scores } from './validate_subscale_scores' -export { calculate_sf12_scores } from './calculate_sf12_scores' diff --git a/todo/short form surveys/sf12/helpers/validate_subscale_scores.ts b/todo/short form surveys/sf12/helpers/validate_subscale_scores.ts deleted file mode 100644 index 2c48b55..0000000 --- a/todo/short form surveys/sf12/helpers/validate_subscale_scores.ts +++ /dev/null @@ -1,35 +0,0 @@ -import R from 'ramda' - -import type { InputType } from '../../../../src/types/calculations.types' -import { - inputIdLens, - rawInputValueLens, -} from '../../../../lib/calculation_variants/api/input/lenses' -import { is_numeric } from '../../../../src/calculation_suite/calculations/shared_functions' -import { SF12_SUBSCALES, type SubscaleType } from '../definition/sf12_subscales' - -export const validate_subscale_scores = ( - inputs_with_answers: Array, - subscale: SubscaleType, -): boolean => { - const INPUT_IDS_NEEDED_FOR_SCORING = SF12_SUBSCALES[subscale] - - const valid_answers_in_subscale = R.compose( - R.filter(is_numeric), - R.map(raw_value => Number(raw_value)), - R.map(input => R.view(rawInputValueLens, input)), - R.filter(input => - INPUT_IDS_NEEDED_FOR_SCORING.includes(R.view(inputIdLens, input)), - ), - )(inputs_with_answers) - - /** - * We require all questions in a component scale to be - * answered to calculate a score. - */ - if (valid_answers_in_subscale.length !== SF12_SUBSCALES[subscale].length) { - return false - } - - return true -} diff --git a/todo/short form surveys/sf12/sf12.test.ts b/todo/short form surveys/sf12/sf12.test.ts deleted file mode 100644 index 7555000..0000000 --- a/todo/short form surveys/sf12/sf12.test.ts +++ /dev/null @@ -1,227 +0,0 @@ -/* eslint-disable no-magic-numbers */ -import { expect } from 'chai' - -import { InvalidInputsError } from '../../../errors' -import { execute_test_calculation } from '../../../lib/execute_test_calculation' -import { get_result_ids_from_calculation_output } from '../../../lib/get_result_ids_from_calculation_output' -import { CALCULATIONS } from '../../calculation_library' -import { get_input_ids_from_calculation_blueprint } from '../../shared_functions' -import { - best_response, - median_response, - random_response, - worst_response, -} from './__testdata__/sf12_test_responses' -import { SF12_INPUT, SF12_SUBSCALES } from './definition' -import { sf12 } from './sf12' - -const SCORES = { - WORST: { - PHYSICAL_COMPONENT_SCORE: 23.99938, - MENTAL_COMPONENT_SCORE: 19.06444, - }, - MEDIAN: { - PHYSICAL_COMPONENT_SCORE: 48.60638, - MENTAL_COMPONENT_SCORE: 33.57777, - }, - BEST: { - PHYSICAL_COMPONENT_SCORE: 56.57706, - MENTAL_COMPONENT_SCORE: 60.75781, - }, - RANDOM: { - PHYSICAL_COMPONENT_SCORE: 37.10464, - MENTAL_COMPONENT_SCORE: 46.00098, - }, -} - -const sf12_calculation = execute_test_calculation(sf12) - -describe('sf12', function () { - it('sf12 calculation function should be available as a calculation', function () { - expect(CALCULATIONS).toHaveProperty('sf12') - }) - - describe('the score includes the correct input fields', function () { - it('should have all the expected input ids configured', function () { - const EXPECTED_INPUT_IDS = [ - 'SF12_Q01', - 'SF12_Q02', - 'SF12_Q03', - 'SF12_Q04', - 'SF12_Q05', - 'SF12_Q06', - 'SF12_Q07', - 'SF12_Q08', - 'SF12_Q09', - 'SF12_Q10', - 'SF12_Q11', - 'SF12_Q12', - ] - - const configured_input_ids = - get_input_ids_from_calculation_blueprint(SF12_INPUT) - - expect(EXPECTED_INPUT_IDS).toEqual(configured_input_ids) - }) - - it('should have the expected input idss configured for the "PHYSICAL_HEALTH" subscale', function () { - const EXPECTED_INPUT_IDS = [ - 'SF12_Q01', - 'SF12_Q02', - 'SF12_Q03', - 'SF12_Q04', - 'SF12_Q05', - 'SF12_Q08', - ] - expect(EXPECTED_INPUT_IDS).toEqual(SF12_SUBSCALES.PHYSICAL_HEALTH) - }) - - it('should have the expected input idss configured for the "MENTAL_HEALTH" subscale ', function () { - const EXPECTED_INPUT_IDS = [ - 'SF12_Q06', - 'SF12_Q07', - 'SF12_Q09', - 'SF12_Q10', - 'SF12_Q11', - 'SF12_Q12', - ] - - expect(EXPECTED_INPUT_IDS).toEqual(SF12_SUBSCALES.MENTAL_HEALTH) - }) - }) - - describe('each calculated score includes the correct output result and correct score title', function () { - const outcome = sf12_calculation(best_response) - - it('should return a score for all 2 subscales', function () { - expect(outcome).toHaveLength(2) - }) - - it('should have all the correct calculation ids', function () { - const EXPECTED_CALCULATION_IDS = [ - 'PHYSICAL_COMPONENT_SCORE', - 'MENTAL_COMPONENT_SCORE', - ] - - const extracted_calculation_ids_from_outcome = - get_result_ids_from_calculation_output(outcome) - - expect(EXPECTED_CALCULATION_IDS).toEqual( - extracted_calculation_ids_from_outcome, - ) - }) - }) - - describe('a score is only calculated when all mandatory fields are entered', function () { - describe('when an empty response is passed', function () { - it('should return "Missing" as the score for every subscale', function () { - const outcome = sf12_calculation({}) - - outcome.forEach(subscale => { - const score = subscale?.result - expect(score).toEqual(undefined) - }) - }) - }) - }) - - describe('values entered by the user are checked to verify they are inside specified ranges for question 1', function () { - describe('when an answer is not a number', function () { - it('should throw an InvalidInputsError', function () { - expect(() => - sf12_calculation({ - SF12_Q01: "I'm not a number", - }), - ).toThrow(InvalidInputsError) - }) - }) - describe('when an answer is not allowed (e.g. is below the expected range)', function () { - it('should throw an InvalidInputsError', function () { - expect(() => - sf12_calculation({ - SF12_Q01: -1, - }), - ).toThrow(InvalidInputsError) - }) - }) - describe('when an answer is not allowed (e.g. is above the expected range)', function () { - it('should throw an InvalidInputsError', function () { - expect(() => - sf12_calculation({ - SF12_Q01: 6, - }), - ).toThrow(InvalidInputsError) - }) - it('should throw an InvalidInputsError for question 4', function () { - expect(() => - sf12_calculation({ - SF12_Q04: 3, - }), - ).toThrow(InvalidInputsError) - }) - it('should throw an InvalidInputsError for question 9', function () { - expect(() => - sf12_calculation({ - SF12_Q09: 7, - }), - ).toThrow(InvalidInputsError) - }) - it('should pass for question 9', function () { - expect(() => - sf12_calculation({ - SF12_Q09: 6, - }), - ).not.toThrow(InvalidInputsError) - }) - }) - }) - - describe('each calculated score includes the correct formula and outputs the correct result', function () { - describe('when the worst response is passed', function () { - it('should return the worst score for every subscale', function () { - const outcome = sf12_calculation(worst_response) - - outcome.forEach(subscale => { - const score = subscale?.result - //@ts-expect-error fix later - expect(score).toEqual(SCORES.WORST[subscale.subresult_id]) - }) - }) - }) - - describe('when the best response is passed', function () { - it('should return the best score for every scare', function () { - const outcome = sf12_calculation(best_response) - - outcome.forEach(subscale => { - const score = subscale?.result - //@ts-expect-error fix later - expect(score).toEqual(SCORES.BEST[subscale.subresult_id]) - }) - }) - }) - - describe('when a median response is passed', function () { - it('should return the median score for every scare', function () { - const outcome = sf12_calculation(median_response) - - outcome.forEach(subscale => { - const score = subscale?.result - //@ts-expect-error fix later - expect(score).toEqual(SCORES.MEDIAN[subscale.subresult_id]) - }) - }) - }) - - describe('when a random response is passed', function () { - it('should return the random score for every scare', function () { - const outcome = sf12_calculation(random_response) - outcome.forEach(subscale => { - const score = subscale?.result - //@ts-expect-error fix later - expect(score).toEqual(SCORES.RANDOM[subscale.subresult_id]) - }) - }) - }) - }) -}) diff --git a/todo/short form surveys/sf12/sf12.ts b/todo/short form surveys/sf12/sf12.ts deleted file mode 100644 index 59eb816..0000000 --- a/todo/short form surveys/sf12/sf12.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type { - CalculationType, - InputType, - WIPCalculationResultType, -} from '../../../src/types/calculations.types' -import { add_raw_values_to_inputs } from '../../../lib/calculation_variants/simple_calculation' -import { create_calculation } from '../../../lib/create_calculation' -import { SF12_INPUT, SF12_OUTPUT } from './definition' -import { calculate_sf12_scores } from './helpers' - -const calculate_scores = ( - inputs_with_answers: Array, -): WIPCalculationResultType => { - const SCORES = calculate_sf12_scores(inputs_with_answers) - return SCORES -} - -const specific_steps_sf12_calc = [ - calculate_scores, - add_raw_values_to_inputs(SF12_INPUT), -] - -export const sf12: CalculationType = create_calculation({ - calculation_name: '12-Item Short Form Survey (SF12)', - readme_location: __dirname, - calculation_steps: specific_steps_sf12_calc, - calculation_definition: { - input_definition: SF12_INPUT, - output_definition: SF12_OUTPUT, - }, -}) diff --git a/todo/short form surveys/sf36/definition/sf36_subscales.ts b/todo/short form surveys/sf36/definition/sf36_subscales.ts deleted file mode 100644 index 6a6e974..0000000 --- a/todo/short form surveys/sf36/definition/sf36_subscales.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { type DefaultSubscaleType } from '../../../../src/types/calculations.types' -import { NumberInputType } from '../../../../src/types/calculations/inputs/calculation-inputs.types' - -const INPUT_TYPES: Record = { - serie_1: { - type: 'number', - allowed_answers: [ - { value: 1 }, - { value: 2 }, - { value: 3 }, - { value: 4 }, - { value: 5 }, - ], - }, - serie_2: { - type: 'number', - allowed_answers: [{ value: 1 }, { value: 2 }, { value: 3 }], - }, - serie_3: { type: 'number', allowed_answers: [{ value: 1 }, { value: 2 }] }, - serie_4: { - type: 'number', - allowed_answers: [ - { value: 1 }, - { value: 2 }, - { value: 3 }, - { value: 4 }, - { value: 5 }, - { value: 6 }, - ], - }, -} - -export const SF36_SUBSCALES: Array = [ - { - id: 'PHYSICAL_FUNCTIONING', - input_ids_in_subscale: [ - { input_id: 'SF36_Q03', input_type: INPUT_TYPES.serie_2 }, - { input_id: 'SF36_Q04', input_type: INPUT_TYPES.serie_2 }, - { input_id: 'SF36_Q05', input_type: INPUT_TYPES.serie_2 }, - { input_id: 'SF36_Q06', input_type: INPUT_TYPES.serie_2 }, - { input_id: 'SF36_Q07', input_type: INPUT_TYPES.serie_2 }, - { input_id: 'SF36_Q08', input_type: INPUT_TYPES.serie_2 }, - { input_id: 'SF36_Q09', input_type: INPUT_TYPES.serie_2 }, - { input_id: 'SF36_Q10', input_type: INPUT_TYPES.serie_2 }, - { input_id: 'SF36_Q11', input_type: INPUT_TYPES.serie_2 }, - { input_id: 'SF36_Q12', input_type: INPUT_TYPES.serie_2 }, - ], - }, - { - id: 'ROLE_LIMITATIONS_PHYSICAL_HEALTH', - input_ids_in_subscale: [ - { input_id: 'SF36_Q13', input_type: INPUT_TYPES.serie_3 }, - { input_id: 'SF36_Q14', input_type: INPUT_TYPES.serie_3 }, - { input_id: 'SF36_Q15', input_type: INPUT_TYPES.serie_3 }, - { input_id: 'SF36_Q16', input_type: INPUT_TYPES.serie_3 }, - ], - }, - { - id: 'ROLE_LIMITATIONS_EMOTIONAL_PROBLEMS', - input_ids_in_subscale: [ - { input_id: 'SF36_Q17', input_type: INPUT_TYPES.serie_3 }, - { input_id: 'SF36_Q18', input_type: INPUT_TYPES.serie_3 }, - { input_id: 'SF36_Q19', input_type: INPUT_TYPES.serie_3 }, - ], - }, - { - id: 'ENERGY_FATIGUE', - input_ids_in_subscale: [ - { input_id: 'SF36_Q23', input_type: INPUT_TYPES.serie_4 }, - { input_id: 'SF36_Q27', input_type: INPUT_TYPES.serie_4 }, - { input_id: 'SF36_Q29', input_type: INPUT_TYPES.serie_4 }, - { input_id: 'SF36_Q31', input_type: INPUT_TYPES.serie_4 }, - ], - }, - { - id: 'EMOTIONAL_WELLBEING', - input_ids_in_subscale: [ - { input_id: 'SF36_Q24', input_type: INPUT_TYPES.serie_4 }, - { input_id: 'SF36_Q25', input_type: INPUT_TYPES.serie_4 }, - { input_id: 'SF36_Q26', input_type: INPUT_TYPES.serie_4 }, - { input_id: 'SF36_Q28', input_type: INPUT_TYPES.serie_4 }, - { input_id: 'SF36_Q30', input_type: INPUT_TYPES.serie_4 }, - ], - }, - { - id: 'SOCIAL_FUNCTIONING', - input_ids_in_subscale: [ - { input_id: 'SF36_Q20', input_type: INPUT_TYPES.serie_1 }, - { input_id: 'SF36_Q32', input_type: INPUT_TYPES.serie_1 }, - ], - }, - { - id: 'PAIN', - input_ids_in_subscale: [ - { input_id: 'SF36_Q21', input_type: INPUT_TYPES.serie_4 }, - { input_id: 'SF36_Q22', input_type: INPUT_TYPES.serie_1 }, - ], - }, - { - id: 'GENERAL_HEALTH', - input_ids_in_subscale: [ - { input_id: 'SF36_Q01', input_type: INPUT_TYPES.serie_1 }, - { input_id: 'SF36_Q33', input_type: INPUT_TYPES.serie_1 }, - { input_id: 'SF36_Q34', input_type: INPUT_TYPES.serie_1 }, - { input_id: 'SF36_Q35', input_type: INPUT_TYPES.serie_1 }, - { input_id: 'SF36_Q36', input_type: INPUT_TYPES.serie_1 }, - ], - }, -] diff --git a/todo/spadi/definition/spadi_subscales.ts b/todo/spadi/definition/spadi_subscales.ts index 659ce8b..f1f90ee 100644 --- a/todo/spadi/definition/spadi_subscales.ts +++ b/todo/spadi/definition/spadi_subscales.ts @@ -1,7 +1,7 @@ import { type DefaultSubscaleType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -export const input_type: NumberInputType = { +export const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0 }, diff --git a/todo/sst/definition/sst_inputs.ts b/todo/sst/definition/sst_inputs.ts index 135c480..f716149 100644 --- a/todo/sst/definition/sst_inputs.ts +++ b/todo/sst/definition/sst_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 1, label: { nl: 'Ja', en: 'Yes' } }, @@ -12,7 +12,7 @@ const input_type: NumberInputType = { export const SST_INPUTS: Array = [ { input_id: 'Q01', - input_label: { + label: { nl: 'Voelt uw schouder in rust met de arm langs uw lichaam comfortabel aan?', en: 'Is your shoulder comfortable with your arm at rest by your side?', }, @@ -20,7 +20,7 @@ export const SST_INPUTS: Array = [ }, { input_id: 'Q02', - input_label: { + label: { nl: 'Is het vanwege uw schouder mogelijk: om rustig (of in ieder geval: normaal) te slapen?', en: 'Does your shoulder allow you to sleep comfortably?', }, @@ -28,7 +28,7 @@ export const SST_INPUTS: Array = [ }, { input_id: 'Q03', - input_label: { + label: { nl: 'Kunt u uw hand op de rug brengen: om een blouse achter uw rug in de broek te doen?', en: 'Can you reach the small of your back to tuck in your shirt with your hand?', }, @@ -36,7 +36,7 @@ export const SST_INPUTS: Array = [ }, { input_id: 'Q04', - input_label: { + label: { nl: 'Kunt u de hand achter het hoofd brengen en tegelijkertijd de elleboog volledig opzij brengen?', en: 'Can you place your hand behind your head with the elbow straight out to the side?', }, @@ -44,7 +44,7 @@ export const SST_INPUTS: Array = [ }, { input_id: 'Q05', - input_label: { + label: { nl: 'Kunt u een licht voorwerp (bijvoorbeeld een muntstuk): met gestrekte arm op een plank op schouder hoogte leggen?', en: 'Can you place a coin on a shelf at the level of your shoulder without bending your elbow?', }, @@ -52,7 +52,7 @@ export const SST_INPUTS: Array = [ }, { input_id: 'Q06', - input_label: { + label: { nl: 'Kunt u met een voorwerp in uw hand dat ongeveer een pond weegt (bijvoorbeeld een pak suiker, flesje water), uw arm met een gestrekte elleboog heffen tot schouderhoogte?', en: 'Can you lift one pound (a full pint container) to the level of your shoulder without bending your elbow?', }, @@ -60,7 +60,7 @@ export const SST_INPUTS: Array = [ }, { input_id: 'Q07', - input_label: { + label: { nl: 'Kunt u met een voorwerp in uw hand dat ongeveer vier kilo weegt (bijvoorbeeld een tas met 2 pakken melk van 1,5 liter), uw arm met een gestrekte elleboog heffen tot schouderhoogte?', en: 'Can you lift eight pounds (a full gallon container) to the level of the top of your head without bending your elbow?', }, @@ -68,7 +68,7 @@ export const SST_INPUTS: Array = [ }, { input_id: 'Q08', - input_label: { + label: { nl: 'Kunt u een boodschappentas die ongeveer 10 kilo weegt, dragen met uw arm langs het lichaam?', en: 'Can you carry 20 pounds at your side with the affected extremity?', }, @@ -76,7 +76,7 @@ export const SST_INPUTS: Array = [ }, { input_id: 'Q09', - input_label: { + label: { nl: 'Kunt u een bal (tennisbal of iets een iets zwaardere softbal): met onderhandse techniek ongeveer 10 meter ver gooien?', en: 'Do you think you can toss a softball underhand 10 yards with the affected extremity?', }, @@ -84,7 +84,7 @@ export const SST_INPUTS: Array = [ }, { input_id: 'Q10', - input_label: { + label: { nl: 'Kunt u een bal (tennisbal of een iets zwaardere softbal): met bovenhandse techniek ongeveer 20 meter ver gooien?', en: 'Do you think you can throw a softball overhand 20 yards with the affected extremity?', }, @@ -92,7 +92,7 @@ export const SST_INPUTS: Array = [ }, { input_id: 'Q11', - input_label: { + label: { nl: 'Kunt u de achterzijde van uw niet – aangedane schouder: wassen?', en: 'Can you wash the back of your opposite shoulder with the affected extremity?', }, @@ -100,7 +100,7 @@ export const SST_INPUTS: Array = [ }, { input_id: 'Q12', - input_label: { + label: { nl: 'Is het vanwege uw schouder mogelijk: uw normale activiteiten (baan, vrijwilligers werk, huishoudelijk werk) full time uit te voeren?', en: 'Would your shoulder allow you to work full-time at your usual job?', }, diff --git a/todo/start_back_screening_tool/definition/start_back_inputs.ts b/todo/start_back_screening_tool/definition/start_back_inputs.ts index 2ecb0c7..5c4d012 100644 --- a/todo/start_back_screening_tool/definition/start_back_inputs.ts +++ b/todo/start_back_screening_tool/definition/start_back_inputs.ts @@ -4,7 +4,7 @@ import { NumberInputType } from '../../../src/types/calculations/inputs/calculat const DISAGREE_ANSWER = 0 const AGREE_ANSWER = 1 -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: DISAGREE_ANSWER, label: { en: 'Disagree', nl: 'Oneens' } }, @@ -15,7 +15,7 @@ const input_type: NumberInputType = { export const START_BACK_INPUTS: Array = [ { input_id: 'Q01', - input_label: { + label: { en: 'My back pain has spread down my leg(s) at some time in the last 2 weeks', nl: 'In de laatste 2 weken straalde mijn rugpijn wel eens uit naar één of beide benen.', }, @@ -24,7 +24,7 @@ export const START_BACK_INPUTS: Array = [ }, { input_id: 'Q02', - input_label: { + label: { en: 'I have had pain in the shoulder or neck at some time in the last 2 weeks', nl: 'In de laatste 2 weken heb ik wel eens pijn in mijn schouder of nek gehad.', }, @@ -33,7 +33,7 @@ export const START_BACK_INPUTS: Array = [ }, { input_id: 'Q03', - input_label: { + label: { en: 'I have only walked short distances because of my back pain', nl: 'Vanwege mijn rugpijn liep ik alleen korte afstanden.', }, @@ -42,7 +42,7 @@ export const START_BACK_INPUTS: Array = [ }, { input_id: 'Q04', - input_label: { + label: { en: 'In the last 2 weeks, I have dressed more slowly than usual because of back pain', nl: 'In de laatste 2 weken kleedde ik me trager dan gewoonlijk aan vanwege mijn rugpijn.', }, @@ -51,7 +51,7 @@ export const START_BACK_INPUTS: Array = [ }, { input_id: 'Q05', - input_label: { + label: { en: `It's not really safe for a person with a condition like mine to be physically active`, nl: 'Voor iemand in mijn toestand is het echt niet veilig om lichamelijk actief te zijn.', }, @@ -60,7 +60,7 @@ export const START_BACK_INPUTS: Array = [ }, { input_id: 'Q06', - input_label: { + label: { en: 'Worrying thoughts have been going through my mind a lot of the time', nl: 'Ongeruste gedachten gingen vaak door mijn hoofd.', }, @@ -69,7 +69,7 @@ export const START_BACK_INPUTS: Array = [ }, { input_id: 'Q07', - input_label: { + label: { en: `I feel that my back pain is terrible and it's never going to get any better`, nl: 'Ik vind dat mijn rugpijn verschrikkelijk is en ik geloof dat het nooit meer beter zal worden.', }, @@ -78,7 +78,7 @@ export const START_BACK_INPUTS: Array = [ }, { input_id: 'Q08', - input_label: { + label: { en: 'In general I have not enjoyed all the things I used to enjoy', nl: 'Over het geheel genomen heb ik niet genoten van alle dingen waar ik vroeger wel van genoot.', }, @@ -87,7 +87,7 @@ export const START_BACK_INPUTS: Array = [ }, { input_id: 'Q09', - input_label: { + label: { en: 'Overall, how bothersome has your back pain been in th last 2 weeks?', nl: 'Over het geheel genomen, hoe hinderlijk was uw rugpijn in de laatste 2 weken ?', }, @@ -95,7 +95,7 @@ export const START_BACK_INPUTS: Array = [ * Answer values 1 and 2 will be recoded to 0 * Answer values 3 and 4 will be recoded to 1 */ - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0, label: { en: 'Not at all', nl: 'In het geheel niet' } }, diff --git a/todo/stop_bang/definition/stop_bang_inputs.ts b/todo/stop_bang/definition/stop_bang_inputs.ts index e199e42..d50ad5d 100644 --- a/todo/stop_bang/definition/stop_bang_inputs.ts +++ b/todo/stop_bang/definition/stop_bang_inputs.ts @@ -4,7 +4,7 @@ import { NumberInputType } from '../../../src/types/calculations/inputs/calculat const NO_ANSWER = 0 const YES_ANSWER = 1 -const yes_no_input_type: NumberInputType = { +const yes_no_type: NumberInputType = { type: 'number', allowed_answers: [ { value: NO_ANSWER, label: { en: 'No' } }, @@ -15,42 +15,42 @@ const yes_no_input_type: NumberInputType = { export const STOP_BANG_INPUTS: Array = [ { input_id: 'STOP_BANG_Q01', - input_label: { + label: { en: 'Do you snore loudly?', }, - input_type: yes_no_input_type, + type: yes_no_input_type, required: true, }, { input_id: 'STOP_BANG_Q02', - input_label: { + label: { en: 'Do you often feel tired, fatigued, or sleepy during daytime?', }, - input_type: yes_no_input_type, + type: yes_no_input_type, required: true, }, { input_id: 'STOP_BANG_Q03', - input_label: { + label: { en: 'Has anyone observed you stop breathing during your sleep?', }, - input_type: yes_no_input_type, + type: yes_no_input_type, required: true, }, { input_id: 'STOP_BANG_Q04', - input_label: { + label: { en: 'Do you have or are you being treated for high blood pressure?', }, - input_type: yes_no_input_type, + type: yes_no_input_type, required: true, }, { input_id: 'STOP_BANG_Q05', - input_label: { + label: { en: `What is the patient's BMI?`, }, - input_type: { + type: { type: 'number', range: { min: { value: 0 }, @@ -61,10 +61,10 @@ export const STOP_BANG_INPUTS: Array = [ }, { input_id: 'STOP_BANG_Q06', - input_label: { + label: { en: "What is the patient's age?", }, - input_type: { + type: { type: 'number', range: { min: { value: 0 }, @@ -75,10 +75,10 @@ export const STOP_BANG_INPUTS: Array = [ }, { input_id: 'STOP_BANG_Q07', - input_label: { + label: { en: `What is the patient's neck circumference?`, }, - input_type: { + type: { type: 'number', range: { min: { value: 0 }, @@ -89,10 +89,10 @@ export const STOP_BANG_INPUTS: Array = [ }, { input_id: 'STOP_BANG_Q08', - input_label: { + label: { en: "What is the patient's gender?", }, - input_type: { + type: { type: 'number', allowed_answers: [ { diff --git a/todo/tampa/definition/tampa_inputs.ts b/todo/tampa/definition/tampa_inputs.ts index dd6a45c..d5770bc 100644 --- a/todo/tampa/definition/tampa_inputs.ts +++ b/todo/tampa/definition/tampa_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 1, label: { en: 'Strongly disagree' } }, diff --git a/todo/visa/visa_a/definition/visa_a_inputs.ts b/todo/visa/visa_a/definition/visa_a_inputs.ts index ccbb779..d6043ba 100644 --- a/todo/visa/visa_a/definition/visa_a_inputs.ts +++ b/todo/visa/visa_a/definition/visa_a_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../../src/types/calculations.types' import { NumberInputType } from '../../../../src/types/calculations/inputs/calculation-inputs.types' -const DEFAULT_INPUT_TYPE: NumberInputType = { +const DEFAULT_type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0 }, @@ -21,37 +21,37 @@ const DEFAULT_INPUT_TYPE: NumberInputType = { export const VISA_A_INPUTS: Array = [ { input_id: 'VISA_A_Q1', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_A_Q02', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_A_Q03', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_A_Q04', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_A_Q05', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_A_Q06', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_A_Q07', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -64,10 +64,10 @@ export const VISA_A_INPUTS: Array = [ }, { input_id: 'VISA_A_Q08', - input_label: { + label: { en: "Select what's applicable", }, - input_type: { + type: { type: 'string', allowed_answers: [ { @@ -97,7 +97,7 @@ export const VISA_A_INPUTS: Array = [ }, { input_id: 'VISA_A_Q08_A', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -116,7 +116,7 @@ export const VISA_A_INPUTS: Array = [ }, { input_id: 'VISA_A_Q08_B', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -137,7 +137,7 @@ export const VISA_A_INPUTS: Array = [ }, { input_id: 'VISA_A_Q08_C', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, diff --git a/todo/visa/visa_g/definition/visa_g_inputs.ts b/todo/visa/visa_g/definition/visa_g_inputs.ts index 40ecd01..ac64f08 100644 --- a/todo/visa/visa_g/definition/visa_g_inputs.ts +++ b/todo/visa/visa_g/definition/visa_g_inputs.ts @@ -3,7 +3,7 @@ import type { InputType } from '../../../../src/types/calculations.types' export const VISA_G_INPUTS: Array = [ { input_id: 'VISA_G_Q01', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -23,7 +23,7 @@ export const VISA_G_INPUTS: Array = [ }, { input_id: 'VISA_G_Q02', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -37,7 +37,7 @@ export const VISA_G_INPUTS: Array = [ }, { input_id: 'VISA_G_Q03', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -51,7 +51,7 @@ export const VISA_G_INPUTS: Array = [ }, { input_id: 'VISA_G_Q04', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -65,7 +65,7 @@ export const VISA_G_INPUTS: Array = [ }, { input_id: 'VISA_G_Q05', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -79,7 +79,7 @@ export const VISA_G_INPUTS: Array = [ }, { input_id: 'VISA_G_Q06', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -93,7 +93,7 @@ export const VISA_G_INPUTS: Array = [ }, { input_id: 'VISA_G_Q07', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -106,10 +106,10 @@ export const VISA_G_INPUTS: Array = [ }, { input_id: 'VISA_G_Q08', - input_label: { + label: { en: "Select what's applicable", }, - input_type: { + type: { type: 'string', allowed_answers: [ { @@ -139,7 +139,7 @@ export const VISA_G_INPUTS: Array = [ }, { input_id: 'VISA_G_Q08_A', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -158,7 +158,7 @@ export const VISA_G_INPUTS: Array = [ }, { input_id: 'VISA_G_Q08_B', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -179,7 +179,7 @@ export const VISA_G_INPUTS: Array = [ }, { input_id: 'VISA_G_Q08_C', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 6 }, diff --git a/todo/visa/visa_p/definition/visa_p_inputs.ts b/todo/visa/visa_p/definition/visa_p_inputs.ts index 2e51a76..886f5a3 100644 --- a/todo/visa/visa_p/definition/visa_p_inputs.ts +++ b/todo/visa/visa_p/definition/visa_p_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../../src/types/calculations.types' import { NumberInputType } from '../../../../src/types/calculations/inputs/calculation-inputs.types' -const DEFAULT_INPUT_TYPE: NumberInputType = { +const DEFAULT_type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0 }, @@ -21,37 +21,37 @@ const DEFAULT_INPUT_TYPE: NumberInputType = { export const VISA_P_INPUTS: Array = [ { input_id: 'VISA_P_Q01', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_P_Q02', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_P_Q03', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_P_Q04', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_P_Q05', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_P_Q06', - input_type: DEFAULT_INPUT_TYPE, + type: DEFAULT_INPUT_TYPE, required: true, }, { input_id: 'VISA_P_Q07', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -64,10 +64,10 @@ export const VISA_P_INPUTS: Array = [ }, { input_id: 'VISA_P_Q08', - input_label: { + label: { en: "Select what's applicable", }, - input_type: { + type: { type: 'string', allowed_answers: [ { @@ -97,7 +97,7 @@ export const VISA_P_INPUTS: Array = [ }, { input_id: 'VISA_P_Q08_A', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -116,7 +116,7 @@ export const VISA_P_INPUTS: Array = [ }, { input_id: 'VISA_P_Q08_B', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, @@ -137,7 +137,7 @@ export const VISA_P_INPUTS: Array = [ }, { input_id: 'VISA_P_Q08_C', - input_type: { + type: { type: 'number', allowed_answers: [ { value: 0 }, diff --git a/todo/yp_core/definition/yp_core_inputs.ts b/todo/yp_core/definition/yp_core_inputs.ts index dda7cd7..543567a 100644 --- a/todo/yp_core/definition/yp_core_inputs.ts +++ b/todo/yp_core/definition/yp_core_inputs.ts @@ -60,72 +60,72 @@ const ANSWERS_INVERSE: NumberInputType = { export const YP_CORE_INPUTS: Array = [ { input_id: 'YP_CORE_Q01', - input_label: { + label: { en: 'Over the last week, I’ve felt edgy or nervous', }, - input_type: ANSWERS, + type: ANSWERS, }, { input_id: 'YP_CORE_Q02', - input_label: { + label: { en: 'Over the last week, I haven’t felt like talking to anyone', }, - input_type: ANSWERS, + type: ANSWERS, }, { input_id: 'YP_CORE_Q03', - input_label: { + label: { en: 'Over the last week, I’ve felt able to cope when things go wrong', }, - input_type: ANSWERS_INVERSE, + type: ANSWERS_INVERSE, }, { input_id: 'YP_CORE_Q04', - input_label: { + label: { en: 'Over the last week, I’ve thought of hurting myself', }, - input_type: ANSWERS, + type: ANSWERS, }, { input_id: 'YP_CORE_Q05', - input_label: { + label: { en: 'Over the last week, there’s been someone I felt able to ask for help', }, - input_type: ANSWERS_INVERSE, + type: ANSWERS_INVERSE, }, { input_id: 'YP_CORE_Q06', - input_label: { + label: { en: 'Over the last week, my thoughts and feelings distressed me', }, - input_type: ANSWERS, + type: ANSWERS, }, { input_id: 'YP_CORE_Q07', - input_label: { + label: { en: 'Over the last week, my problems have felt too much for me', }, - input_type: ANSWERS, + type: ANSWERS, }, { input_id: 'YP_CORE_Q08', - input_label: { + label: { en: 'Over the last week, it’s been hard to go to sleep or stay asleep', }, - input_type: ANSWERS, + type: ANSWERS, }, { input_id: 'YP_CORE_Q09', - input_label: { + label: { en: 'Over the last week, I’ve felt unhappy', }, - input_type: ANSWERS, + type: ANSWERS, }, { input_id: 'YP_CORE_Q10', - input_label: { + label: { en: 'Over the last week, I’ve done all the things I wanted to', }, - input_type: ANSWERS_INVERSE, + type: ANSWERS_INVERSE, }, ] diff --git a/todo/zarit_12/definition/zarit_12_inputs.ts b/todo/zarit_12/definition/zarit_12_inputs.ts index ea5eaaa..5548b85 100644 --- a/todo/zarit_12/definition/zarit_12_inputs.ts +++ b/todo/zarit_12/definition/zarit_12_inputs.ts @@ -1,7 +1,7 @@ import type { InputType } from '../../../src/types/calculations.types' import { NumberInputType } from '../../../src/types/calculations/inputs/calculation-inputs.types' -const input_type: NumberInputType = { +const type: NumberInputType = { type: 'number', allowed_answers: [ { value: 0 },