Stream: shorthand
Topic: Rule of type i cannot be applied to entity of type i
Jose Costa Teixeira (Feb 04 2021 at 00:25):
what is the cause for this error?
Rule of type i cannot be applied to entity of type i
Jose Costa Teixeira (Feb 04 2021 at 00:32):
apparently in my case it was due to a missing caret - is it possible to put this message in (simpler) english?
Chris Moesel (Feb 04 2021 at 02:00):
Wow. I have never seen that before. Do you have the exact rule that caused this message?
Jose Costa Teixeira (Feb 04 2021 at 18:35):
https://fshschool.org/FSHOnline/#/share/2O8g9pZ
Jose Costa Teixeira (Feb 04 2021 at 18:38):
issue is with the carets when defining a valueset expansion
RuleSet: ExpandedCode(sys,code, display)
* ^expansion.contains[+].system = {sys}
* ^expansion.contains[=].code = #{code}
* ^expansion.contains[=].display = "{display}"
ValueSet: VSPatientGender
Id: vs-patient-gender
Title: "Patient Gender"
Description: "Valueset - patient genders"
* ^expansion.timestamp = "2021-02-02"
* insert ExpandedCode(PatientGender, male, Male)
* insert ExpandedCode(PatientGender, female, Female)
* insert ExpandedCode(PatientGender, transgender, Transgender)
* insert ExpandedCode(PatientGender, non-binary, Non-binary)
with the carets it works
Chris Moesel (Feb 04 2021 at 19:53):
Perfect. Thank you.
Chris Moesel (Feb 04 2021 at 19:56):
Last updated: Apr 12 2022 at 19:14 UTC