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

Refactor code to use new function to evaluate if Resource.id is a valid id #89

Open
nir-r opened this issue Jan 1, 2025 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@nir-r
Copy link
Collaborator

nir-r commented Jan 1, 2025

Problem definition
There are many points in the code where it is required to evaluate if a string is a valid Resource.id

  1. The logic implementation may not be fully coherent.
  2. As validation bugs are fixed they should be updated in all files

Solution
I've created a new function to validate that a string is a valid Resource.id

New function
See path => maps\idRegexMatch.txt

Existing code
Search for all instances of [A-Za-z0-9-.]{1,64}

Also see
https://hl7.org/fhir/R4/datatypes.html#id:~:text=id-,Any%20combination,-of%20upper%2D%20or/

@nir-r nir-r added the enhancement New feature or request label Jan 1, 2025
@nir-r nir-r self-assigned this Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant