while expositing, if:
- there is no matching code/compendium
- Or there is a matching compendium/code AND it IS NOT marked 'ignorable' AND it DOES NOT have a noumenon yet
then:
- create an oddity as normal.
- Also, POST to lexicon.physioagereporting.com/code_pairs.json with the following params:
{'code_pair': {
first_identifier: '...',
first_description: '...',
first_codeset: '...',
second_identifier: '...',
second_description: '...',
second_codeset: '...'
}}
If you aren't familiar with the 'nested parameters' thing above, Rails uses [brackets] to do that.
So "code_pair[first_identifier]" would be the first key.
Here's a recent example of a code pair received by the lex:
"code_pair"=>{"first_codeset"=>"labcorp.com", "first_description"=>"HHV 6 IgG Antibodies", "first_identifier"=>"161076", "second_codeset"=>"LOINC", "second_description"=>"Herpes virus 6 Ab.IgG", "second_identifier"=>"41148-8"}}