Stream: IG creation
Topic: VS code error
Eshank Kaushal (Feb 23 2022 at 18:23):
ERROR: Unable to find ImplementationGuide.definition.resource.name for the resource CarePlan/colonoscopy. Name is mandatory if it cannot be inferred from the resource to allow proper population of the artifact list.
Eshank Kaushal (Feb 23 2022 at 18:26):
I am receiving this error in my VS code, the IG builds but I am just trying to clean up a few errors, can't seem to figure this one out
Richard Stanley (Feb 23 2022 at 19:15):
If I recall correctly this means a resource is not listed in the input/IG-name.xml
Jose Costa Teixeira (Feb 23 2022 at 19:19):
Eshank Kaushal said:
ERROR: Unable to find ImplementationGuide.definition.resource.name for the resource CarePlan/colonoscopy. Name is mandatory if it cannot be inferred from the resource to allow proper population of the artifact list.
I think it's a template thing
Jose Costa Teixeira (Feb 23 2022 at 19:19):
are you using sushi or json/xml to define your IG?
Lloyd McKenzie (Feb 23 2022 at 19:50):
Right. Template requires every resource - including examples to have a name. For resources that don't have a 'title' element or use SUSHI to define a title for them, you must explicitly list your artifact in the ImplementationGuide resource and populate the 'name' element.
Lloyd McKenzie (Feb 23 2022 at 19:50):
(And should also populate the 'description' element.
Eshank Kaushal (Feb 23 2022 at 20:29):
I am using sushi ! I will try this out and update, thank you !
Eshank Kaushal (Feb 24 2022 at 17:38):
ERROR: Unable to find ImplementationGuide.definition.resource.name for the resource Patient/P02. Name is mandatory if it cannot be inferred from the resource to allow proper population of the artifact list.
I am receiving this error for a patient I have created, Ive populated the "name" element and it gives me this, Sushi: error Cannot assign string value: John B. Taylor , John B. Baxter. Value does not match element type: HumanName (00:01.0323)
Jose Costa Teixeira (Feb 24 2022 at 20:05):
Patient name is not the same as resource name. And in any case, your syntax seems incorrect.
Jose Costa Teixeira (Feb 24 2022 at 20:06):
if your name is "John B. Taylor , John B. Baxter", and if that's a string, you cannot put that in patient.name. At most you can put it in patient.name.text
Last updated: Apr 12 2022 at 19:14 UTC