I’m trying to use the current jsonapi available with SENAITE documented here while it’s not yet FHIR-ized. Could there be a more comprehensive api documentation covering all available options with the supported portal types [ Client, AnalysisRequest, AnalysisService]?
In the end my use-case will require for an ability to translate from fhir to senaite.jsonapi. I’d like to therefore also know whether the following FHIR resources are correctly translated to what senaite api understands theoretically,
FHIR → SENAITE JSONAPI
patient → client
ServiceRequest (A lab Order) → AnalysisRequest
DiagnosticReport (Results from the ServiceRequest) → AnalysisService
SENAITE JSON API is designed to query for any content type available in the LIMS. Also, the API is able to retrieve data from content types defined in other add-ons for SENAITE, such as SENAITE Health or customer-specific extensions. Therefore, there is no specific documentation for the content types supported by SENAITE JSON API.
If you want to know the content types registered in SENAITE and their schema you can find them inside the “content” folder from any SENAITE add-on:
Thanks alot @Espurna! This clears away some mist about SENAITE content types. I don’t have much background with Python but will hopefully get along well.
Just for a start @Espurna, how would I be able to query results or progress on an analysisrequest? Would this map to the item.ResultsInterpretation property in the above snippet? Thanks.
Thanks for the above pointers @Espurna. One simple inquiry following the example below extracted from the api documentation, how is a sample associated with the type of lab test requested, say for example requesting for an HIV test on a sample for a patient/client?
I’ve been looking into the Catalog Resource and it seems like different Catalogs can be configured but I could not figure out how. Could anyone shade more light on this?
On a freshly installed SENAITE docker project, I could only interact with the default portal_catalog. How and where could the other catalogs like bika_catalog_analysisrequest_listing be defined so I could query client info using senaite.jsonapi? Thanks.
I asked because following the example you shared above, also enlisted in the api docs you shared, and using the actual getClientID parameter representing the client that I created, I got the below result.
@ruhanga Just sending a request like http://localhost:9090/senaite/@@API/senaite/v1/search?&catalog=bika_catalog_analysisrequest_listing should be enough to get samples (analysis requests in code) from SENAITE…
Hi @Espurna! I’m not sure why I cannot make a successful request on http://localhost:8080/senaite/@@API/senaite/v1/search?&catalog=bika_catalog_analysisrequest_listing url with my local instance. I can see senaite.jsonapi successfully initialised in the logs though. Is there a public and stable demo instance of SENAITE lims that new users could probably interface with should locally installed instances fail for some reason? This would be helpful for demonstrations and testing purposes. This way it would be easier sharing challenges experienced when using the app locally against the correctly running demo app.
The sample creates successfully with the correct reference to the template without errors however it(sample) is not pre-filled with the templated content(analysis services requested, analysis profiles and/or sample type specified) as would be expected and is done on the UI. I’m using SENITE 1.3.4 and senaite.jsonapi 1.2.3.
Also I would think it is not quite necessary to require a SampleType if it was already defined by the reference Template in the posted payload.
Thanks already for any guidance forward in getting this resolved.
cc: @Espurna, @xispa