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.
|
Go to the documentation of this file.
23 #ifndef SERVICES_FIELD_TRIALS_INCLUDE_STUDY_TREATMENT_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_STUDY_TREATMENT_H_
74 #ifndef DOXYGEN_SHOULD_SKIP_THIS
76 #ifdef ALLOCATE_TREATMENT_TAGS
77 #define TREATMENT_PREFIX DFW_FIELD_TRIAL_SERVICE_LOCAL
78 #define TREATMENT_VAL(x) = x
79 #define TREATMENT_CONCAT_VAL(x,y) = x y
81 #define TREATMENT_PREFIX extern
82 #define TREATMENT_VAL(x)
83 #define TREATMENT_CONCAT_VAL(x,y)
90 TREATMENT_PREFIX
const char *TR_TERM_S
TREATMENT_VAL (
"term");
91 TREATMENT_PREFIX
const char *TR_PARENTS_S
TREATMENT_VAL (
"parent_name");
92 TREATMENT_PREFIX
const char *TR_SYNONYMS_S
TREATMENT_VAL (
"synonyms");
json_t * GetTreatmentAsJSON(const Treatment *treatmnent_p)
MEM_FLAG
An enum specifying the particular status of a piece of dynamically allocated memory for a particular ...
Definition: memory_allocations.h:38
TreatmentNode * AllocateTreatmentNode(Treatment *treatment_p, MEM_FLAG treatment_mem)
Treatment * GetTreatmentFromJSON(const json_t *treatmnent_json_p)
A treatment defines an experimental process that can be applied.
Definition: treatment.h:40
ListItem tn_node
Definition: treatment.h:56
bool AddTreatmentValue(Treatment *treatment_p, KeyValuePair *pair_p)
size_t tr_num_parents
Definition: treatment.h:47
char ** tr_parent_names_ss
Definition: treatment.h:46
void FreeTreatmentNode(ListItem *treatment_node_p)
The keys for the Grassroots Schema.
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
#define CONTEXT_PREFIX_SCHEMA_ORG_S
Definition: schema_keys.h:103
A pair of strings.
Definition: key_value_pair.h:42
Treatment * AllocateTreatment(SchemaTerm *term_p, char **parent_names_ss, const size_t num_parents, const bool copy_parents_flag, char **synonyms_ss, const size_t num_synonyms, const bool copy_synonyms_flag, bson_oid_t *id_p)
const TREATMENT_PREFIX char *TR_TERM_S TREATMENT_VAL("term")
bool AddTreatmentToJSON(const Treatment *treatment_p, json_t *root_p)
MEM_FLAG tn_treatment_mem
Definition: treatment.h:60
bson_oid_t * tr_id_p
Definition: treatment.h:42
char ** tr_synonyms_ss
Definition: treatment.h:49
Definition: treatment.h:54
bool AddTreatmentValueByParts(Treatment *treatment_p, const char *name_s, const char *value_s)
SchemaTerm * tr_ontology_term_p
Definition: treatment.h:44
const TREATMENT_PREFIX char *TR_NAME_S TREATMENT_CONCAT_VAL(CONTEXT_PREFIX_SCHEMA_ORG_S, "name")
const char * tn_treatment_url_s
Definition: treatment.h:66
void FreeTreatment(Treatment *treatment_p)
size_t tr_num_synonyms
Definition: treatment.h:50
A datatype for specifying ontological terms as a way to describe the data that each of the Services c...
Definition: schema_term.h:38
Treatment * tn_treatment_p
Definition: treatment.h:58
A doubly-linked node that points to its predecessor and successor.
Definition: linked_list.h:43