-
Notifications
You must be signed in to change notification settings - Fork 20
Snapshot generation fails for Task resources #43
Comments
Forge does not add slicing tags in slices of profiles if the parent profile already has the slicing information. The HAPI snapshot generator expect these slicing tags in every profile with slices, independent of the parent profile. TODO: check FHIR spec if slicing information is needed multiple times or only when first slicing an element and not in the child profiles. Depending on this create bug report for HAPI or Forge. Thanks @hhund for finding the issue! |
Here's a patch that should fix issues with highmed-task-base-0.1.0.xml and highmed-task-request-simple-feasibility-0.1.0.xml I'm not sure tho if all my min max additions are necessary. The important bits are the tags for task.input and task.output
|
According to the FHIR specification a re-slice of an already sliced element in the parent profile needs to define the tag again in the element to be sliced. See https://www.hl7.org/fhir/profiling-examples.html, section 5.1.1.7. This means that Forge probably has an error in creating slices in child profiles since the information is missing. |
- slicing information added again, has to be done every time after changes to the profiles have been made with forge - fixes cardinalities of inputs and outputs
Snapshot generation fails if a task profile has more defined input slices than the highmed-task-base profile and throws the following exception:
The text was updated successfully, but these errors were encountered: