# Quality Observable with Relative to

This template is used when the LOINC term involves a component and is relative to something else, such as a reference point or another component.

This template is documented in Confluence here: [Quality observable with Component and Relative to for LOINC (observable entity) - v1.0](/implementation-guides/loinc-implementation-guide/content-development/4.2-template-based-content-creation/quality-observable-with-component-for-loinc-grouper.md)”

The java implementation of this template can be found [here](https://github.com/IHTSDO/reporting-engine/tree/7.9.2/script-engine/src/main/java/org/ihtsdo/termserver/scripting/pipeline/loinc/template/LoincTemplatedConceptWithRelative.java).

## Attributes <a href="#id-4.2.6qualityobservablewithrelativeto-attributes" id="id-4.2.6qualityobservablewithrelativeto-attributes"></a>

* **LOINC Property**: Represents the property of the observation, such as mass concentration or presence.
* **LOINC Scale**: Describes the scale type, like quantitative or qualitative.
* **LOINC Time**: Indicates the time aspect of the observation, e.g., single point in time.
* **LOINC System**: Specifies the direct site of the observation.
* **LOINC Method**: Describes the technique used for the observation.
* **LOINC Component**: Represents the specific component being measured or observed.
* **LOINC Divisor**: Specifies what the observation is relative to.

{% hint style="info" %}
LOINC Properties currently supported: "NFr", "MFr", "CFr", "AFr", "VFr", "SFr"
{% endhint %}

## Template <a href="#id-4.2.6qualityobservablewithrelativeto-template" id="id-4.2.6qualityobservablewithrelativeto-template"></a>

### Model <a href="#id-4.2.6qualityobservablewithrelativeto-model" id="id-4.2.6qualityobservablewithrelativeto-model"></a>

<pre data-overflow="wrap"><code>=== 363787002 |Observable entity (observable entity)| : 
{
<strong>        246093002 |Component (attribute)| -> 55918008 |Monocyte (cell)|, 
</strong> 	246501002 |Technique (attribute)| -> 708058007 |Flow cytometry technique (qualifier value)|, 
 	370130000 |Property (attribute)| -> 118552002 |Number fraction (property) (qualifier value)|, 
 	370132008 |Scale type (attribute)| -> 30766002 |Quantitative (qualifier value)|, 
 	370134009 |Time aspect (attribute)| -> 123029007 |Single point in time (qualifier value)|, 
 	704325000 |Relative to (attribute)| -> 52501007 |Leukocyte (cell)|, 
 	704327008 |Direct site (attribute)| -> 119297000 |Blood specimen (specimen)| 
}
</code></pre>

### Terming <a href="#id-4.2.6qualityobservablewithrelativeto-terming" id="id-4.2.6qualityobservablewithrelativeto-terming"></a>

Template slots are filled by taking the preferred term of the relevant value from the model and making the initial character lower case, if allowed by the case significance setting of the preferred term.

\[PROPERTY] of \[COMPONENT] to \[DIVISORS] in \[SYSTEM] at \[TIME] by \[METHOD] using \[DEVICE] \[CHALLENGE]

Some slots are optional, and are then tidied up along with any linking words (eg 'using')

The LOINC Long Common Name is specified as the Preferred Term and the LOINC Short Common Name is also included unchanged as an acceptable synonym. Finally a terse form of the LOINC Parts is added, with all part names specified, separated by colons.

In the case of the example below, this results in the following terms:

<table><thead><tr><th>Concept Id</th><th>Description Id</th><th width="93.94793701171875">Acceptability</th><th width="327.2239990234375">Term</th><th>Case</th></tr></thead><tbody><tr><td>480621010000102</td><td>2199641010000117</td><td>US: P</td><td>Number fraction of monocyte to leukocyte in blood at point in time by flow cytometry (observable entity)</td><td>ci</td></tr><tr><td>480621010000102</td><td>2199631010000113</td><td>US: P</td><td>Monocytes/Leukocytes in Blood by Flow cytometry (FC)</td><td>CS</td></tr><tr><td>480621010000102</td><td>2199651010000115</td><td>US: A</td><td>Monocytes/Leukocytes FC (Bld)</td><td>CS</td></tr><tr><td>480621010000102</td><td>2199661010000118</td><td>US: A</td><td>Monocytes/Leukocytes:NFr:Pt:Bld:Qn:Flow cytometry</td><td>CS</td></tr><tr><td>480621010000102</td><td>2199621010000110</td><td>US: A</td><td>Number fraction of monocyte to leukocyte in blood at point in time by flow cytometry</td><td>ci</td></tr></tbody></table>

## Examples <a href="#id-4.2.6qualityobservablewithrelativeto-examples" id="id-4.2.6qualityobservablewithrelativeto-examples"></a>

#### LOINC Term [101147-7](https://loinc.org/101147-7/)

**Loinc Parts**

<table data-full-width="true"><thead><tr><th width="126.30078125">Part Type</th><th width="167.84765625">LOINC Part Name</th><th width="161.6640625">LOINC Part Num</th><th>Mapped to Attribute Type / Value</th></tr></thead><tbody><tr><td>Component</td><td>Monocytes</td><td>LP14313-8</td><td> 246093002 |Component (attribute)| -> 55918008 |Monocyte (cell)|</td></tr><tr><td>Divisors</td><td>Leukocytes</td><td>LP157588-7</td><td>704325000 |Relative to (attribute)| -> 52501007 |Leukocyte (cell)|</td></tr><tr><td>Property</td><td>NFr</td><td>LP6838-9</td><td>370130000 |Property (attribute)| -> 118552002 |Number fraction (property) (qualifier value)|</td></tr><tr><td>Time</td><td>Pt</td><td>LP6960-1</td><td>370134009 |Time aspect (attribute)| -> 123029007 |Single point in time (qualifier value)|</td></tr><tr><td>System</td><td>Bld</td><td>LP7057-5</td><td>704327008 |Direct site (attribute)| -> 119297000 |Blood specimen (specimen)|</td></tr><tr><td>Scale</td><td>Qn</td><td>LP7753-9</td><td>370132008 |Scale type (attribute)| -> 30766002 |Quantitative (qualifier value)|</td></tr><tr><td>Method</td><td>Flow cytometry</td><td>LP6274-7</td><td>246501002 |Technique (attribute)| -> 708058007 |Flow cytometry technique (qualifier value)|</td></tr></tbody></table>

<a href="https://docs.google.com/forms/d/e/1FAIpQLScTmbZIf0UEQwYDkY27EEWBkaiYkHSbR0_9DmFrMLXoQLyL7Q/viewform?usp=pp_url&#x26;entry.1767247133=LOINC+Implementation+Guide&#x26;entry.670899847=Quality%20Observable%20with%20Relative%20to" class="button primary">Provide Feedback</a>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snomed.org/implementation-guides/loinc-implementation-guide/content-development/4.2-template-based-content-creation/4.2.6-quality-observable-with-relative-to.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
