From 971a2bb4c0f1085f412ec28c4aadcfdf3db04982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8C=C3=AD=C5=BEek?= Date: Fri, 28 Jul 2023 14:25:09 +0200 Subject: [PATCH 1/2] UI settings structure definitions model --- ...ormsubmitbuttonoptions.profile.custom.json | 93 ++++++ ...63966.formuidefinition.profile.custom.json | 79 +++++ ...20163966.formuioptions.profile.custom.json | 278 ++++++++++++++++++ ...6.formuipartdefinition.profile.custom.json | 54 ++++ 4 files changed, 504 insertions(+) create mode 100644 form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formsubmitbuttonoptions.profile.custom.json create mode 100644 form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuidefinition.profile.custom.json create mode 100644 form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuioptions.profile.custom.json create mode 100644 form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuipartdefinition.profile.custom.json diff --git a/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formsubmitbuttonoptions.profile.custom.json b/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formsubmitbuttonoptions.profile.custom.json new file mode 100644 index 0000000..4f1cada --- /dev/null +++ b/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formsubmitbuttonoptions.profile.custom.json @@ -0,0 +1,93 @@ +{ + "resourceType": "StructureDefinition", + "id": "FormSubmitButtonOptions", + "type": "FormSubmitButtonOptions", + "url": "http://stapi.ai/fhir/StructureDefinition/FormSubmitButtonOptions", + "name": "FormSubmitButtonOptions", + "kind": "complex-type", + "abstract": false, + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element", + "status": "active", + "publisher": "Stapi.ai: standard-api", + "description": "UI options for submit button rendering", + "differential": { + "element": [ + { + "id": "FormSubmitButtonOptions", + "path": "FormSubmitButtonOptions", + "min": 0, + "max": "*" + }, + { + "id": "FormSubmitButtonOptions.props", + "path": "FormSubmitButtonOptions.props", + "short": "Properties of the submit button", + "definition": "Properties for customizing the submit button.", + "min": 0, + "max": "1", + "type": [ + { + "code": "BackboneElement" + } + ], + "isModifier": false + }, + { + "id": "FormSubmitButtonOptions.props.disabled", + "path": "FormSubmitButtonOptions.props.disabled", + "short": "Disabled status of the submit button", + "definition": "If true, the submit button will be disabled.", + "min": 0, + "max": "1", + "type": [ + { + "code": "boolean" + } + ], + "isModifier": false + }, + { + "id": "FormSubmitButtonOptions.props.className", + "path": "FormSubmitButtonOptions.props.className", + "short": "CSS class name of the submit button", + "definition": "The CSS class name for the submit button.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormSubmitButtonOptions.norender", + "path": "FormSubmitButtonOptions.norender", + "short": "Render submit button option", + "definition": "If true, the submit button will not be rendered.", + "min": 0, + "max": "1", + "type": [ + { + "code": "boolean" + } + ], + "isModifier": false + }, + { + "id": "FormSubmitButtonOptions.submitText", + "path": "FormSubmitButtonOptions.submitText", + "short": "Submit button text option", + "definition": "The text to display on the submit button.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + } + ] + } +} diff --git a/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuidefinition.profile.custom.json b/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuidefinition.profile.custom.json new file mode 100644 index 0000000..3abb040 --- /dev/null +++ b/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuidefinition.profile.custom.json @@ -0,0 +1,79 @@ +{ + "resourceType": "StructureDefinition", + "id": "FormUIDefinition", + "type": "StructureDefinition", + "url": "http://stapi.ai/fhir/StructureDefinition/FormUIDefinition", + "name": "FormUIDefinition", + "kind": "resource", + "abstract": false, + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Resource", + "status": "active", + "publisher": "Stapi.ai: standard-api", + "description": "Definition of Form UI Schema for resource or complex type.", + "differential": { + "element": [ + { + "id": "FormUIDefinition", + "path": "FormUIDefinition", + "min": 0, + "max": "*" + }, + { + "id": "FormUIDefinition.globalOptions", + "path": "FormUIDefinition.globalOptions", + "short": "Global options for the UI form", + "definition": "Global options for customizing the UI form.", + "min": 0, + "max": "1", + "type": [ + { + "code": "UIOptions" + } + ], + "isModifier": false + }, + { + "id": "FormUIDefinition.rootFieldId", + "path": "FormUIDefinition.rootFieldId", + "short": "Root field ID for the UI form", + "definition": "Root field ID for the UI form.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIDefinition.submitButtonOptions", + "path": "FormUIDefinition.submitButtonOptions", + "short": "Submit button options for the UI form", + "definition": "Submit button options for the UI form.", + "min": 0, + "max": "1", + "type": [ + { + "code": "SubmitButtonOptions" + } + ], + "isModifier": false + }, + { + "id": "FormUIDefinition.formParts", + "path": "FormUIDefinition.formParts", + "short": "Form parts definition for the UI form", + "definition": "Form parts definition for the UI form.", + "min": 0, + "max": "*", + "type": [ + { + "code": "FormUIPartDefinition" + } + ], + "isModifier": false + } + ] + } +} diff --git a/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuioptions.profile.custom.json b/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuioptions.profile.custom.json new file mode 100644 index 0000000..40dc267 --- /dev/null +++ b/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuioptions.profile.custom.json @@ -0,0 +1,278 @@ +{ + "resourceType": "StructureDefinition", + "id": "FormUIOptions", + "type": "FormUIOptions", + "url": "http://stapi.ai/fhir/StructureDefinition/FormUIOptions", + "name": "FormUIOptions", + "kind": "complex-type", + "abstract": false, + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element", + "status": "active", + "publisher": "Stapi.ai: standard-api", + "description": "UI options for form rendering", + "differential": { + "element": [ + { + "id": "FormUIOptions", + "path": "FormUIOptions", + "short": "UI options for form rendering", + "definition": "Options for controlling how a form element is rendered.", + "min": 0, + "max": "1", + "isModifier": false + }, + { + "id": "FormUIOptions.autofocus", + "path": "FormUIOptions.autofocus", + "short": "Autofocus option", + "definition": "If true, the form input will be automatically focused.", + "min": 0, + "max": "1", + "type": [ + { + "code": "boolean" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.emptyValue", + "path": "FormUIOptions.emptyValue", + "short": "Empty value option", + "definition": "The value to use when the form input is empty.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.autocomplete", + "path": "FormUIOptions.autocomplete", + "short": "Autocomplete option", + "definition": "If 'on', the browser will automatically complete the input based on earlier typed values.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.title", + "path": "FormUIOptions.title", + "short": "Title option", + "definition": "The title of the form input.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.description", + "path": "FormUIOptions.description", + "short": "Description option", + "definition": "A description for the form input.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.widget", + "path": "FormUIOptions.widget", + "short": "Widget option", + "definition": "The name of the widget to use for rendering the form input.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.help", + "path": "FormUIOptions.help", + "short": "Help option", + "definition": "Help text for the form input.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.disabled", + "path": "FormUIOptions.disabled", + "short": "Disabled option", + "definition": "If true, the form input will be disabled.", + "min": 0, + "max": "1", + "type": [ + { + "code": "boolean" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.readonly", + "path": "FormUIOptions.readonly", + "short": "Readonly option", + "definition": "If true, the form input will be read-only.", + "min": 0, + "max": "1", + "type": [ + { + "code": "boolean" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.placeholder", + "path": "FormUIOptions.placeholder", + "short": "Placeholder option", + "definition": "Placeholder text for the form input.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.field", + "path": "FormUIOptions.field", + "short": "Field option", + "definition": "The name of the field to use for rendering the form input.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.fieldReplacesAnyOrOneOf", + "path": "FormUIOptions.fieldReplacesAnyOrOneOf", + "short": "Field replaces any or one of option", + "definition": "If true, the field replaces any or one of the form input.", + "min": 0, + "max": "1", + "type": [ + { + "code": "boolean" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.classNames", + "path": "FormUIOptions.classNames", + "short": "Class names option", + "definition": "CSS class names for the form input.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.style", + "path": "FormUIOptions.style", + "short": "Style option", + "definition": "Inline styles for the form input.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.inputType", + "path": "FormUIOptions.inputType", + "short": "Input type option", + "definition": "The HTML input type for the form input.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.label", + "path": "FormUIOptions.label", + "short": "Label option", + "definition": "If true, a label will be rendered for the form input. If false, no label will be rendered.", + "min": 0, + "max": "1", + "type": [ + { + "code": "boolean" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.order", + "path": "FormUIOptions.order", + "short": "Order option", + "definition": "An array of strings that specifies the order of form inputs.", + "min": 0, + "max": "*", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + }, + { + "id": "FormUIOptions.duplicateKeySuffixSeparator", + "path": "FormUIOptions.duplicateKeySuffixSeparator", + "short": "Duplicate key suffix separator option", + "definition": "The separator to use when appending a unique integer suffix to a duplicate key.", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "isModifier": false + } + ] + } +} diff --git a/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuipartdefinition.profile.custom.json b/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuipartdefinition.profile.custom.json new file mode 100644 index 0000000..6dfc72d --- /dev/null +++ b/form-api/src/main/java/ai/stapi/formapi/fixtures/model/230720163966.formuipartdefinition.profile.custom.json @@ -0,0 +1,54 @@ +{ + "resourceType": "StructureDefinition", + "id": "FormUIPartDefinition", + "type": "FormUIPartDefinition", + "url": "http://stapi.ai/fhir/StructureDefinition/FormUIPartDefinition", + "name": "FormUIPartDefinition", + "kind": "complex-type", + "abstract": false, + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element", + "status": "active", + "publisher": "Stapi.ai: standard-api", + "description": "UI options for form rendering", + "differential": { + "element": [ + { + "id": "FormUIPartDefinition", + "path": "Element", + "min": 0, + "max": "*" + }, + { + "id": "FormUIPartDefinition.options", + "path": "FormUIPartDefinition.options", + "short": "Options for UI part", + "definition": "Options for customizing the UI part - in case on primitive.", + "min": 0, + "max": "1", + "type": [ + { + "code": "UIOptions" + } + ], + "isModifier": false + }, + { + "id": "FormUIPartDefinition.formReference", + "path": "FormUIPartDefinition.formReference", + "short": "Reference to FormUIDefinition", + "definition": "Reference to the FormUIDefinition that this UI part is associated with - in case of complex type.", + "min": 0, + "max": "1", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://example.com/fhir/StructureDefinition/FormUIDefinition" + ] + } + ], + "isModifier": false + } + ] + } +} From 56e2dedc39cedfa14ba2a2643600800547c1cd59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8C=C3=AD=C5=BEek?= Date: Fri, 4 Aug 2023 01:37:27 +0200 Subject: [PATCH 2/2] Update stapi core version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 89d50b5..76cbdb2 100644 --- a/pom.xml +++ b/pom.xml @@ -34,7 +34,7 @@ - 0.3.1 + 0.3.2 17 3.5.0 2.22.2