Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StructureMap: Questionnaire cannot be embedded in Bundle #146

Open
oliveregger opened this issue Jun 13, 2023 · 2 comments
Open

StructureMap: Questionnaire cannot be embedded in Bundle #146

oliveregger opened this issue Jun 13, 2023 · 2 comments
Assignees

Comments

@oliveregger
Copy link
Collaborator

StructureMap validation has been enforced, most of the errors seem however to strict (the maps are working).

It has already been raised on zulip: https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/Error.20StructureMap.20URL.20Value.20does.20not.20resolve

we need maybe a stripped down example to illustrate the issue

http://build.fhir.org/ig/hl7ch/ch-orf/branches/oe_fixerrors/qa.html#_scratch_ig-build-temp-NP1MUG_repo_input_resources_structuremap_OrfQrToBundle

e.g.:

ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[2]: The target path composition.id refers to the path Bundle.entry.resource.id which is unknown
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[6]: The target path composition.date refers to the path Bundle.entry.resource.date which is unknown
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[7]: The target path composition.title refers to the path Bundle.entry.resource.title which is unknown
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[8]: The target path composition.type refers to the path Bundle.entry.resource.type which is unknown
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[10]: The target context 'coding' is not known at this point
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[11]: The target context 'coding' is not known at this point
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[12]: The target path composition.category refers to the path Bundle.entry.resource.category which is unknown
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[14]: The target context 'coding' is not known at this point
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[15]: The target context 'coding' is not known at this point
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[17]: The target path patient.id refers to the path Bundle.entry.resource.id which is unknown
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[21]: The target path questionnaireresp.id refers to the path Bundle.entry.resource.id which is unknown
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].target[25]: The target path servicerequest.id refers to the path Bundle.entry.resource.id which is unknown
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].rule[0].target[1]: The FHIRPath expression passed as the evaluate parameter is invalid: Error evaluating FHIRPath expression: The name 'can' is not valid for any of the possible types: [http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.entry] (@char 1)
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].rule[0].dependent[0].variable[1]: The parameter 'q' refers to the variable 'target Resource q' but it's type is 'Questionnaire' which is not compatible with the type required for the group 'QrToBundle', which is 'Questionnaire' (from map '$this')
ERROR: StructureMap/OrfQrToBundle: StructureMap.group[0].rule[1].rule[0].dependent[0].variable[3]: The parameter 'questionnaireresp' refers to the variable 'target qrcp questionnaireresp' but it's type is 'QuestionnaireResponseTarget' which is not compatible with the type required for the group 'QrToBundle', which is 'QuestionnaireResponseTarget' (from map '$this')

@oliveregger
Copy link
Collaborator Author

all except on error has been solved

the one error that stays is, that we cannot resolve the questionnaire and assign it to the bundle, you cannot reuse the variable as a source:

StructureMap​.group[0]​.rule[1]​.rule[1]​.rule[0]​.dependent[0]​.variable[1] (l1​/c257953) error The target parameter 'q' was not found

oliveregger added a commit that referenced this issue Nov 28, 2023
@oliveregger
Copy link
Collaborator Author

currently you would need a post processing step to add the Questionnaire to the bundle again.
suggest to leave this issue currently open

oliveregger added a commit that referenced this issue Nov 29, 2023
StructureMap validation errors #146
@oliveregger oliveregger changed the title StructureMap validation errors StructureMap: Questionnaire cannot be embedded in Bundle Nov 29, 2023
oliveregger added a commit that referenced this issue Nov 29, 2023
oliveregger added a commit that referenced this issue Nov 30, 2023
@pjolo pjolo moved this to In progress in @pjolo exchange format board Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant