-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding display parameter to ValueCoding (#68)
# Adding display parameter to ValueCoding ## Currently `ValueCoding` doesn't contain the display property defined by [FHIR standard](https://www.hl7.org/fhir/datatypes.html#Coding) This is a limitation in case the response of the questionnaire is presented on other platforms like FE or Android which use this property for displaying the text of the answer. ## ⚙️ Release Notes * property `display` was added to the `ValueCoding` structure. ## 📚 Documentation * The FHIR standard defines a display attribute under the Coding * This property was unfortunately missing in the current implementation of `ValueCoding` * The cardinality of the attribute is according to [FHIR](https://www.hl7.org/fhir/datatypes.html#Coding) 0..1 * Because of this, the property is defined as an `Optional<String>` in Swift. * In case this property is missing, decoding will not fail thanks to `decodeIfPresent` ## ✅ Testing * Unit tests have been updated and are successfully passing. ### Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md). --------- Co-authored-by: Paul Schmiedmayer <[email protected]> Co-authored-by: Vishnu Ravi <[email protected]>
- Loading branch information
1 parent
ef35067
commit 7c2efdc
Showing
7 changed files
with
79 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters