Gravitate-Health / fhir-connector

FHIR connector example
Apache License 2.0
0 stars 2 forks source link

Make the connector delete resources that are not in the source (only in production) #9

Open gmej opened 11 months ago

gmej commented 11 months ago

Connector should check that the state of the ePIs is exactly the same as the source.

If an ePI needs to be deleted, resources must be deleted in the following order: RESOURCES_TO_DELETE = [ "Composition", "ClinicalUseDefinition", "Ingredient", "PackagedProductDefinition", "AdministrableProductDefinition", "RegulatedAuthorization", "ManufacturedItemDefinition", "Organization", "MedicinalProductDefinition", "Bundle" ]

gmej commented 2 months ago

I found about the $expunge operation which does all the work for us :)

Question: Only for production really? I would say deploy first to dev, and then deploy to prod if we like the solution.