Stream: implementers
Topic: One to many resource
Medi Harsini (Jul 03 2020 at 19:53):
(deleted)
Medi Harsini (Jul 03 2020 at 20:01):
Hi, is there a use case where you create a resource but more than one instances of that resource is created for any logical reason?
Lloyd McKenzie (Jul 03 2020 at 20:19):
More than one instance on the same server, not that I can think of. It's possible a server might propagate the instance to other servers when an instance is created locally.
Medi Harsini (Jul 03 2020 at 20:35):
Yes on the same server. I’ve got a custom resource which I built based on Fhir which defines a concept of ‘Demand Request’ the issue is that the timing of the requested period must be within 24 hours but on the resource can be any period. So once someone published that resource, If the server doesn’t have the capability to handle more 24 hours slots, then it has to break the wider period and created multiple 24 hour ones with their identifiers (Id) in which it can be used for all the corespondent transactions. Alternatively I can
Create two version/profile of the same resource where one can handle 24 hours a lot and one can handle bigger period if applicable
Lloyd McKenzie (Jul 04 2020 at 03:29):
If it creates multiple 24-hour ones, those would be distinct instances - each with their own id.
Last updated: Apr 12 2022 at 19:14 UTC