Written by

Technical Consultant at Traverse Health
MOD
Question Muhammad Waseem · Jul 26, 2021

Adding HS.FHIRServer.Interop.Service to FoundationProduction

Hi, 

I have created foundation production to use FHIR server. But I am missing HS.FHIRServer.Interop.Service in my production. Is there any way to add this service automatically?

Thanks 

Comments

Mike Yackanich · Jul 26, 2021

Hi Muhammad,

Not sure exactly what you mean by "add this service automatically", but if you didn't want to manually add to the production, you can use Ens.Director to programmatically add a Business Service to a production.

Hope this helps.

0
Muhammad Waseem  Jul 26, 2021 to Mike Yackanich

Thanks @Mike Yackanich
Can you please share code to add programmatically or documentation reference ?

0
Mike Yackanich  Jul 26, 2021 to Muhammad Waseem

Actually - I pointed you to Ens.Director, but that only lets you dynamically control a production (and temporarily create a business host).

But if you take a look at the OnWizardCompletion method within EnsPortal.Dialog.ProductionAddService, and AddNewItem method of EnsPortal.Dialog.ProductionAddHost I think you'll find a sample of the code that you would need.

0