FHIR Chat · Adding Actions · Vulcan/SoA

Stream: Vulcan/SoA

Topic: Adding Actions


view this post on Zulip Hugh Glover (Jan 15 2021 at 17:27):

@Shannon Wenzel this is the bit I didn't get right when I first tried to add actions.

/// Now find the activity and add its reference to the components list foreach(ActivityDefinition activityDefinition in ActivitiesList) { if( activityDefinition.Id == gridRow.activityResourceID) { PlanDefinition.ActionComponent actionComponent = new PlanDefinition.ActionComponent(); actionComponent.Title = activityDefinition.Title; actionComponent.Definition = new Canonical(Server+"/ActivityDefinition/"+activityDefinition.IdElement); components.Add(actionComponent); } }

I was missing the part that made the actionComponent.Definition a canonical reference.

hth HUgh


Last updated: Apr 12 2022 at 19:14 UTC