get_lab_fields: Get lookup table of Go.Data lab result fields

View source: R/get_lab_fields.R

get_lab_fieldsR Documentation

Get lookup table of Go.Data lab result fields

Description

This function creates a look-up table of lab result fields (both core and user-designed questionnaire) and their hard-coded values, where relevant. The fields and values are extracted for the active outbreak of a user's Go.Data instance. Values will include user-defined values that were added to the reference sets in Go.Data. The fields and values can then be mapped to a laboratory data file, in preparation for importing to Go.Data.

Usage

get_lab_fields(url = url, username = username, password = password)

Arguments

url

URL (web address) for Go.Data instance

username

User email address used to log in to Go.Data

password

User password used to log in to Go.Data

Value

Returns a list of lab fields including values to map where relevant

Author(s)

Amy Mikhail, amy.mikhail@gmail.com

Examples

## Not run: 
# Get lab fields from a specific Go.Data instance:
labvars <- get_lab_fields(url = url, 
                          username = username, 
                          password = password)

# View the result:
labvars

## End(Not run)

WorldHealthOrganization/godataR documentation built on May 21, 2023, 11:30 a.m.