Logo GenPRES

ATCGroup Module

Creates the ATC groups of the generic products from the G-Standaard ATC codes, cached in a file, finds the ATC groups of an ATC level 5 code and creates a tab-separated product table as text.

Functions and values

Function or value Description

_get ()

Full Usage: _get ()

Parameters:
    () : unit

Returns: ATCGroup array
() : unit
Returns: ATCGroup array

create atc1 ang ange atc2 thg thge atc3 ths thse atc4 phg phge atc5 sub sube gen frm rts

Full Usage: create atc1 ang ange atc2 thg thge atc3 ths thse atc4 phg phge atc5 sub sube gen frm rts

Parameters:
    atc1 : string
    ang : string
    ange : string
    atc2 : string
    thg : string
    thge : string
    atc3 : string
    ths : string
    thse : string
    atc4 : string
    phg : string
    phge : string
    atc5 : string
    sub : string
    sube : string
    gen : string
    frm : string
    rts : string

Returns: ATCGroup

Create a ATC group.

atc1 : string
ang : string
ange : string
atc2 : string
thg : string
thge : string
atc3 : string
ths : string
thse : string
atc4 : string
phg : string
phge : string
atc5 : string
sub : string
sube : string
gen : string
frm : string
rts : string
Returns: ATCGroup

empty

Full Usage: empty

Returns: ATCGroup

An empty ATC group.

Returns: ATCGroup

findByATC5 atc

Full Usage: findByATC5 atc

Parameters:
    atc : string -

Returns: ATCGroup array

Find ATC groups by ATC5 code.

atc : string

Returns: ATCGroup array

get

Full Usage: get

Returns: unit -> ATCGroup[]

Get all ATC groups.

This function is memoized.

Returns: unit -> ATCGroup[]

load ()

Full Usage: load ()

Parameters:
    () : unit

Load the ATC groups in memory.

() : unit

parse gpks

Full Usage: parse gpks

Parameters:
    gpks : int array - A list of GPKs for which to parse ATC groups

Returns: ATCGroup array

Parse the BST801T records into ATC groups.

gpks : int array

A list of GPKs for which to parse ATC groups

Returns: ATCGroup array

productCSV gpps

Full Usage: productCSV gpps

Parameters:
Returns: string

Create a CSV file for an array of GenPresProducts.

gpps : GenPresProduct[]
Returns: string

Type something to start searching.