{
"description": "Theme styling for SDC questionnaire forms including colors, fonts, and component styles.",
"_filename": "StructureDefinition-QuestionnaireTheme.json",
"package_name": "io.health-samurai.sdc.r3",
"date": null,
"derivation": "specialization",
"publisher": null,
"fhirVersion": "3.0.2",
"name": "QuestionnaireTheme",
"abstract": false,
"type": "QuestionnaireTheme",
"experimental": null,
"resourceType": "StructureDefinition",
"title": null,
"package_version": "0.2601.0",
"status": "active",
"id": "9af53b0a-ef5c-41f5-8a72-44d84a416105",
"kind": "resource",
"url": "http://health-samurai.io/fhir/sdc/StructureDefinition/QuestionnaireTheme",
"version": "0.2601.0",
"differential": {
"element": [ {
"id": "QuestionnaireTheme",
"max": "*",
"min": 0,
"path": "QuestionnaireTheme"
}, {
"id": "QuestionnaireTheme.theme-name",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.theme-name",
"type": [ {
"code": "string"
} ],
"short": "Theme Title"
}, {
"id": "QuestionnaireTheme.language",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.language",
"type": [ {
"code": "code"
} ],
"short": "Theme Language",
"binding": {
"strength": "required",
"valueSetUri": "http://hl7.org/fhir/ValueSet/all-languages"
}
}, {
"id": "QuestionnaireTheme.design-system",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.design-system",
"type": [ {
"code": "string"
} ],
"short": "Design System used in form components",
"constraint": [ {
"key": "enum-1",
"human": "Design system must be one of: aidbox-desktop, aidbox-mobile, NHS",
"severity": "error",
"expression": "%context.subsetOf('aidbox-desktop' | 'aidbox-mobile' | 'NHS')"
} ]
}, {
"id": "QuestionnaireTheme.main-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.main-color",
"type": [ {
"code": "string"
} ],
"short": "Main accent color (RGB hex)"
}, {
"id": "QuestionnaireTheme.font-family",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.font-family",
"type": [ {
"code": "string"
} ],
"short": "Font-Family",
"constraint": [ {
"key": "enum-2",
"human": "Font family must be one of: Product Sans, Metropolis, Inter",
"severity": "error",
"expression": "%context.subsetOf('Product Sans' | 'Metropolis' | 'Inter')"
} ]
}, {
"id": "QuestionnaireTheme.base-font-size",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.base-font-size",
"type": [ {
"code": "decimal"
} ],
"short": "Minimal text size (px)"
}, {
"id": "QuestionnaireTheme.brand-image",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.brand-image",
"type": [ {
"code": "BackboneElement"
} ],
"short": "Brand images"
}, {
"id": "QuestionnaireTheme.brand-image.top-right",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.brand-image.top-right",
"type": [ {
"code": "BackboneElement"
} ]
}, {
"id": "QuestionnaireTheme.brand-image.top-right.url",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.brand-image.top-right.url",
"type": [ {
"code": "string"
} ],
"short": "Web link to top-right image"
}, {
"id": "QuestionnaireTheme.brand-image.bottom-left",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.brand-image.bottom-left",
"type": [ {
"code": "BackboneElement"
} ]
}, {
"id": "QuestionnaireTheme.brand-image.bottom-left.url",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.brand-image.bottom-left.url",
"type": [ {
"code": "string"
} ],
"short": "Web link to bottom-left image"
}, {
"id": "QuestionnaireTheme.background",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.background",
"type": [ {
"code": "BackboneElement"
} ],
"short": "Background styles"
}, {
"id": "QuestionnaireTheme.background.main-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.background.main-color",
"type": [ {
"code": "string"
} ],
"short": "Main background color (RGB hex)"
}, {
"id": "QuestionnaireTheme.background.form-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.background.form-color",
"type": [ {
"code": "string"
} ],
"short": "Background color for form (RGB hex)"
}, {
"id": "QuestionnaireTheme.background.toolbar-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.background.toolbar-color",
"type": [ {
"code": "string"
} ],
"short": "Background color for toolbar that displays below the form (with submit button) (RGB hex)"
}, {
"id": "QuestionnaireTheme.input",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.input",
"type": [ {
"code": "BackboneElement"
} ],
"short": "Input styles"
}, {
"id": "QuestionnaireTheme.input.accent-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.input.accent-color",
"type": [ {
"code": "string"
} ],
"short": "Main color for inputs (border color for text inputs, background for checkbox, etc.) (RGB hex)"
}, {
"id": "QuestionnaireTheme.input.text-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.input.text-color",
"type": [ {
"code": "string"
} ],
"short": "Text color (RGB hex)"
}, {
"id": "QuestionnaireTheme.input.background-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.input.background-color",
"type": [ {
"code": "string"
} ],
"short": "Background color (RGB hex)"
}, {
"id": "QuestionnaireTheme.input.font-size",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.input.font-size",
"type": [ {
"code": "decimal"
} ],
"short": "Input font size (px)"
}, {
"id": "QuestionnaireTheme.button",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button",
"type": [ {
"code": "BackboneElement"
} ],
"short": "Button styles"
}, {
"id": "QuestionnaireTheme.button.print-text",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.print-text",
"type": [ {
"code": "string"
} ]
}, {
"id": "QuestionnaireTheme.button._print-text",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button._print-text",
"extension": [ {
"url": "http://health-samurai.io/fhir/core/StructureDefinition/additional-properties-custom-type",
"valueCode": "any"
} ]
}, {
"id": "QuestionnaireTheme.button.print-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.print-color",
"type": [ {
"code": "string"
} ],
"short": "Background color for Print button"
}, {
"id": "QuestionnaireTheme.button.print-text-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.print-text-color",
"type": [ {
"code": "string"
} ],
"short": "Text color for Print button"
}, {
"id": "QuestionnaireTheme.button.amend-text",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.amend-text",
"type": [ {
"code": "string"
} ]
}, {
"id": "QuestionnaireTheme.button._amend-text",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button._amend-text",
"extension": [ {
"url": "http://health-samurai.io/fhir/core/StructureDefinition/additional-properties-custom-type",
"valueCode": "any"
} ]
}, {
"id": "QuestionnaireTheme.button.amend-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.amend-color",
"type": [ {
"code": "string"
} ]
}, {
"id": "QuestionnaireTheme.button.amend-text-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.amend-text-color",
"type": [ {
"code": "string"
} ]
}, {
"id": "QuestionnaireTheme.button._redirect-text",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button._redirect-text",
"extension": [ {
"url": "http://health-samurai.io/fhir/core/StructureDefinition/additional-properties-custom-type",
"valueCode": "any"
} ]
}, {
"id": "QuestionnaireTheme.button.redirect-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.redirect-color",
"type": [ {
"code": "string"
} ],
"short": "Background color for Save & Close button"
}, {
"id": "QuestionnaireTheme.button.redirect-text",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.redirect-text",
"type": [ {
"code": "string"
} ]
}, {
"id": "QuestionnaireTheme.button.redirect-text-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.redirect-text-color",
"type": [ {
"code": "string"
} ],
"short": "Text color for Save & Close button"
}, {
"id": "QuestionnaireTheme.button.submit-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.submit-color",
"type": [ {
"code": "string"
} ],
"short": "Background color for Submit button"
}, {
"id": "QuestionnaireTheme.button.submit-text-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.submit-text-color",
"type": [ {
"code": "string"
} ],
"short": "Text color for Submit button"
}, {
"id": "QuestionnaireTheme.button.submit-text",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.submit-text",
"type": [ {
"code": "string"
} ]
}, {
"id": "QuestionnaireTheme.button._submit-text",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button._submit-text",
"extension": [ {
"url": "http://health-samurai.io/fhir/core/StructureDefinition/additional-properties-custom-type",
"valueCode": "any"
} ]
}, {
"id": "QuestionnaireTheme.button.accent-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.accent-color",
"type": [ {
"code": "string"
} ],
"short": "Background color for filled buttons, border color for outlined buttons. Deprecated."
}, {
"id": "QuestionnaireTheme.button.text-color",
"max": "1",
"min": 0,
"path": "QuestionnaireTheme.button.text-color",
"type": [ {
"code": "string"
} ]
} ]
},
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}