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

[sm-gen]Validate FHIR Resource Names in Group Class #251

Open
4 tasks
sharon2719 opened this issue Aug 2, 2024 · 0 comments
Open
4 tasks

[sm-gen]Validate FHIR Resource Names in Group Class #251

sharon2719 opened this issue Aug 2, 2024 · 0 comments

Comments

@sharon2719
Copy link
Contributor

Description:

In the Group class, it's crucial to ensure that the resource names used are valid HL7 FHIR resource names. This validation is necessary to prevent errors and inconsistencies when working with FHIR resources, as invalid resource names can lead to data integrity issues and hinder interoperability with other FHIR-compliant systems. By adding validation checks, we can ensure that the Group class only contains valid FHIR resource names, improving the robustness and reliability of the application.

Tasks:

  • Identify Valid FHIR Resource Names:
    Compile a list of all valid HL7 FHIR resource names based on the FHIR specification. This list will serve as the reference for validation.

  • Implement Validation Logic:
    Add a validation mechanism in the Group class to check if the provided resource names are included in the list of valid FHIR resource names.
    Ensure that the validation is performed whenever a resource name is added or modified in the Group class.

  • Error Handling:
    Implement appropriate error handling to provide clear and informative messages when an invalid resource name is encountered.
    Prevent invalid resource names from being added to the Group class.

  • Unit Tests:
    Write unit tests to verify that the validation logic correctly identifies valid and invalid resource names.
    Ensure that the tests cover edge cases, such as empty strings or resource names with typos.

@sharon2719 sharon2719 added Draft and removed Draft labels Aug 2, 2024
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

1 participant