Sub: Senaite API - Importing Samples with Results in a Single Call
Hi everyone,
I’m currently migrating our LIMS system from BIKA to Senaite.
In BIKA, I can import Analysis Request results using the following API call, which provides both the Analysis Request and its results:
<baseURL> /bikatest/@@API/read?catalog_name=bika_catalog
&portal_type=AnalysisRequest
&cancellation_state=active
&page_size=0
&review_state:list=sample_received
&review_state:list=to_be_verified
&review_state:list=verified
&review_state:list=published
&exportedToQAD=false
&doNotExportToQAD=false
&include_fields=getClientReference,getClientOrderNumber,getSamplePointTitle,getRequestID,review_state,path,BatchUID
&metadata_only=true
&include_sub=Analysis
&sub_catalog=bika_analysis_catalog
&sub_include_fields=ERP_Keyword,Result,DisplayResult,review_state,getResultCaptureDate,ServiceUID,ResultOptions
However, in Senaite, when I retrieve samples, it doesn’t include the sample results. I need to make another API call to ‘analysis’ to get them.
Is there any way to import samples with their results in a single API call?
Regards
Prabu M