Stream: implementers
Topic: Custom operation
Tuan Do (Jul 25 2019 at 23:04):
How i #implement o custom operation #implementers
Lloyd McKenzie (Jul 26 2019 at 00:05):
Are you asking how to define one, how to declare that you implement one, or how to write the code to support one? (And if the latter, what reference implementation language are you using, if any?)
Tuan Do (Jul 26 2019 at 01:00):
I need write the code a custom operation. Implementation language i using is java and i deverlop hapi fhir server
James Agnew (Jul 26 2019 at 01:03):
You can find information on developing custom operations in HAPI FHIR here: http://hapifhir.io/doc_rest_operations.html#_toc_extended_operations
Tuan Do (Jul 26 2019 at 01:05):
You can find information on developing custom operations in HAPI FHIR here: http://hapifhir.io/doc_rest_operations.html#_toc_extended_operations
I will read it, thank you
Tuan Do (Jul 26 2019 at 03:15):
@James Agnew i created @Operation(name="$closure") in main class
Tuan Do (Jul 26 2019 at 03:16):
build and deploy ok but when i invoke this method with url http://localhost:8088/fhir/$closure
Tuan Do (Jul 26 2019 at 03:17):
i receive a message in attach
Tuan Do (Jul 26 2019 at 03:17):
can you help me
Tuan Do (Jul 26 2019 at 03:18):
James Agnew (Jul 26 2019 at 09:50):
You need to put your operation methods in a resource provider class and then register that class with the server.
See http://hapifhir.io/doc_rest_server.html
Last updated: Apr 12 2022 at 19:14 UTC