Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
sample_metadata.h
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2016 The Earlham Institute
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 
21 /*
22  * sample_metadata.h
23  *
24  * Created on: 1 Jul 2015
25  * Author: tyrrells
26  */
27 
28 #ifndef SAMPLE_METADATA_H_
29 #define SAMPLE_METADATA_H_
30 
31 
34 
35 #include "pathogenomics_service.h"
36 
37 #ifdef __cplusplus
38 extern "C"
39 {
40 #endif
41 
42 
43 
44 PATHOGENOMICS_SERVICE_LOCAL bool GetLocationData (json_t *row_p, const char * const id_s, GrassrootsServer *grassroots_p);
45 
46 
47 
57 PATHOGENOMICS_SERVICE_LOCAL bool ConvertDate (json_t *row_p);
58 
59 
60 
61 
62 PATHOGENOMICS_SERVICE_LOCAL bool RefineLocationDataForOpenCage (PathogenomicsServiceData *service_data_p, json_t *row_p, const json_t *raw_data_p, const char * const town_s, const char * const county_s);
63 
64 
65 PATHOGENOMICS_SERVICE_LOCAL const char *InsertSampleData (MongoTool *tool_p, json_t *values_p, const uint32 stage_time, PathogenomicsServiceData *data_p);
66 
67 
68 PATHOGENOMICS_SERVICE_LOCAL bool CheckSampleData (const LinkedList *headers_p, ServiceJob *job_p, PathogenomicsServiceData *data_p);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 
75 #endif /* SAMPLE_METADATA_H_ */
pathogenomics_service_data.h
ServiceJob
A datatype to represent a running task.
Definition: service_job.h:72
pathogenomics_service.h
MongoTool
A MongoTool is a datatype that allows access to the data stored within a MongoDB instance.
Definition: mongodb_tool.h:159
PATHOGENOMICS_SERVICE_LOCAL
#define PATHOGENOMICS_SERVICE_LOCAL
Definition: pathogenomics_service_library.h:42
LinkedList
A doubly-linked list that can be traversed in either direction.
Definition: linked_list.h:56
GrassrootsServer
Definition: grassroots_server.h:45
pathogenomics_service_library.h
PathogenomicsServiceData
The configuration data used by the Pathogenomics Service.
Definition: pathogenomics_service_data.h:54