Stream: shorthand
Topic: Parent PractitionerRole not found
Andy Harrison (Jun 25 2021 at 12:05):
Hi. Does anyone know why I might be getting this error when running Sushi on profiles containing "Parent: PractitionerRole" ?
The error is: Parent PractitionerRole not found for PractitionerRoleTest
[path shortened] /input/fsh/VJPractitionerRoleTest.fsh Line: 2 - 6
Thanks in advance.
Chris Moesel (Jun 25 2021 at 13:00):
@Andy Harrison - I would not expect that error. When I do a simple test on FHSOnline (link), it works fine. I can only think of two things that might cause this:
- If there is some weird hidden character that somehow snuck into that line. To fix this, I'd delete the line with
Parent: PractitionerRole
and then retype it. - If your FHIR cache is corrupted (and does not contain PractitionerRole). One way to test this is to rename your cache to something else (which is a more temporary measure than deleting it) and then try again (which will force the cache to be re-downloaded). Your FHIR cache is typically in
{User Home Directory}/.fhir
(note:{User Home Directory}
is different on Mac and Windows, which is why I don't specify it directly here).
Andy Harrison (Jun 25 2021 at 13:54):
@Chris Moesel - Thanks for your quick reponse. it's a bit of. a mystery. I tried both those actions and updated the Sushi to the 2.0.0-beta.1 that I saw was running on the FSHOnline. Same error, however, so I will need to dig around a little more. I also get the error when copying across your example.
Chris Moesel (Jun 25 2021 at 13:58):
I am perplexed. What operating system are you running on? Are you using FHIR R4? Are you using a standard sushi-config.yaml
? Does it work ok with other resources (just not PractitionerRole
)? Another thing you could try is using sushi --init
to create a brand new project, then copy/paste the definition from FSH Online into input/fsh/patient.fsh
and see if it works.
Andy Harrison (Jun 28 2021 at 08:59):
@Chris Moesel I'm running MacOS 11.2.3, editing with VS Code and the FSH plugin. I have a set of 10 profiles in the project and all are running without errors except the PractitionerRole. If I create an IG with sushi --init and copy in the example for PractitionerRole on its own it works ok. But as soon as I combine it with the other profiles (patient, careplan, careteam, practitioner, group, goal etc) I get this same error even if I leave the PractitionerRole in it's most minimal form. I have tried adding the files in different orders and editing with a simple text editor but always end up with the same error once all files are added.
Andy Harrison (Jun 28 2021 at 13:09):
@Chris Moesel Chris, I found the problem - my bad. I had named a valueset PractitionerRole in the Practitioner profile which was causing the problem. Sorry to waste yor time.
Chris Moesel (Jun 28 2021 at 13:21):
Ah-ha! Thanks for letting me know. It's not a waste of my time at all, because now I know what the issue is, and knowing that might help me help someone else in the future! We can also look into this to see if it is a case we can easily identify programatically and issue a more helpful error.
Mark Kramer (Aug 12 2021 at 19:11):
@Chris Moesel Can we make the error message more explicit? E.g., "SUSHI found a value set named PractitionerRole but needed to find a resource named PractitionerRole"?
Nick Freiter (Aug 13 2021 at 14:05):
Yeah, this is logged as an issue here: https://github.com/FHIR/sushi/issues/858 and is one of the tasks we are working on in our current sprint
Last updated: Apr 12 2022 at 19:14 UTC