Basic Search Syntax

The search syntax is similar to that of Google. Basic searches will follow the rules outlined below.

The following special characters can also be used in a basic search.

Special Characters Example Definition
" " influenza "virus A" The phrase in quotations is considered as a single search term rather than two independent terms.
AND morphine AND cutoff Both terms must exist somewhere in each search result. As stated above, AND is implied when no operator is specified between search terms. In addition, the "+" operator has the same function as AND (see the Advanced Search Syntax section). So searching for morphine AND cutoff will produce the same search result as morphine cutoff or morphine +cutoff.
OR influenza OR parainfluenza Either of the terms exist somewhere in each search result.
NOT influenza NOT equine Excludes records that contain the term after NOT. The NOT operator cannot be used with only a single search term. In addition, the - operator has the same function as NOT (see the Advanced Search Syntax section). So searching for influenza NOT equine will produce the same search result as influenza -equine.
? allergy artemi? Single character wildcard search. Cannot be used in phrases. The ? operator is particularly useful when searching for a LOINC code when you do not remember the check digit. For example, 80619-? is a valid search that will return the row for LOINC 80619-0.
* allergy artemi* Multiple character wildcard search. Cannot be used in phrases.
FieldName: Component:opiates System:hair When performing a search you can either search across all indexed fields, which is the default, or you can search for a value in a specific field using the syntax "FieldName:".

See the Basic LOINC Field Names section for a list of the basic field names for LOINC terms.
See the Advanced LOINC Field Names section for a list of the advanced field names for each type of search.

Remember that the "FieldName:" operator is only valid for the search term that it directly precedes. So the query

Component:opiates confirm

will look for opiates in the Component field and confirm in all of the indexed fields.

Searching for existence or non-existence of a value

Users have the ability to search for the existence or non-existence of a value in many of the common LOINC fields.

The search syntax for this feature is FieldName:null or FieldName:notnull. For example, to search for glucose terms that do not have a Method specified, you can use the query glucose method:null Likewise, the query glucose method:notnull will return all glucose terms that do have a method.

In addition to the "notnull" and "null" keywords, you can also use "true" and "false" to achieve the same results, for example, glucose method:true.

For more advanced search syntax see the Advanced Search Syntax section.

Basic LOINC Field Names

The LOINC search supports the use of the following field names in a basic search:

Field Name Example
LOINC LOINC:12628-4
Component Component:chemotherapy
Property glucose Property:CCnc
Timing glucose Timing:24H
System glucose System:CSF
Scale glucose Scale:Nar
Method mycobacterium Method:IA
Class glucose Class:UA

For more advanced field names see the Advanced LOINC Field Names section.