To import data from your institute's Electronic Health Record (EHR), the study fields must first be configured to be able to map the incoming data to the right forms and fields within your study.
Your study must first be configured by Castor to allow linking to the EHR.
To map a field, open the Form Builder, edit the field you want to map and select the 'Metadata' tab:
Click the 'Find metadata' button to search the metadata repository for your hospital:
In the upper left text box, you can search for list for the element that you want to map your field to. In the top right dropdown you can select which datapoint you actually want to use from the incoming measurement. When you found the right element, click 'Create metadata' to add the required metadata to the field:
You will notice that a set of Metadata elements has been added. Press 'Save' to store the metadata with the field:
Once configured, incoming messages from the EHR that are tagged with the associated Glims code e.g. 'BLOOD_HEMOGLOBIN' will automatically be mapped to this field in your study. You can add the same metadata to multiple fields.
Metadata are copied when you copy a form, and can be exported/imported via the form structure export. This can save a lot of time if you have repeating laboratory forms.