also LOINC http://www.hl7.eu/scores/APGAR%20(1%20Min).htm

SEE value set example also https://r.details.loinc.org/AnswerList/LL386-4.html


invariants:

  match 1, 5, 10 min apgar with child observations

inv-apgar01: (component.where(code.coding.where(code='32406-1').exists()).exists() 
or component.where(code.coding.where(code='32407-9').exists()).exists() 
or component.where(code.coding.where(code='32408-7').exists()).exists() 
or component.where(code.coding.where(code='32410-3').exists()).exists() 
or component.where(code.coding.where(code='32409-5').exists()).exists()) implies
code.coding.where(code='9272-6')

inv-apgar02: (component.where(code.coding.where(code='32411-1').exists()).exists() 
or component.where(code.coding.where(code='32412-9').exists()).exists() 
or component.where(code.coding.where(code='32413-7').exists()).exists() 
or component.where(code.coding.where(code='32415-2').exists()).exists() 
or component.where(code.coding.where(code='32414-5').exists()).exists()) implies
code.coding.where(code='9273-4').exists() 


inv-apgar03: (component.where(code.coding.where(code='32401-2').exists()).exists() 
or component.where(code.coding.where(code='32402-0').exists()).exists() 
or component.where(code.coding.where(code='32403-8').exists()).exists() 
or component.where(code.coding.where(code='32405-3').exists()).exists() 
or component.where(code.coding.where(code='32404-6').exists()).exists()) implies
code.coding.where(code='9271-8').exists() 

elementdescriptionLOINCSNOMEDvalue
Observation.code

APGAR after 1 minute

APGAR after 5 minutes

APGAR after 10 minutes

APGAR after 15 minutes

APGAR after 20 minutes

valueset: apgar-score-type

codesystem: apgarhttp://loinc.org

(1 min) 9272-6

(5 min) 9273-4

(10min) 9271-8

169895004

169909004

169922007

443848000

443849008


Observation.valueQuantity



code = "{score}"

system = "http://unitsofmeasure.org"

Observation.component.codecolour score

valueset: apgar-colour


codesystem: http://loinc.org

(1 min) 32406-1

(5 min) 32411-1

(10 min) 32401-2

249227004

valueset: apgar-colour-finding

codesystem: http://loinc.org

LA6722-8 0 The baby's whole body is completely bluish-gray or pale
LA6723-6 1 Good color in body with bluish hands or feet 
LA6724-4 2 Good color all over

Observation.component.codeheart rate

valueset: apgar-hearth-rate

codesystem: http://loinc.org

(1 min) 32407-9

(5 min) 32412-9

(10 min) 32402-0

249223000

valueset: apgar-heart-rate-finding

codesystem: http://loinc.org

LA6716-0 0  No heart rate    
LA6717-8 1  Fewer than 100 beats per minute    
LA6718-6 2  At least 100 beats per minute    

Observation.component.codemuscle tone

valueset: apgar-muscle-tone


codesystem: http://loinc.org

(1 min) 32408-7

(5 min) 32413-7

(10 min) 32403-8

249225007

valueset: apgar-muscle-tone-finding

codesystem: http://loinc.org

LA6713-7 0  Limp; no movement    
LA6714-5 1  Some flexion of arms and legs    
LA6715-2 2  Active motion    

Observation.component.coderespiratory effort

valueset: apgar-respiratory-effort


codesystem: http://loinc.org

(1 min) 32410-3

(5 min) 32415-2

(10 min) 32405-3

249224006

valueset: apgar-repiratory-effort-finding

codesystem: http://loinc.org

LA6725-1 0  Not breathing    
LA6726-9 1  Weak cry; may sound like whimpering, slow or irregular breathing    
LA6727-7 2  Good, strong cry; normal rate and effort of breathing    

Observation.component.code reflex irritability

valueset: apgar-reflex-irritiability


codesystem: http://loinc.org

(1 min) 32409-5

(5 min) 32414-5

(10 min) 32404-6

249226008

valueset: apgar-reflex-irritability-finding

codesystem: http://loinc.org

LA6719-4 0 No response to airways being suctioned   
LA6720-2 1 Grimace during suctioning  
LA6721-0 2 Grimace and pulling away, cough, or sneeze during suctioning