apple / apple/FHIRModels

Consider size and character validation on FHIRString

Open
#41 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Swift
Stars
209
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Today, this library does not do any validation of strings parsed by it. FHIR defines limitations on size (e.g. 1MB for strings and 64 chars for strings used as `id`) and characters (e.g. Only A..Z, a..z, 0..9 for `id` strings). We should consider if and how such validation can happen in this library.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how FHIRString values are parsed in the library and where the FHIRString model is defined. Review the FHIR rules for string size and character restrictions, especially the distinction between general strings and id strings. Done requires an agreed validation design and tests covering the applicable limits and characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.