Stream: conformance
Topic: Using a profile
Jose Costa Teixeira (Nov 24 2017 at 06:13):
After defining a profile on composition, called "catalog", can i POST/PUT a [base]/catalog resource? What are the steps?
Lloyd McKenzie (Nov 24 2017 at 14:04):
No. Profiling doesn't change what endpoints exist. You could POST/PUT to Composition instances that happen to be valid against your profile, and you could query for Compositions that happen to be tagged as (theoretically) complying with the catalog profile, but that's all.
Jens Villadsen (Nov 24 2017 at 14:09):
technically ... you can. But as stated on https://www.hl7.org/fhir/basic.html#why - its not part of the standard
Lloyd McKenzie (Nov 24 2017 at 14:11):
You also have a risk of colliding with some future version of the standard.
Jose Costa Teixeira (Nov 29 2017 at 10:24):
Ok , so next question: wouldn't it be nice to some mechanism like that ? an Alias that points to a profile, and is validated accordingly...?
Jose Costa Teixeira (Nov 29 2017 at 10:38):
to address the risk of the forward compatibility (thanks), we could have [base]/profile/catalog
where profile is literal or has some naming convention to avoid the issue
Lloyd McKenzie (Nov 29 2017 at 15:49):
People generally have to write code if they're going to support a new endpoint. The standard tells them what code to write for the resources. If people can define whatever endpoints they like, we lose interoperability. There's no need for profile-specific endpoints as the resource-specific endpoints should be able to handle whatever data you might need to throw at them and the query parameters let you filter when needed.
Jose Costa Teixeira (Nov 29 2017 at 15:50):
i am assuming that in a given server we may have different profiles on a same resource.
Jose Costa Teixeira (Nov 29 2017 at 15:51):
e.g. there may be 2 types of medicationRequest - one for prescriptions, one for instance orders
Lloyd McKenzie (Nov 29 2017 at 16:37):
Sure. But those get handled with a single endpoint and differentiated by query filters if necessary.
Last updated: Apr 12 2022 at 19:14 UTC