getCompoundName: Gets parts of batch code

View source: R/preferredBatchCode.R

getCompoundNameR Documentation

Gets parts of batch code

Description

Takes a batch code and splits it on the last batch separator, as defined in racas::applicationSettings$server.service.external.preferred.batchid.separator getCompoundName will return everything except the last section, while getBatchName will return everything after the last separator. So "CMPD-000001-01A" is split into "CMPD-000001" and "01A" when the separator is "-"

Usage

getCompoundName(batchCode)

getBatchNumber(batchCode)

Arguments

batchCode

vector of batch codes

Value

character vector


mcneilco/racas documentation built on June 15, 2025, 5:20 a.m.