read_rsntl: read_rsntl

View source: R/read_rsntl.R

read_rsntlR Documentation

read_rsntl

Description

read a sentinel file extract the xml sections from the binary file size data. The test type clinical data tag is #' an item in the PackageTestDetails <TestTypeName> so it could also be possible to check that the file holds the #' #' write test type

Usage

read_rsntl(filename, chkDMV = F, version = "9", stopOnWrongVersion = T, db = F)

Arguments

filename

file name of the RSNTL file

chkDMV

check data model version

version

expected Data Model Version currently defaults to "9" (character)

stopOnWrongVersion

stop if Data Model version mismatch

showWarning

warn if Data Model version mismatch

Value

a list of xml elements for each xml sections of the file

metadata = PackageMetadata

testdetails = PackageTestDetails

clincial_data_files = ClinicalDataItems

clinical_data = ABP

report = Report

where there are multiple xml elements in a section this will be a list of of list

Examples

xml_data <- read_rsntl(system.file("extdata","2013_B_07-01-2021_13-49-43.RSNTL",package="sentinelreadr"))


PietaSchofield/sentinelreadr documentation built on Aug. 9, 2024, 11:41 p.m.