Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add required and recommended fields #273

Open
juliangruendner opened this issue Nov 5, 2024 · 1 comment
Open

Add required and recommended fields #273

juliangruendner opened this issue Nov 5, 2024 · 1 comment
Assignees

Comments

@juliangruendner
Copy link
Contributor

FHIR profiles define so called modifiers as well as the cardinality for each field of a profile.

This information has direct influence on the data selection and whether a field should be selected.

The fhir ontology generator uses this and other information to add to attributes to each field:
required
and
recommended.

both influence the UI as follows:

required:

If a field is required it has to be added to the dataselection and it should be selected as the health data element (like e.g. Diagnosis) is added to the data selection.

Further the element should be displayed as selected and the tick for the selection be greyed out, as it cannot be removed from the dataselection.

recommended:

If a field is recommended it has to be added to the dataselection and it should be selected as the health data element (like e.g. Diagnosis) is added to the data selection.

A recommended field, unlike a required one, can be de-selected and appears as a standard selected field.

Example excerpt from the ontology json:

{
            "id": "Observation.identifier:analyseBefundCode",
            "display": {
              "original": "analyseBefundCode",
              "translations": [
                {
                  "language": "de-DE",
                  "value": ""
                },
                {
                  "language": "en-US",
                  "value": ""
                }
              ]
            },
            "description": {
              "original": "A unique identifier assigned to this observation.",
              "translations": [
                {
                  "language": "de-DE",
                  "value": ""
                },
                {
                  "language": "en-US",
                  "value": ""
                }
              ]
            },
            "type": "Identifier",
            "recommended": true,
            "required": false,
...
@juliangruendner
Copy link
Contributor Author

@Shayan1375 requires the newest backend develop version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants