Creating your first study¶
This will guide you through creating your first study using recruIT.
The query module regularly searches the FHIR server for
ResearchStudy resources that comply to the https://openrecruit.dev/fhir/StructureDefinition/recruit-research-study profile.
These are resources, that reference a Group via enrollment which in turn references Library resources with the
actual SQL that represent the eligibility criteria of the study.
flowchart LR
query["query module"] -.->|polls| study["ResearchStudy<br/>recruit-research-study"]
study -->|enrollment| group["Group<br/>eligibility criteria"]
group -->|"characteristic[0].valueReference"| lib0["Library<br/>SQLQuery"]
group -->|"characteristic[1].valueReference"| lib1["Library<br/>SQLQuery"]
So, to create your own resource, all you have to do is define
a compliant ResearchStudy resource and send it to the FHIR server that is polled by the query module.
To make it easier, the screening list module also has an editor for trials accessible by admin users.
In the left sidebar, click on Administration → Trial Editor:

Next, add the eligibility criteria by either selecting existing SQLQuery library resources from the server or
by writing your own query:

Next, you can click on Submit to FHIR server to send the study to the server. The query module will eventually
recognize the new study and add patients to the screening list in a few minutes.
Finally, go back to Recruitment → Trials, click on your newly-created study and view the recommendations:

Congratulations, you've just created your first cohort definition and displayed potentially eligible patients in the screening list.
To write criteria of your own, continue with Authoring eligibility criteria.