Healthcare

Functions to manipulate healthcare terms and codes

code in term(term, code, [system])

Returns true if at least one of the given code(s) (in the optional system) is part of the term(s)

Parameters
Name Required Type Description

term

Yes

Text | Collection of Text

Weight

code

Yes

Text | Collection of Text

27113001

system

No

Text

http://snomed.info/sct

Returns

Boolean

Examples
healthcare.code in term("Weight", ["27113001", "399068003"]) => true

healthcare.code in term("Weight", "27113001", "http://snomed.info/sct") => true

healthcare.code in term("Weight", "50373000") => false

healthcare.code in term(["Height", "Weight"], "50373000") => true

term codes(term)

Returns all the codes from the given term(s). There is no guaranteed ordering.

Parameters
Name Required Type Description

term

Yes

Text | Collection of Text

Human targeted description of the parameter

Returns

Collection of Text

Examples
healthcare.term codes("Weight") => "[\"27113001\", \"29463-7\"]"

healthcare.term codes(["Weight", "Height"]) => "[\"27113001\", \"50373000\", \"29463-7\", \"8302-2\"]"

healthcare.term codes("Unknown Term") => "[]"

terms()

Returns a collection of text with all the terms name available in the model. There is no guaranteed ordering

Returns

Collection of Text

Examples
healthcare.terms() => "[]"