Input MPOG Concept IDs:
10495 CRYOPRECIPITATE
 
Each case will return four results for this phenotype:
- Volume in Units
- Volume in Milliliters
- Source documentation type (numeric code to indicate how the original values were reported to MPOG as units, milliliters or both)
- Source documentation description (actual description of how the original values were reported to MPOG, i.e. units, milliliters, or both)
 
Step 1: Determine if the case has the cryoprecipitate concept listed above and with administration start time(s) between anesthesia start and anesthesia end.
a) If none, return:                
1) Volume in units: 0
2) Volume in milliliters: 0
3) Source documentation type: 0
4) Source documentation Description: “No Cryo Documented in Case”
b) If the cryoprecipitate concept is identified, continue to step 2.
 
Step 2: Convert any time based units (units/hr or ml/hr) to full non-time based units (units or ml) + round
 
Step 3: Address any 5 or 10 pack charting ambiguity. For values charted in units:
	- 5 = 1 Unit
 
	- 10 = 1 Unit
 
	- 15 = 3 Units
 
	- 20 = 2 Units
 
	- 25 = 5 Units
 
	- 30 = 3 Units
 
 
Step 4: Generate case totals + indicator flags:
Step 4a: If charting is exclusively in ml’s: 
	- Sum all volumes to generate a ml value – return “Volume in ml”
 
	- Return “Primary Documentation Type” = 1
 
	- Return “Documentation Descriptor” = “Cryo Documented in mls”
 
If patient age >= 8 yrs:
	- Divide ml value by 100, round to whole number – return “Volume in Units”
 
Else age < 8 yrs
	- Set volume in units to Null.
 
Step 4b: If charting is exclusively in Units: 
If patient age >= 8 yrs:
	- Sum all volumes to generate a unit value – return “Volume in unit”
 
	- Multiply unit value by 100 – return “Volume in ml”
 
	- Return “Primary Documentation Type” = 2
 
	- Return “Documentation Descriptor” = “Cryo Documented in Units”
 
Else age < 8 yrs:
	- Set Volume in ml + Volume in Units to Null
 
	- Return “Primary Documentation Type” = 9
 
	- Return “Documentation Descriptor” = “Unable to Derive Data – Patient Age”
 
Step 4c: If charting is both in Units + mls
If patient age >= 8 yrs:
	- Sum all volumes in units to generate a raw unit value
 
	- Sum all volumes in ml to generate raw ml value
 
	- Divide volume in ml’s by 100, round, add to raw unit value.
 
	- Return calculated unit value in “Value in Units”
 
	- Multiply volume in units’s by 100, round, add to raw ml value.
 
	- Return calculated unit value in “Value in ml”
 
	- Return “Primary Documentation Type” = 3
 
	- Return “Documentation Descriptor” = “Cryo Documented in Both Units and mls”
 
Else Age < 8 yrs
	- Set Volume in ml + Volume in Units to Null
 
	- Return “Primary Documentation Type” = 9 
 
	- Return “Documentation Descriptor” = “Unable to Derive Data – Patient Age”
 
 
Step 5: If unit value > 30 
	- Set Volume in ml + Volume in Units to Null
 
	- Return “Primary Documentation Type” = 8 
 
	- Return “Documentation Descriptor” = “Unable to Derive Data – Extremely High Charted Values”