Retrieve Count of Patient Specimens for a Query Name/Criteria
post
/ohfapi/cg/v3.3/patientapi/clinicalspecimens/queries/count
This endpoint supports the retrieval of Count of Patient Specimens based for a Query Name or Criteria provided.
Request
Supported Media Types
- application/json
- application/xml
Cohort Query Name,Creation Date,Retention Date details
Root Schema : APIQueryRequest
Type:
Show Source
object-
cohortQueryName(optional):
string
-
createdOnDate(optional):
string(date-time)
-
executeAsync(optional):
boolean
Default Value:
false -
minRetentionPeriodDays(optional):
integer(int64)
Minimum Value:
0 -
queryCriteria(optional):
object AllCriteriaList
Contains all the Query Criteria
-
retentionDate(optional):
string(date-time)
Nested Schema : AllCriteriaList
Type:
objectContains all the Query Criteria
Show Source
-
allCriteriaList:
array allCriteriaList
Minimum Number of Items:
1Maximum Number of Items:2147483647List of Criteria Eg.DemographicsCriteria,MedicationCriteria,DiagnosisCriteria,SequenceVariantsCriteria,ConsentCriteria,DiagnosisCriteria,EncounterCriteria,ObservationCriteria,HistoryCriteria,ProceduresCriteria,SpecimenCriteria,StudyCriteria,MicroarrayExpressionCriteria,RNASeqExpressionCriteria,CopyNumberVariationCriteria,RelativeTimeEventsCriteria
Nested Schema : allCriteriaList
Type:
arrayMinimum Number of Items:
1Maximum Number of Items:
2147483647List of Criteria Eg.DemographicsCriteria,MedicationCriteria,DiagnosisCriteria,SequenceVariantsCriteria,ConsentCriteria,DiagnosisCriteria,EncounterCriteria,ObservationCriteria,HistoryCriteria,ProceduresCriteria,SpecimenCriteria,StudyCriteria,MicroarrayExpressionCriteria,RNASeqExpressionCriteria,CopyNumberVariationCriteria,RelativeTimeEventsCriteria
Show Source
-
Array of:
object criteria
Discriminator:
type
Nested Schema : criteria
Type:
objectDiscriminator:
Show Source
type-
exclude(optional):
boolean
Default Value:
false
Security
-
basicAuth: basic
Type:
basic
Response
Supported Media Types
- application/json
- application/xml
200 Response
successful operation
Root Schema : schema
Type:
integerExamples
The following example submits a POST request. See the Criteria Classes for this endpoint.
Note:
Based on the genomic information entered, patient identifiers are retrieved. Based on these patient identifiers, the specimens are retrieved.API URL
http://localhost:7010/ohfapi/cg/v3.3/patientapi/clinicalspecimens/queries/count
Example of Request Body
The following example shows the request sent in JSON format.
{
"queryCriteria" : {
"allCriteriaList" : [
{
"type" : "RelativeTimeEventsCriteria",
"baseline" : {
"diagnosisCodeList" : ["R092"]
},
"comparator" : {
"timeOperator" : "MORETHAN",
"period" : "YEARS",
"when" : "BEFORE",
"numberPeriods" : "5",
"atSpecificTime" : "true"
},
"compareTo" : {
"medicationCodeList" : ["104377"]
}
}
]
}
}
Example of Response Body
The following example shows the response returned in JSON format.
17