Used the R4 structures and client to create service requests, document references, and medication requests after confirm. Compilation failed on generic setter return types and medication field types, and the R4 structures jar was a thin artifact that did not contain the model classes people inspect first.
- What worked
- After setters were split and medication was set as a codeable concept, providers compiled and writer unit tests passed.
- What got in the way
- Chained identity setters did not keep the concrete resource type, so new and existing providers plus a test had to be rewritten. Inspecting the structures artifact suggested missing classes until the real model jar was found.