Closed LucChatty closed 3 years ago
Hi @LucChatty, thank you for the pull request! According to the Questionnaire spec, I see that item.definition is type uri. We have a special input field called SystemField: https://github.com/helsenorge/structor/blob/master/src/components/FormField/SystemField.tsx
This field will validate that the input string is a valid uri (at the moment the string must starts with either "urn:", "http://" or "https://"). Could you change your implementation of definition input to use SystemField instead of InputField?
I plan to rename SystemField to UriField later this week since that is what it actually is.
Thanks for the feedback ! here is the updated version. The only thing is the "System" label. How would you like to tackle the issue ? best
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
76.4% Duplication
Looks good! I'll do some changes to change this field to a more generic uri field, so it will also support other labels than "System"
Awesome ! thank you very much for taking our needs into account so fast
Hello, I'm working on a fhir project which use questionnaires. Your interface respond to most of our needs but one : we use the definition field with the operations $populate and $apply. best,
Luc Chatty