13. Appendix C: Rules and Virtual Elements

13.1. Rules

13.1.1. AdmiInSklOnly

Class:

Skeleton

Priority:

High

Message:

Serv $skl_name.qt expected from SKL is missing

Mark:

HOSPCLUS

Description:

Admitted Patient Service Unit (ADMI) appears in skeleton data only - A Service Unit (SERV) with matching Ids is expected based on the SKL data but is not present in this file

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId as skl_AdmiId,
       skl_entity.AdmiName as skl_name
  from (
        select State,
               RegId,
               OrgId,
               HospId as HospClusId,
               AdmiId as SUId,
               AdmiName
          from skl.Admi
       ) as skl_entity
  left join SERV as checking using (State, RegId, OrgId, HospClusId, SUId)
  left join HOSPCLUS as parent using (State, RegId, OrgId, HospClusId)
 where checking.SUId is null
   and parent.HospClusId is not null
Data Elements:

13.1.2. AdmiNotInSkl

Class:

Skeleton

Priority:

High

Message:

Serv $name.qt not in SKL data

Mark:

SERV

Description:

Service Unit not in skeleton reference data - A matching Admitted Patient Service Unit (ADMI) was not found in the skeleton data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       SERV.SUName as name
  from SERV
  left join (
        select State,
               RegId,
               OrgId,
               HospId as HospClusId,
               AdmiId as SUId
          from ADMI
       ) as skl_entity using (State, RegId, OrgId, HospClusId, SUId)
  left join (
        select State,
               RegId,
               OrgId,
               HospId as HospClusId
          from skl.HOSP
       ) as skl_parent using (State, RegId, OrgId, HospClusId)
 where SUType = '1'
   and skl_entity.SUId is null
   and skl_parent.HospClusId is not null
Data Elements:

13.1.3. BadDx1Ad

Class:

Inconsistent

Priority:

Low

Message:

Principal Diagnosis ($Dx1) and Age ($Age) less than 15

Mark:

DIAG.Dx1

Description:

The following diagnosis codes should not apply to ages less than 15: ‘F03 ‘, ‘F01.0 ‘, ‘F01.1 ‘, ‘F01.2 ‘, ‘F01.3 ‘, ‘F01.8 ‘, ‘F01.9 ‘

SQL:
select ColId,
       Dx1,
       Age
  from DIAG
  join CodAge using (ColId)
 where Dx1 in ('F03   ', 'F01.0 ', 'F01.1 ', 'F01.2 ', 'F01.3 ', 'F01.8 ', 'F01.9 ')
   and Age < 15
Data Elements:
Virtual Elements:

13.1.4. BadDx1F

Class:

Inconsistent

Priority:

High

Message:

Principal Diagnosis ($Dx1) and Sex ($Sex) is not female

Mark:

DIAG.Dx1

Description:

The following diagnosis codes should only apply to females: ‘F53.0 ‘, ‘F53.1 ‘, ‘F53.8 ‘, ‘F53.9 ‘, ‘F32.01’, ‘F32.11’, ‘F32.21’, ‘F32.31’, ‘F32.81’, ‘F32.91’, ‘O99.3 ‘, ‘F52.5 ‘

SQL:
select ColId,
       Dx1,
       Sex
  from DIAG
  join COD using (ColId)
 where Dx1 in ('F53.0 ', 'F53.1 ', 'F53.8 ', 'F53.9 ', 'F32.01', 'F32.11', 'F32.21', 'F32.31', 'F32.81', 'F32.91', 'O99.3 ', 'F52.5 ')
   and Sex is not null
   and Sex != '2'
   and Sex != '3'
Data Elements:

13.1.5. BadDx1LowAge

Class:

Inconsistent

Priority:

Low

Message:

Principal Diagnosis ($Dx1) and Age ($Age) less than 1

Mark:

DIAG.Dx1

Description:

The following diagnosis codes should not apply to ages less than 1: ‘F80.0 ‘, ‘F80.1 ‘, ‘F80.2 ‘, ‘F80.3 ‘, ‘F80.8 ‘, ‘F80.9 ‘, ‘F81.0 ‘, ‘F81.1 ‘, ‘F81.2 ‘, ‘F81.3 ‘, ‘F81.8 ‘, ‘F81.9 ‘, ‘F82 ‘, ‘F83 ‘, ‘F88 ‘, ‘F89 ‘

SQL:
select ColId,
       Dx1,
       Age
  from DIAG
  join CodAge using (ColId)
 where Dx1 in ('F80.0 ', 'F80.1 ', 'F80.2 ', 'F80.3 ', 'F80.8 ', 'F80.9 ', 'F81.0 ', 'F81.1 ', 'F81.2 ', 'F81.3 ', 'F81.8 ', 'F81.9 ', 'F82   ', 'F83   ', 'F88   ', 'F89   ')
   and Age < 1
Data Elements:
Virtual Elements:

13.1.6. BadDx1M

Class:

Inconsistent

Priority:

High

Message:

Principal Diagnosis ($Dx1) and Sex ($Sex) is not male

Mark:

DIAG.Dx1

Description:

The following diagnosis codes should only apply to males: ‘F52.4 ‘

SQL:
select ColId,
       Dx1,
       Sex
  from DIAG
  join COD using (ColId)
 where Dx1 in ('F52.4 ')
   and Sex is not null
   and Sex != '1'
   and Sex != '3'
Data Elements:

13.1.7. BadDx1Ppm

Class:

Inconsistent

Priority:

Low

Message:

Principal Diagnosis ($Dx1) and Age ($Age) not between 10 and 60

Mark:

DIAG.Dx1

Description:

The following diagnosis codes should only apply to ages 10-60: ‘F53 ‘, ‘F53.0 ‘, ‘F53.1 ‘, ‘F53.8 ‘, ‘F53.9 ‘, ‘F32.01’, ‘F32.11’, ‘F32.21’, ‘F32.31’, ‘F32.81’, ‘F32.91’, ‘O99.3 ‘

SQL:
select ColId,
       Dx1,
       Age
  from DIAG
  join CodAge using (ColId)
 where Dx1 in ('F53   ', 'F53.0 ', 'F53.1 ', 'F53.8 ', 'F53.9 ', 'F32.01', 'F32.11', 'F32.21', 'F32.31', 'F32.81', 'F32.91', 'O99.3 ')
   and Age not between 10 and 60
Data Elements:
Virtual Elements:

13.1.8. BadDx2Ad

Class:

Inconsistent

Priority:

Low

Message:

Principal Diagnosis ($Dx2) and Age ($Age) less than 15

Mark:

DIAG.Dx2

Description:

The following diagnosis codes should not apply to ages less than 15: ‘F03 ‘, ‘F01.0 ‘, ‘F01.1 ‘, ‘F01.2 ‘, ‘F01.3 ‘, ‘F01.8 ‘, ‘F01.9 ‘

SQL:
select ColId,
       Dx2,
       Age
  from DIAG
  join CodAge using (ColId)
 where Dx2 in ('F03   ', 'F01.0 ', 'F01.1 ', 'F01.2 ', 'F01.3 ', 'F01.8 ', 'F01.9 ')
   and Age < 15
Data Elements:
Virtual Elements:

13.1.9. BadDx2F

Class:

Inconsistent

Priority:

High

Message:

Principal Diagnosis ($Dx2) and Sex ($Sex) is not female

Mark:

DIAG.Dx2

Description:

The following diagnosis codes should only apply to females: ‘F53.0 ‘, ‘F53.1 ‘, ‘F53.8 ‘, ‘F53.9 ‘, ‘F32.01’, ‘F32.11’, ‘F32.21’, ‘F32.31’, ‘F32.81’, ‘F32.91’, ‘O99.3 ‘, ‘F52.5 ‘

SQL:
select ColId,
       Dx2,
       Sex
  from DIAG
  join COD using (ColId)
 where Dx2 in ('F53.0 ', 'F53.1 ', 'F53.8 ', 'F53.9 ', 'F32.01', 'F32.11', 'F32.21', 'F32.31', 'F32.81', 'F32.91', 'O99.3 ', 'F52.5 ')
   and Sex is not null
   and Sex != '2'
   and Sex != '3'
Data Elements:

13.1.10. BadDx2LowAge

Class:

Inconsistent

Priority:

Low

Message:

Principal Diagnosis ($Dx2) and Age ($Age) less than 1

Mark:

DIAG.Dx2

Description:

The following diagnosis codes should not apply to ages less than 1: ‘F80.0 ‘, ‘F80.1 ‘, ‘F80.2 ‘, ‘F80.3 ‘, ‘F80.8 ‘, ‘F80.9 ‘, ‘F81.0 ‘, ‘F81.1 ‘, ‘F81.2 ‘, ‘F81.3 ‘, ‘F81.8 ‘, ‘F81.9 ‘, ‘F82 ‘, ‘F83 ‘, ‘F88 ‘, ‘F89 ‘

SQL:
select ColId,
       Dx2,
       Age
  from DIAG
  join CodAge using (ColId)
 where Dx2 in ('F80.0 ', 'F80.1 ', 'F80.2 ', 'F80.3 ', 'F80.8 ', 'F80.9 ', 'F81.0 ', 'F81.1 ', 'F81.2 ', 'F81.3 ', 'F81.8 ', 'F81.9 ', 'F82   ', 'F83   ', 'F88   ', 'F89   ')
   and Age < 1
Data Elements:
Virtual Elements:

13.1.11. BadDx2M

Class:

Inconsistent

Priority:

High

Message:

Principal Diagnosis ($Dx2) and Sex ($Sex) is not male

Mark:

DIAG.Dx2

Description:

The following diagnosis codes should only apply to males: ‘F52.4 ‘

SQL:
select ColId,
       Dx2,
       Sex
  from DIAG
  join COD using (ColId)
 where Dx2 in ('F52.4 ')
   and Sex is not null
   and Sex != '1'
   and Sex != '3'
Data Elements:

13.1.12. BadDx2Ppm

Class:

Inconsistent

Priority:

Low

Message:

Principal Diagnosis ($Dx2) and Age ($Age) not between 10 and 60

Mark:

DIAG.Dx2

Description:

The following diagnosis codes should only apply to ages 10-60: ‘F53 ‘, ‘F53.0 ‘, ‘F53.1 ‘, ‘F53.8 ‘, ‘F53.9 ‘, ‘F32.01’, ‘F32.11’, ‘F32.21’, ‘F32.31’, ‘F32.81’, ‘F32.91’, ‘O99.3 ‘

SQL:
select ColId,
       Dx2,
       Age
  from DIAG
  join CodAge using (ColId)
 where Dx2 in ('F53   ', 'F53.0 ', 'F53.1 ', 'F53.8 ', 'F53.9 ', 'F32.01', 'F32.11', 'F32.21', 'F32.31', 'F32.81', 'F32.91', 'O99.3 ')
   and Age not between 10 and 60
Data Elements:
Virtual Elements:

13.1.13. BadDx3Ad

Class:

Inconsistent

Priority:

Low

Message:

Principal Diagnosis ($Dx3) and Age ($Age) less than 15

Mark:

DIAG.Dx3

Description:

The following diagnosis codes should not apply to ages less than 15: ‘F03 ‘, ‘F01.0 ‘, ‘F01.1 ‘, ‘F01.2 ‘, ‘F01.3 ‘, ‘F01.8 ‘, ‘F01.9 ‘

SQL:
select ColId,
       Dx3,
       Age
  from DIAG
  join CodAge using (ColId)
 where Dx3 in ('F03   ', 'F01.0 ', 'F01.1 ', 'F01.2 ', 'F01.3 ', 'F01.8 ', 'F01.9 ')
   and Age < 15
Data Elements:
Virtual Elements:

13.1.14. BadDx3F

Class:

Inconsistent

Priority:

High

Message:

Principal Diagnosis ($Dx3) and Sex ($Sex) is not female

Mark:

DIAG.Dx3

Description:

The following diagnosis codes should only apply to females: ‘F53.0 ‘, ‘F53.1 ‘, ‘F53.8 ‘, ‘F53.9 ‘, ‘F32.01’, ‘F32.11’, ‘F32.21’, ‘F32.31’, ‘F32.81’, ‘F32.91’, ‘O99.3 ‘, ‘F52.5 ‘

SQL:
select ColId,
       Dx3,
       Sex
  from DIAG
  join COD using (ColId)
 where Dx3 in ('F53.0 ', 'F53.1 ', 'F53.8 ', 'F53.9 ', 'F32.01', 'F32.11', 'F32.21', 'F32.31', 'F32.81', 'F32.91', 'O99.3 ', 'F52.5 ')
   and Sex is not null
   and Sex != '2'
   and Sex != '3'
Data Elements:

13.1.15. BadDx3LowAge

Class:

Inconsistent

Priority:

Low

Message:

Principal Diagnosis ($Dx3) and Age ($Age) less than 1

Mark:

DIAG.Dx3

Description:

The following diagnosis codes should not apply to ages less than 1: ‘F80.0 ‘, ‘F80.1 ‘, ‘F80.2 ‘, ‘F80.3 ‘, ‘F80.8 ‘, ‘F80.9 ‘, ‘F81.0 ‘, ‘F81.1 ‘, ‘F81.2 ‘, ‘F81.3 ‘, ‘F81.8 ‘, ‘F81.9 ‘, ‘F82 ‘, ‘F83 ‘, ‘F88 ‘, ‘F89 ‘

SQL:
select ColId,
       Dx3,
       Age
  from DIAG
  join CodAge using (ColId)
 where Dx3 in ('F80.0 ', 'F80.1 ', 'F80.2 ', 'F80.3 ', 'F80.8 ', 'F80.9 ', 'F81.0 ', 'F81.1 ', 'F81.2 ', 'F81.3 ', 'F81.8 ', 'F81.9 ', 'F82   ', 'F83   ', 'F88   ', 'F89   ')
   and Age < 1
Data Elements:
Virtual Elements:

13.1.16. BadDx3M

Class:

Inconsistent

Priority:

High

Message:

Principal Diagnosis ($Dx3) and Sex ($Sex) is not male

Mark:

DIAG.Dx3

Description:

The following diagnosis codes should only apply to males: ‘F52.4 ‘

SQL:
select ColId,
       Dx3,
       Sex
  from DIAG
  join COD using (ColId)
 where Dx3 in ('F52.4 ')
   and Sex is not null
   and Sex != '1'
   and Sex != '3'
Data Elements:

13.1.17. BadDx3Ppm

Class:

Inconsistent

Priority:

Low

Message:

Principal Diagnosis ($Dx3) and Age ($Age) not between 10 and 60

Mark:

DIAG.Dx3

Description:

The following diagnosis codes should only apply to ages 10-60: ‘F53 ‘, ‘F53.0 ‘, ‘F53.1 ‘, ‘F53.8 ‘, ‘F53.9 ‘, ‘F32.01’, ‘F32.11’, ‘F32.21’, ‘F32.31’, ‘F32.81’, ‘F32.91’, ‘O99.3 ‘

SQL:
select ColId,
       Dx3,
       Age
  from DIAG
  join CodAge using (ColId)
 where Dx3 in ('F53   ', 'F53.0 ', 'F53.1 ', 'F53.8 ', 'F53.9 ', 'F32.01', 'F32.11', 'F32.21', 'F32.31', 'F32.81', 'F32.91', 'O99.3 ')
   and Age not between 10 and 60
Data Elements:
Virtual Elements:

13.1.18. Basis32BASIS01Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS01 (Number)

Mark:

BASIS32.BASIS01

Description:

All spaces in field BASIS01 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS01
  from BASIS32
 where BASIS01 is null
Data Elements:

13.1.19. Basis32BASIS02Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS02 (Number)

Mark:

BASIS32.BASIS02

Description:

All spaces in field BASIS02 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS02
  from BASIS32
 where BASIS02 is null
Data Elements:

13.1.20. Basis32BASIS03Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS03 (Number)

Mark:

BASIS32.BASIS03

Description:

All spaces in field BASIS03 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS03
  from BASIS32
 where BASIS03 is null
Data Elements:

13.1.21. Basis32BASIS04Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS04 (Number)

Mark:

BASIS32.BASIS04

Description:

All spaces in field BASIS04 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS04
  from BASIS32
 where BASIS04 is null
Data Elements:

13.1.22. Basis32BASIS05Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS05 (Number)

Mark:

BASIS32.BASIS05

Description:

All spaces in field BASIS05 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS05
  from BASIS32
 where BASIS05 is null
Data Elements:

13.1.23. Basis32BASIS06Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS06 (Number)

Mark:

BASIS32.BASIS06

Description:

All spaces in field BASIS06 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS06
  from BASIS32
 where BASIS06 is null
Data Elements:

13.1.24. Basis32BASIS07Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS07 (Number)

Mark:

BASIS32.BASIS07

Description:

All spaces in field BASIS07 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS07
  from BASIS32
 where BASIS07 is null
Data Elements:

13.1.25. Basis32BASIS08Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS08 (Number)

Mark:

BASIS32.BASIS08

Description:

All spaces in field BASIS08 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS08
  from BASIS32
 where BASIS08 is null
Data Elements:

13.1.26. Basis32BASIS09Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS09 (Number)

Mark:

BASIS32.BASIS09

Description:

All spaces in field BASIS09 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS09
  from BASIS32
 where BASIS09 is null
Data Elements:

13.1.27. Basis32BASIS10Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS10 (Number)

Mark:

BASIS32.BASIS10

Description:

All spaces in field BASIS10 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS10
  from BASIS32
 where BASIS10 is null
Data Elements:

13.1.28. Basis32BASIS11Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS11 (Number)

Mark:

BASIS32.BASIS11

Description:

All spaces in field BASIS11 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS11
  from BASIS32
 where BASIS11 is null
Data Elements:

13.1.29. Basis32BASIS12Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS12 (Number)

Mark:

BASIS32.BASIS12

Description:

All spaces in field BASIS12 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS12
  from BASIS32
 where BASIS12 is null
Data Elements:

13.1.30. Basis32BASIS13Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS13 (Number)

Mark:

BASIS32.BASIS13

Description:

All spaces in field BASIS13 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS13
  from BASIS32
 where BASIS13 is null
Data Elements:

13.1.31. Basis32BASIS14Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS14 (Number)

Mark:

BASIS32.BASIS14

Description:

All spaces in field BASIS14 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS14
  from BASIS32
 where BASIS14 is null
Data Elements:

13.1.32. Basis32BASIS15Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS15 (Number)

Mark:

BASIS32.BASIS15

Description:

All spaces in field BASIS15 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS15
  from BASIS32
 where BASIS15 is null
Data Elements:

13.1.33. Basis32BASIS16Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS16 (Number)

Mark:

BASIS32.BASIS16

Description:

All spaces in field BASIS16 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS16
  from BASIS32
 where BASIS16 is null
Data Elements:

13.1.34. Basis32BASIS17Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS17 (Number)

Mark:

BASIS32.BASIS17

Description:

All spaces in field BASIS17 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS17
  from BASIS32
 where BASIS17 is null
Data Elements:

13.1.35. Basis32BASIS18Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS18 (Number)

Mark:

BASIS32.BASIS18

Description:

All spaces in field BASIS18 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS18
  from BASIS32
 where BASIS18 is null
Data Elements:

13.1.36. Basis32BASIS19Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS19 (Number)

Mark:

BASIS32.BASIS19

Description:

All spaces in field BASIS19 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS19
  from BASIS32
 where BASIS19 is null
Data Elements:

13.1.37. Basis32BASIS20Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS20 (Number)

Mark:

BASIS32.BASIS20

Description:

All spaces in field BASIS20 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS20
  from BASIS32
 where BASIS20 is null
Data Elements:

13.1.38. Basis32BASIS21Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS21 (Number)

Mark:

BASIS32.BASIS21

Description:

All spaces in field BASIS21 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS21
  from BASIS32
 where BASIS21 is null
Data Elements:

13.1.39. Basis32BASIS22Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS22 (Number)

Mark:

BASIS32.BASIS22

Description:

All spaces in field BASIS22 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS22
  from BASIS32
 where BASIS22 is null
Data Elements:

13.1.40. Basis32BASIS23Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS23 (Number)

Mark:

BASIS32.BASIS23

Description:

All spaces in field BASIS23 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS23
  from BASIS32
 where BASIS23 is null
Data Elements:

13.1.41. Basis32BASIS24Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS24 (Number)

Mark:

BASIS32.BASIS24

Description:

All spaces in field BASIS24 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS24
  from BASIS32
 where BASIS24 is null
Data Elements:

13.1.42. Basis32BASIS25Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS25 (Number)

Mark:

BASIS32.BASIS25

Description:

All spaces in field BASIS25 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS25
  from BASIS32
 where BASIS25 is null
Data Elements:

13.1.43. Basis32BASIS26Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS26 (Number)

Mark:

BASIS32.BASIS26

Description:

All spaces in field BASIS26 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS26
  from BASIS32
 where BASIS26 is null
Data Elements:

13.1.44. Basis32BASIS27Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS27 (Number)

Mark:

BASIS32.BASIS27

Description:

All spaces in field BASIS27 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS27
  from BASIS32
 where BASIS27 is null
Data Elements:

13.1.45. Basis32BASIS28Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS28 (Number)

Mark:

BASIS32.BASIS28

Description:

All spaces in field BASIS28 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS28
  from BASIS32
 where BASIS28 is null
Data Elements:

13.1.46. Basis32BASIS29Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS29 (Number)

Mark:

BASIS32.BASIS29

Description:

All spaces in field BASIS29 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS29
  from BASIS32
 where BASIS29 is null
Data Elements:

13.1.47. Basis32BASIS30Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS30 (Number)

Mark:

BASIS32.BASIS30

Description:

All spaces in field BASIS30 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS30
  from BASIS32
 where BASIS30 is null
Data Elements:

13.1.48. Basis32BASIS31Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS31 (Number)

Mark:

BASIS32.BASIS31

Description:

All spaces in field BASIS31 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS31
  from BASIS32
 where BASIS31 is null
Data Elements:

13.1.49. Basis32BASIS32Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field BASIS32 (Number)

Mark:

BASIS32.BASIS32

Description:

All spaces in field BASIS32 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       BASIS32
  from BASIS32
 where BASIS32 is null
Data Elements:

13.1.50. Basis32BASISVerMissing

Class:

Missing

Priority:

High

Message:

Missing data - BASISVer $BASISVer.q

Mark:

BASIS32.BASISVer

Description:

Missing data - BASIS32 Version (BASISVer)

SQL:
select ColId,
       BASISVer
  from BASIS32
 where BASISVer is null
Data Elements:

13.1.51. Basis32ColStSpaces

Class:

Invalid

Priority:

High

Message:

All spaces in field ColSt (Char)

Mark:

BASIS32.ColSt

Description:

All spaces in field ColSt (Char). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       ColSt
  from BASIS32
 where ColSt is null
Data Elements:

13.1.52. Basis32Incomplete

Class:

Missing

Priority:

Low

Message:

BASIS32 is Incomplete (at least 27 valid required)

Mark:

BASIS32

Description:

BASIS32 is Incomplete - 27 valid items (valid: 0, 1, 2, 3, 4) are required from: BASIS01, BASIS02, BASIS03, BASIS04, BASIS05, BASIS06, BASIS07, BASIS08, BASIS09, BASIS10, BASIS11, BASIS12, BASIS13, BASIS14, BASIS15, BASIS16, BASIS17, BASIS18, BASIS19, BASIS20, BASIS21, BASIS22, BASIS23, BASIS24, BASIS25, BASIS26, BASIS27, BASIS28, BASIS29, BASIS30, BASIS31, BASIS32

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join Basis32 using (ColId)
  join Basis32Completion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.53. CgasCgasSpaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Cgas (Number)

Mark:

CGAS.Cgas

Description:

All spaces in field Cgas (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Cgas
  from CGAS
 where Cgas is null
Data Elements:

13.1.54. CgasCgasVerMissing

Class:

Missing

Priority:

High

Message:

Missing data - CgasVer $CgasVer.q

Mark:

CGAS.CgasVer

Description:

Missing data - CGAS Version (CgasVer)

SQL:
select ColId,
       CgasVer
  from CGAS
 where CgasVer is null
Data Elements:

13.1.55. CgasIncomplete

Class:

Missing

Priority:

Low

Message:

CGAS is Incomplete (at least 1 valid required)

Mark:

CGAS

Description:

CGAS is Incomplete - 1 valid items (valid: 1-100) are required from: Cgas

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join Cgas using (ColId)
  join CgasCompletion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.56. ClusInSklOnly

Class:

Skeleton

Priority:

High

Message:

HospClus $skl_name.qt expected from SKL is missing

Mark:

ORG

Description:

Service Unit Cluster (CLUS) appears in skeleton data only - A Hospital / Cluster (HOSPCLUS) with matching Ids is expected based on the SKL data but is not present in this file

SQL:
select State,
       RegId,
       OrgId,
       HospClusId as skl_ClusId,
       skl_entity.ClusName as skl_name
  from (
        select State,
               RegId,
               OrgId,
               ClusName,
               ClusId as HospClusId
          from skl.Clus
       ) as skl_entity
  left join HOSPCLUS as checking using (State, RegId, OrgId, HospClusId)
  left join ORG as parent using (State, RegId, OrgId)
 where checking.HospClusId is null
   and parent.OrgId is not null
Data Elements:

13.1.57. CodAgeGrpMissing

Class:

Missing

Priority:

High

Message:

Missing data - AgeGrp $AgeGrp.q

Mark:

COD.AgeGrp

Description:

Missing data - Age Group (AgeGrp)

SQL:
select ColId,
       AgeGrp
  from COD
 where AgeGrp is null
Data Elements:

13.1.58. CodDoBMissingPropHigh

Class:

Anomaly

Priority:

High

Message:

Greater than 1% of DoB values are coded as Missing ($total_missing out of $total_all)

Mark:

ORG

Description:

Greater than 1% of COD DoB values in an organisation are coded as Missing

SQL:
with CodDoBMissingProp as (
        select State,
               RegId,
               OrgId,
               count(*) as total_all,
               sum(case when dob = '9999-09-09' then 1 else 0 end) as total_missing
          from COD
         group by State,
                  RegId,
                  OrgId
       ) select State,
       RegId,
       OrgId,
       total_all,
       total_missing
  from CodDoBMissingProp
 where total_all > 0
   and (total_missing::float / total_all::float > 0.01)
Data Elements:

13.1.59. CodSexGenderMissing

Class:

Missing

Priority:

High

Message:

Missing data - at least one of Sex $Sex.q or Gender $Gender.q required

Mark:

COD

Description:

Missing data - at least one of Sex (Sex) or Gender (Gender) required

SQL:
select ColId,
       Sex,
       Gender
  from COD
 where (coalesce(cast(Sex in ('1','2','3','9') as integer),0) + coalesce(cast(Gender in ('1','2','3','4','5','9') as integer),0) + 0) = 0
Data Elements:

13.1.60. CodSexMissingPropHigh

Class:

Anomaly

Priority:

High

Message:

Greater than 0.1% of Sex values are coded as Missing ($total_missing out of $total_all)

Mark:

HR

Description:

Greater than 0.1% of COD Sex values are coded as Missing

SQL:
with CodSexMissingProp as (
        select state,
               count(*) as total_all,
               sum(case when sex = '9' then 1 else 0 end) as total_missing
          from COD
         group by state
       ) select state,
       total_all,
       total_missing
  from CodSexMissingProp
 where total_all > 0
   and (total_missing::float / total_all::float > 0.001)

13.1.61. DiagIncomplete

Class:

Missing

Priority:

Low

Message:

DIAG is Incomplete

Mark:

DIAG

Description:

DIAG is Incomplete

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join Diag using (ColId)
  join DiagCompletion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.62. DoBBefore1900

Class:

Invalid

Priority:

High

Message:

Date of Birth ($DoB.dmy) before 1900

Mark:

COD.DoB

Description:

Date of Birth before 1900

SQL:
select ColId,
       DoB
  from COD
 where extract(year FROM DoB) < 1900
Data Elements:

13.1.63. FihsFihs1Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Fihs1 (Number)

Mark:

FIHS.Fihs1

Description:

All spaces in field Fihs1 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Fihs1
  from FIHS
 where Fihs1 is null
Data Elements:

13.1.64. FihsFihs2Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Fihs2 (Number)

Mark:

FIHS.Fihs2

Description:

All spaces in field Fihs2 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Fihs2
  from FIHS
 where Fihs2 is null
Data Elements:

13.1.65. FihsFihs3Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Fihs3 (Number)

Mark:

FIHS.Fihs3

Description:

All spaces in field Fihs3 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Fihs3
  from FIHS
 where Fihs3 is null
Data Elements:

13.1.66. FihsFihs4Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Fihs4 (Number)

Mark:

FIHS.Fihs4

Description:

All spaces in field Fihs4 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Fihs4
  from FIHS
 where Fihs4 is null
Data Elements:

13.1.67. FihsFihs5Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Fihs5 (Number)

Mark:

FIHS.Fihs5

Description:

All spaces in field Fihs5 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Fihs5
  from FIHS
 where Fihs5 is null
Data Elements:

13.1.68. FihsFihs6Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Fihs6 (Number)

Mark:

FIHS.Fihs6

Description:

All spaces in field Fihs6 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Fihs6
  from FIHS
 where Fihs6 is null
Data Elements:

13.1.69. FihsFihs7Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Fihs7 (Number)

Mark:

FIHS.Fihs7

Description:

All spaces in field Fihs7 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Fihs7
  from FIHS
 where Fihs7 is null
Data Elements:

13.1.70. FihsFihsVerMissing

Class:

Missing

Priority:

High

Message:

Missing data - FihsVer $FihsVer.q

Mark:

FIHS.FihsVer

Description:

Missing data - FIHS Version (FihsVer)

SQL:
select ColId,
       FihsVer
  from FIHS
 where FihsVer is null
Data Elements:

13.1.71. FihsIncomplete

Class:

Missing

Priority:

Low

Message:

FIHS is Incomplete (at least 6 valid required)

Mark:

FIHS

Description:

FIHS is Incomplete - 6 valid items (valid: 1, 2) are required from: Fihs1, Fihs2, Fihs3, Fihs4, Fihs5, Fihs6, Fihs7

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join Fihs using (ColId)
  join FihsCompletion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.72. HonosHnos01Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos01 (Number)

Mark:

HONOS.Hnos01

Description:

All spaces in field Hnos01 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos01
  from HONOS
 where Hnos01 is null
Data Elements:

13.1.73. HonosHnos02Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos02 (Number)

Mark:

HONOS.Hnos02

Description:

All spaces in field Hnos02 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos02
  from HONOS
 where Hnos02 is null
Data Elements:

13.1.74. HonosHnos03Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos03 (Number)

Mark:

HONOS.Hnos03

Description:

All spaces in field Hnos03 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos03
  from HONOS
 where Hnos03 is null
Data Elements:

13.1.75. HonosHnos04Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos04 (Number)

Mark:

HONOS.Hnos04

Description:

All spaces in field Hnos04 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos04
  from HONOS
 where Hnos04 is null
Data Elements:

13.1.76. HonosHnos05Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos05 (Number)

Mark:

HONOS.Hnos05

Description:

All spaces in field Hnos05 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos05
  from HONOS
 where Hnos05 is null
Data Elements:

13.1.77. HonosHnos06Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos06 (Number)

Mark:

HONOS.Hnos06

Description:

All spaces in field Hnos06 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos06
  from HONOS
 where Hnos06 is null
Data Elements:

13.1.78. HonosHnos07Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos07 (Number)

Mark:

HONOS.Hnos07

Description:

All spaces in field Hnos07 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos07
  from HONOS
 where Hnos07 is null
Data Elements:

13.1.79. HonosHnos08Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos08 (Number)

Mark:

HONOS.Hnos08

Description:

All spaces in field Hnos08 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos08
  from HONOS
 where Hnos08 is null
Data Elements:

13.1.80. HonosHnos08aSpaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos08a (Char)

Mark:

HONOS.Hnos08a

Description:

All spaces in field Hnos08a (Char). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos08a
  from HONOS
 where Hnos08a is null
Data Elements:

13.1.81. HonosHnos09Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos09 (Number)

Mark:

HONOS.Hnos09

Description:

All spaces in field Hnos09 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos09
  from HONOS
 where Hnos09 is null
Data Elements:

13.1.82. HonosHnos10Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos10 (Number)

Mark:

HONOS.Hnos10

Description:

All spaces in field Hnos10 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos10
  from HONOS
 where Hnos10 is null
Data Elements:

13.1.83. HonosHnos11Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos11 (Number)

Mark:

HONOS.Hnos11

Description:

All spaces in field Hnos11 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos11
  from HONOS
 where Hnos11 is null
Data Elements:

13.1.84. HonosHnos12Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Hnos12 (Number)

Mark:

HONOS.Hnos12

Description:

All spaces in field Hnos12 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Hnos12
  from HONOS
 where Hnos12 is null
Data Elements:

13.1.85. HonosHnosVerMissing

Class:

Missing

Priority:

High

Message:

Missing data - HnosVer $HnosVer.q

Mark:

HONOS.HnosVer

Description:

Missing data - HoNOS Version (HnosVer)

SQL:
select ColId,
       HnosVer
  from HONOS
 where HnosVer is null
Data Elements:

13.1.86. HonosIncomplete

Class:

Missing

Priority:

Low

Message:

HONOS is Incomplete (at least 10 valid required)

Mark:

HONOS

Description:

HONOS is Incomplete - 10 valid items (valid: 0, 1, 2, 3, 4) are required from: Hnos01, Hnos02, Hnos03, Hnos04, Hnos05, Hnos06, Hnos07, Hnos08, Hnos09, Hnos10, Hnos11, Hnos12

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join Honos using (ColId)
  join HonosCompletion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.87. HonoscaHnosC01Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC01 (Number)

Mark:

HONOSCA.HnosC01

Description:

All spaces in field HnosC01 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC01
  from HONOSCA
 where HnosC01 is null
Data Elements:

13.1.88. HonoscaHnosC02Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC02 (Number)

Mark:

HONOSCA.HnosC02

Description:

All spaces in field HnosC02 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC02
  from HONOSCA
 where HnosC02 is null
Data Elements:

13.1.89. HonoscaHnosC03Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC03 (Number)

Mark:

HONOSCA.HnosC03

Description:

All spaces in field HnosC03 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC03
  from HONOSCA
 where HnosC03 is null
Data Elements:

13.1.90. HonoscaHnosC04Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC04 (Number)

Mark:

HONOSCA.HnosC04

Description:

All spaces in field HnosC04 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC04
  from HONOSCA
 where HnosC04 is null
Data Elements:

13.1.91. HonoscaHnosC05Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC05 (Number)

Mark:

HONOSCA.HnosC05

Description:

All spaces in field HnosC05 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC05
  from HONOSCA
 where HnosC05 is null
Data Elements:

13.1.92. HonoscaHnosC06Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC06 (Number)

Mark:

HONOSCA.HnosC06

Description:

All spaces in field HnosC06 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC06
  from HONOSCA
 where HnosC06 is null
Data Elements:

13.1.93. HonoscaHnosC07Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC07 (Number)

Mark:

HONOSCA.HnosC07

Description:

All spaces in field HnosC07 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC07
  from HONOSCA
 where HnosC07 is null
Data Elements:

13.1.94. HonoscaHnosC08Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC08 (Number)

Mark:

HONOSCA.HnosC08

Description:

All spaces in field HnosC08 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC08
  from HONOSCA
 where HnosC08 is null
Data Elements:

13.1.95. HonoscaHnosC09Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC09 (Number)

Mark:

HONOSCA.HnosC09

Description:

All spaces in field HnosC09 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC09
  from HONOSCA
 where HnosC09 is null
Data Elements:

13.1.96. HonoscaHnosC10Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC10 (Number)

Mark:

HONOSCA.HnosC10

Description:

All spaces in field HnosC10 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC10
  from HONOSCA
 where HnosC10 is null
Data Elements:

13.1.97. HonoscaHnosC11Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC11 (Number)

Mark:

HONOSCA.HnosC11

Description:

All spaces in field HnosC11 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC11
  from HONOSCA
 where HnosC11 is null
Data Elements:

13.1.98. HonoscaHnosC12Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC12 (Number)

Mark:

HONOSCA.HnosC12

Description:

All spaces in field HnosC12 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC12
  from HONOSCA
 where HnosC12 is null
Data Elements:

13.1.99. HonoscaHnosC13Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC13 (Number)

Mark:

HONOSCA.HnosC13

Description:

All spaces in field HnosC13 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC13
  from HONOSCA
 where HnosC13 is null
Data Elements:

13.1.100. HonoscaHnosC14Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC14 (Number)

Mark:

HONOSCA.HnosC14

Description:

All spaces in field HnosC14 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC14
  from HONOSCA
 where HnosC14 is null
Data Elements:

13.1.101. HonoscaHnosC15Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field HnosC15 (Number)

Mark:

HONOSCA.HnosC15

Description:

All spaces in field HnosC15 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       HnosC15
  from HONOSCA
 where HnosC15 is null
Data Elements:

13.1.102. HonoscaHnosCVerMissing

Class:

Missing

Priority:

High

Message:

Missing data - HnosCVer $HnosCVer.q

Mark:

HONOSCA.HnosCVer

Description:

Missing data - HoNOSCA Version (HnosCVer)

SQL:
select ColId,
       HnosCVer
  from HONOSCA
 where HnosCVer is null
Data Elements:

13.1.103. HonoscaIncomplete

Class:

Missing

Priority:

Low

Message:

HONOSCA is Incomplete (at least 11 valid required)

Mark:

HONOSCA

Description:

HONOSCA is Incomplete - 11 valid items (valid: 0, 1, 2, 3, 4) are required from: HnosC01, HnosC02, HnosC03, HnosC04, HnosC05, HnosC06, HnosC07, HnosC08, HnosC09, HnosC10, HnosC11, HnosC12, HnosC13

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join Honosca using (ColId)
  join HonoscaCompletion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.104. HospClusClosed

Class:

Historical

Priority:

High

Message:

HospClus closed, historical $hist_name.qt (HospClusId: $hist_HospClusId) no longer exists

Mark:

HR

Description:

Hospital / Cluster Closed - A historical Hospital / Cluster was not found in current data

SQL:
select State,
       hist_entity.State as hist_State,
       hist_entity.RegId as hist_RegId,
       hist_entity.OrgId as hist_OrgId,
       hist_entity.HospClusId as hist_HospClusId,
       hist_entity.HospClusName as hist_name
  from hist.HOSPCLUS as hist_entity
  left join main.HOSPCLUS using (State, RegId, OrgId, HospClusId)
 where HOSPCLUS.HospClusId is null
Data Elements:

13.1.105. HospClusCoLocStatusChanged

Class:

Historical

Priority:

High

Message:

Hospital / Cluster CoLocStatus changed from $hist_CoLocStatus to $CoLocStatus

Mark:

HOSPCLUS.CoLocStatus

Description:

Co-Location Status Changed - Co-Location Status value for Hospital / Cluster differs between historical and current data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       HOSPCLUS.CoLocStatus,
       hist_HOSPCLUS.CoLocStatus as hist_CoLocStatus
  from HOSPCLUS
  join hist.HOSPCLUS as hist_HOSPCLUS using(State, RegId, OrgId, HospClusId)
 where HOSPCLUS.CoLocStatus != hist_HOSPCLUS.CoLocStatus
Data Elements:

13.1.106. HospClusCoLocStatusMissing

Class:

Missing

Priority:

High

Message:

Missing data - CoLocStatus $CoLocStatus.q

Mark:

HOSPCLUS.CoLocStatus

Description:

Missing data - Co-Location Status (CoLocStatus)

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       CoLocStatus
  from HOSPCLUS
 where CoLocStatus is null
Data Elements:

13.1.107. HospClusHospClusNameMissing

Class:

Missing

Priority:

High

Message:

Missing data - HospClusName $HospClusName.q

Mark:

HOSPCLUS.HospClusName

Description:

Missing data - Hospital - Cluster Name (HospClusName)

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       HospClusName
  from HOSPCLUS
 where HospClusName is null
Data Elements:

13.1.108. HospClusNotInSkl

Class:

Skeleton

Priority:

High

Message:

HospClus $name.qt not in SKL data

Mark:

HOSPCLUS

Description:

Hospital / Cluster not in skeleton reference data - A matching Hospital (HOSP) or Service Unit Cluster (CLUS) was not found in the skeleton data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       HOSPCLUS.HospClusName as name
  from HOSPCLUS
  left join (
        select State,
               RegId,
               OrgId,
               HospId as HospClusId
          from skl.Hosp
         union select State,
               RegId,
               OrgId,
               ClusId as HospClusId
          from skl.Clus
       ) as skl_entity using (State, RegId, OrgId, HospClusId)
  left join skl.ORG as skl_parent using (State, RegId, OrgId)
 where skl_entity.HospClusId is null
   and skl_parent.OrgId is not null
Data Elements:

13.1.109. HospClusOpened

Class:

Historical

Priority:

High

Message:

HospClus opened, $HospClusName.qt (HospClusId: $HospClusId) not in historical data

Mark:

HOSPCLUS

Description:

Hospital / Cluster Opened - A matching Hospital / Cluster was not found in the historical data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       HOSPCLUS.HospClusName
  from main.HOSPCLUS
  left join hist.HOSPCLUS as hist_entity using (State, RegId, OrgId, HospClusId)
 where hist_entity.HospClusId is null
Data Elements:

13.1.110. HospClusRenamed

Class:

Historical

Priority:

High

Message:

HospClus renamed from $hist_name.qt to $HospClusName.qt

Mark:

HOSPCLUS.HospClusName

Description:

Hospital / Cluster Renamed - Hospital / Cluster Name differs between historical and current data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       HOSPCLUS.HospClusName,
       hist_entity.HospClusName as hist_name
  from HOSPCLUS
  join hist.HOSPCLUS as hist_entity using(State, RegId, OrgId, HospClusId)
 where not sloppy_match(HOSPCLUS.HospClusName, hist_entity.HospClusName)
Data Elements:

13.1.111. HospInSklOnly

Class:

Skeleton

Priority:

High

Message:

HospClus $skl_name.qt expected from SKL is missing

Mark:

ORG

Description:

Hospital (HOSP) appears in skeleton data only - A Hospital / Cluster (HOSPCLUS) with matching Ids is expected based on the SKL data but is not present in this file

SQL:
select State,
       RegId,
       OrgId,
       HospClusId as skl_HospId,
       skl_entity.HospName as skl_name
  from (
        select State,
               RegId,
               OrgId,
               HospName,
               HospId as HospClusId
          from skl.Hosp
       ) as skl_entity
  left join HOSPCLUS as checking using (State, RegId, OrgId, HospClusId)
  left join ORG as parent using (State, RegId, OrgId)
 where checking.HospClusId is null
   and parent.OrgId is not null
Data Elements:

13.1.112. HrAdultAaBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultAaBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.113. HrAdultAaBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultAaBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.114. HrAdultAaHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultAaHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.115. HrAdultAaHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultAaHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.116. HrAdultAaHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultAaHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Adult age group in Ambulatory setting after Admission

SQL:
select State
  from HrAdultAaHonosCompleted
  join HrAdultAaCodCount using (State)
 where HrAdultAaHonosCompleted.Total = 0
   and HrAdultAaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.117. HrAdultAaK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultAaK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.118. HrAdultAaK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultAaK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.119. HrAdultAaK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultAaK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.120. HrAdultAaK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultAaK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.121. HrAdultAaMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultAaMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.122. HrAdultAaMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultAaMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.123. HrAdultAaPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultAaPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.124. HrAdultAaPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAaPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultAaPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.125. HrAdultAaPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultAaPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Adult age group in Ambulatory setting after Admission

SQL:
select State
  from HrAdultAaPocCompleted
  join HrAdultAaCodCount using (State)
 where HrAdultAaPocCompleted.Total = 0
   and HrAdultAaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.126. HrAdultAaSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultAaSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Adult age group in Ambulatory setting after Admission

SQL:
select HrAdultAaCodCount.State as State
  from HrAdultAaCodCount
  join HrAdultAaMhi38Completed using (State)
  join HrAdultAaBasis32Completed using (State)
  join HrAdultAaK10lmCompleted using (State)
  join HrAdultAaK10l3dCompleted using (State)
 where HrAdultAaMhi38Completed.Total = 0
   and HrAdultAaBasis32Completed.Total = 0
   and HrAdultAaK10lmCompleted.Total = 0
   and HrAdultAaK10l3dCompleted.Total = 0
   and HrAdultAaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.127. HrAdultAiHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAiHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Adult age group in Inpatient setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultAiHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.128. HrAdultAiHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAiHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Adult age group in Inpatient setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultAiHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.129. HrAdultAiHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultAiHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Adult age group in Inpatient setting after Admission

SQL:
select State
  from HrAdultAiHonosCompleted
  join HrAdultAiCodCount using (State)
 where HrAdultAiHonosCompleted.Total = 0
   and HrAdultAiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.130. HrAdultAiPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAiPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Adult age group in Inpatient setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultAiPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.131. HrAdultAiPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultAiPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Adult age group in Inpatient setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultAiPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.132. HrAdultAiPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultAiPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Adult age group in Inpatient setting after Admission

SQL:
select State
  from HrAdultAiPocCompleted
  join HrAdultAiCodCount using (State)
 where HrAdultAiPocCompleted.Total = 0
   and HrAdultAiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.133. HrAdultArBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultArBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.134. HrAdultArBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultArBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.135. HrAdultArHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultArHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.136. HrAdultArHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultArHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.137. HrAdultArHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultArHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Adult age group in Residential setting after Admission

SQL:
select State
  from HrAdultArHonosCompleted
  join HrAdultArCodCount using (State)
 where HrAdultArHonosCompleted.Total = 0
   and HrAdultArCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.138. HrAdultArK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultArK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.139. HrAdultArK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultArK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.140. HrAdultArK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultArK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.141. HrAdultArK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultArK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.142. HrAdultArLsp16CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArLsp16CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of LSP16 for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultArLsp16CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.143. HrAdultArLsp16VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArLsp16Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of LSP16 for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultArLsp16CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.144. HrAdultArLsp16ZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultArLsp16CompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of LSP16 for Adult age group in Residential setting after Admission

SQL:
select State
  from HrAdultArLsp16Completed
  join HrAdultArCodCount using (State)
 where HrAdultArLsp16Completed.Total = 0
   and HrAdultArCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.145. HrAdultArMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultArMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.146. HrAdultArMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultArMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.147. HrAdultArPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultArPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.148. HrAdultArPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultArPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Adult age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultArPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.149. HrAdultArPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultArPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Adult age group in Residential setting after Admission

SQL:
select State
  from HrAdultArPocCompleted
  join HrAdultArCodCount using (State)
 where HrAdultArPocCompleted.Total = 0
   and HrAdultArCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.150. HrAdultArSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultArSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Adult age group in Residential setting after Admission

SQL:
select HrAdultArCodCount.State as State
  from HrAdultArCodCount
  join HrAdultArMhi38Completed using (State)
  join HrAdultArBasis32Completed using (State)
  join HrAdultArK10lmCompleted using (State)
  join HrAdultArK10l3dCompleted using (State)
 where HrAdultArMhi38Completed.Total = 0
   and HrAdultArBasis32Completed.Total = 0
   and HrAdultArK10lmCompleted.Total = 0
   and HrAdultArK10l3dCompleted.Total = 0
   and HrAdultArCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.151. HrAdultDaBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDaBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.152. HrAdultDaBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDaBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.153. HrAdultDaDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDaDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.154. HrAdultDaDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDaDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.155. HrAdultDaDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDaDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Adult age group in Ambulatory setting after Discharge

SQL:
select State
  from HrAdultDaDiagCompleted
  join HrAdultDaCodCount using (State)
 where HrAdultDaDiagCompleted.Total = 0
   and HrAdultDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.156. HrAdultDaHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDaHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.157. HrAdultDaHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDaHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.158. HrAdultDaHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDaHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Adult age group in Ambulatory setting after Discharge

SQL:
select State
  from HrAdultDaHonosCompleted
  join HrAdultDaCodCount using (State)
 where HrAdultDaHonosCompleted.Total = 0
   and HrAdultDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.159. HrAdultDaK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDaK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.160. HrAdultDaK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDaK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.161. HrAdultDaK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDaK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.162. HrAdultDaK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDaK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.163. HrAdultDaLsp16CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaLsp16CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of LSP16 for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDaLsp16CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.164. HrAdultDaLsp16VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaLsp16Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of LSP16 for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDaLsp16CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.165. HrAdultDaLsp16ZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDaLsp16CompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of LSP16 for Adult age group in Ambulatory setting after Discharge

SQL:
select State
  from HrAdultDaLsp16Completed
  join HrAdultDaCodCount using (State)
 where HrAdultDaLsp16Completed.Total = 0
   and HrAdultDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.166. HrAdultDaMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDaMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.167. HrAdultDaMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDaMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.168. HrAdultDaMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDaMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.169. HrAdultDaMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDaMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDaMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.170. HrAdultDaMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDaMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Adult age group in Ambulatory setting after Discharge

SQL:
select State
  from HrAdultDaMhlsCompleted
  join HrAdultDaCodCount using (State)
 where HrAdultDaMhlsCompleted.Total = 0
   and HrAdultDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.171. HrAdultDaSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDaSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Adult age group in Ambulatory setting after Discharge

SQL:
select HrAdultDaCodCount.State as State
  from HrAdultDaCodCount
  join HrAdultDaMhi38Completed using (State)
  join HrAdultDaBasis32Completed using (State)
  join HrAdultDaK10lmCompleted using (State)
  join HrAdultDaK10l3dCompleted using (State)
 where HrAdultDaMhi38Completed.Total = 0
   and HrAdultDaBasis32Completed.Total = 0
   and HrAdultDaK10lmCompleted.Total = 0
   and HrAdultDaK10l3dCompleted.Total = 0
   and HrAdultDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.172. HrAdultDiDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDiDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDiDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.173. HrAdultDiDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDiDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDiDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.174. HrAdultDiDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDiDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Adult age group in Inpatient setting after Discharge

SQL:
select State
  from HrAdultDiDiagCompleted
  join HrAdultDiCodCount using (State)
 where HrAdultDiDiagCompleted.Total = 0
   and HrAdultDiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.175. HrAdultDiHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDiHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDiHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.176. HrAdultDiHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDiHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDiHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.177. HrAdultDiHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDiHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Adult age group in Inpatient setting after Discharge

SQL:
select State
  from HrAdultDiHonosCompleted
  join HrAdultDiCodCount using (State)
 where HrAdultDiHonosCompleted.Total = 0
   and HrAdultDiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.178. HrAdultDiMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDiMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDiMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.179. HrAdultDiMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDiMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDiMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.180. HrAdultDiMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDiMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Adult age group in Inpatient setting after Discharge

SQL:
select State
  from HrAdultDiMhlsCompleted
  join HrAdultDiCodCount using (State)
 where HrAdultDiMhlsCompleted.Total = 0
   and HrAdultDiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.181. HrAdultDrBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDrBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.182. HrAdultDrBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDrBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.183. HrAdultDrDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDrDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.184. HrAdultDrDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDrDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.185. HrAdultDrDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDrDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Adult age group in Residential setting after Discharge

SQL:
select State
  from HrAdultDrDiagCompleted
  join HrAdultDrCodCount using (State)
 where HrAdultDrDiagCompleted.Total = 0
   and HrAdultDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.186. HrAdultDrHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDrHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.187. HrAdultDrHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDrHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.188. HrAdultDrHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDrHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Adult age group in Residential setting after Discharge

SQL:
select State
  from HrAdultDrHonosCompleted
  join HrAdultDrCodCount using (State)
 where HrAdultDrHonosCompleted.Total = 0
   and HrAdultDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.189. HrAdultDrK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDrK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.190. HrAdultDrK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDrK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.191. HrAdultDrK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDrK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.192. HrAdultDrK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDrK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.193. HrAdultDrLsp16CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrLsp16CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of LSP16 for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDrLsp16CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.194. HrAdultDrLsp16VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrLsp16Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of LSP16 for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDrLsp16CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.195. HrAdultDrLsp16ZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDrLsp16CompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of LSP16 for Adult age group in Residential setting after Discharge

SQL:
select State
  from HrAdultDrLsp16Completed
  join HrAdultDrCodCount using (State)
 where HrAdultDrLsp16Completed.Total = 0
   and HrAdultDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.196. HrAdultDrMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDrMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.197. HrAdultDrMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDrMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.198. HrAdultDrMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultDrMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.199. HrAdultDrMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultDrMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Adult age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultDrMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.200. HrAdultDrMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDrMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Adult age group in Residential setting after Discharge

SQL:
select State
  from HrAdultDrMhlsCompleted
  join HrAdultDrCodCount using (State)
 where HrAdultDrMhlsCompleted.Total = 0
   and HrAdultDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.201. HrAdultDrSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultDrSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Adult age group in Residential setting after Discharge

SQL:
select HrAdultDrCodCount.State as State
  from HrAdultDrCodCount
  join HrAdultDrMhi38Completed using (State)
  join HrAdultDrBasis32Completed using (State)
  join HrAdultDrK10lmCompleted using (State)
  join HrAdultDrK10l3dCompleted using (State)
 where HrAdultDrMhi38Completed.Total = 0
   and HrAdultDrBasis32Completed.Total = 0
   and HrAdultDrK10lmCompleted.Total = 0
   and HrAdultDrK10l3dCompleted.Total = 0
   and HrAdultDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.202. HrAdultRaBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRaBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.203. HrAdultRaBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRaBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.204. HrAdultRaDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRaDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.205. HrAdultRaDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRaDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.206. HrAdultRaDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRaDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Adult age group in Ambulatory setting after Review

SQL:
select State
  from HrAdultRaDiagCompleted
  join HrAdultRaCodCount using (State)
 where HrAdultRaDiagCompleted.Total = 0
   and HrAdultRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.207. HrAdultRaHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRaHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.208. HrAdultRaHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRaHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.209. HrAdultRaHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRaHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Adult age group in Ambulatory setting after Review

SQL:
select State
  from HrAdultRaHonosCompleted
  join HrAdultRaCodCount using (State)
 where HrAdultRaHonosCompleted.Total = 0
   and HrAdultRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.210. HrAdultRaK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRaK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.211. HrAdultRaK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRaK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.212. HrAdultRaK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRaK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.213. HrAdultRaK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRaK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.214. HrAdultRaLsp16CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaLsp16CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of LSP16 for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRaLsp16CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.215. HrAdultRaLsp16VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaLsp16Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of LSP16 for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRaLsp16CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.216. HrAdultRaLsp16ZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRaLsp16CompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of LSP16 for Adult age group in Ambulatory setting after Review

SQL:
select State
  from HrAdultRaLsp16Completed
  join HrAdultRaCodCount using (State)
 where HrAdultRaLsp16Completed.Total = 0
   and HrAdultRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.217. HrAdultRaMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRaMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.218. HrAdultRaMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRaMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.219. HrAdultRaMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRaMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.220. HrAdultRaMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRaMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.221. HrAdultRaMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRaMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Adult age group in Ambulatory setting after Review

SQL:
select State
  from HrAdultRaMhlsCompleted
  join HrAdultRaCodCount using (State)
 where HrAdultRaMhlsCompleted.Total = 0
   and HrAdultRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.222. HrAdultRaPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRaPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.223. HrAdultRaPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRaPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Adult age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRaPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.224. HrAdultRaPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRaPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Adult age group in Ambulatory setting after Review

SQL:
select State
  from HrAdultRaPocCompleted
  join HrAdultRaCodCount using (State)
 where HrAdultRaPocCompleted.Total = 0
   and HrAdultRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.225. HrAdultRaSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRaSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Adult age group in Ambulatory setting after Review

SQL:
select HrAdultRaCodCount.State as State
  from HrAdultRaCodCount
  join HrAdultRaMhi38Completed using (State)
  join HrAdultRaBasis32Completed using (State)
  join HrAdultRaK10lmCompleted using (State)
  join HrAdultRaK10l3dCompleted using (State)
 where HrAdultRaMhi38Completed.Total = 0
   and HrAdultRaBasis32Completed.Total = 0
   and HrAdultRaK10lmCompleted.Total = 0
   and HrAdultRaK10l3dCompleted.Total = 0
   and HrAdultRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.226. HrAdultRiDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRiDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Adult age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRiDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.227. HrAdultRiDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRiDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Adult age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRiDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.228. HrAdultRiDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRiDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Adult age group in Inpatient setting after Review

SQL:
select State
  from HrAdultRiDiagCompleted
  join HrAdultRiCodCount using (State)
 where HrAdultRiDiagCompleted.Total = 0
   and HrAdultRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.229. HrAdultRiHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRiHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Adult age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRiHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.230. HrAdultRiHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRiHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Adult age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRiHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.231. HrAdultRiHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRiHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Adult age group in Inpatient setting after Review

SQL:
select State
  from HrAdultRiHonosCompleted
  join HrAdultRiCodCount using (State)
 where HrAdultRiHonosCompleted.Total = 0
   and HrAdultRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.232. HrAdultRiMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRiMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Adult age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRiMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.233. HrAdultRiMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRiMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Adult age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRiMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.234. HrAdultRiMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRiMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Adult age group in Inpatient setting after Review

SQL:
select State
  from HrAdultRiMhlsCompleted
  join HrAdultRiCodCount using (State)
 where HrAdultRiMhlsCompleted.Total = 0
   and HrAdultRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.235. HrAdultRiPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRiPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Adult age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRiPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.236. HrAdultRiPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRiPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Adult age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRiPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.237. HrAdultRiPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRiPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Adult age group in Inpatient setting after Review

SQL:
select State
  from HrAdultRiPocCompleted
  join HrAdultRiCodCount using (State)
 where HrAdultRiPocCompleted.Total = 0
   and HrAdultRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.238. HrAdultRrBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRrBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.239. HrAdultRrBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRrBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.240. HrAdultRrDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRrDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.241. HrAdultRrDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRrDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.242. HrAdultRrDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRrDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Adult age group in Residential setting after Review

SQL:
select State
  from HrAdultRrDiagCompleted
  join HrAdultRrCodCount using (State)
 where HrAdultRrDiagCompleted.Total = 0
   and HrAdultRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.243. HrAdultRrHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRrHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.244. HrAdultRrHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRrHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.245. HrAdultRrHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRrHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Adult age group in Residential setting after Review

SQL:
select State
  from HrAdultRrHonosCompleted
  join HrAdultRrCodCount using (State)
 where HrAdultRrHonosCompleted.Total = 0
   and HrAdultRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.246. HrAdultRrK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRrK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.247. HrAdultRrK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRrK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.248. HrAdultRrK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRrK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.249. HrAdultRrK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRrK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.250. HrAdultRrLsp16CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrLsp16CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of LSP16 for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRrLsp16CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.251. HrAdultRrLsp16VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrLsp16Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of LSP16 for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRrLsp16CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.252. HrAdultRrLsp16ZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRrLsp16CompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of LSP16 for Adult age group in Residential setting after Review

SQL:
select State
  from HrAdultRrLsp16Completed
  join HrAdultRrCodCount using (State)
 where HrAdultRrLsp16Completed.Total = 0
   and HrAdultRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.253. HrAdultRrMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRrMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.254. HrAdultRrMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRrMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.255. HrAdultRrMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRrMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.256. HrAdultRrMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRrMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.257. HrAdultRrMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRrMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Adult age group in Residential setting after Review

SQL:
select State
  from HrAdultRrMhlsCompleted
  join HrAdultRrCodCount using (State)
 where HrAdultRrMhlsCompleted.Total = 0
   and HrAdultRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.258. HrAdultRrPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrAdultRrPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.259. HrAdultRrPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrAdultRrPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Adult age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrAdultRrPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.260. HrAdultRrPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRrPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Adult age group in Residential setting after Review

SQL:
select State
  from HrAdultRrPocCompleted
  join HrAdultRrCodCount using (State)
 where HrAdultRrPocCompleted.Total = 0
   and HrAdultRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.261. HrAdultRrSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrAdultRrSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Adult age group in Residential setting after Review

SQL:
select HrAdultRrCodCount.State as State
  from HrAdultRrCodCount
  join HrAdultRrMhi38Completed using (State)
  join HrAdultRrBasis32Completed using (State)
  join HrAdultRrK10lmCompleted using (State)
  join HrAdultRrK10l3dCompleted using (State)
 where HrAdultRrMhi38Completed.Total = 0
   and HrAdultRrBasis32Completed.Total = 0
   and HrAdultRrK10lmCompleted.Total = 0
   and HrAdultRrK10l3dCompleted.Total = 0
   and HrAdultRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.262. HrChildAaCgasCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAaCgasCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of CGAS for Child age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildAaCgasCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.263. HrChildAaCgasVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAaCgasCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of CGAS for Child age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildAaCgasCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.264. HrChildAaCgasZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildAaCgasCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of CGAS for Child age group in Ambulatory setting after Admission

SQL:
select State
  from HrChildAaCgasCompleted
  join HrChildAaCodCount using (State)
 where HrChildAaCgasCompleted.Total = 0
   and HrChildAaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.265. HrChildAaHonoscaCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAaHonoscaCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOSCA for Child age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildAaHonoscaCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.266. HrChildAaHonoscaVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAaHonoscaCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOSCA for Child age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildAaHonoscaCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.267. HrChildAaHonoscaZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildAaHonoscaCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOSCA for Child age group in Ambulatory setting after Admission

SQL:
select State
  from HrChildAaHonoscaCompleted
  join HrChildAaCodCount using (State)
 where HrChildAaHonoscaCompleted.Total = 0
   and HrChildAaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.268. HrChildAaSdqCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAaSdqCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of SDQ for Child age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildAaSdqCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.269. HrChildAaSdqVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAaSdqCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of SDQ for Child age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildAaSdqCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.270. HrChildAaSdqZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildAaSdqCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of SDQ for Child age group in Ambulatory setting after Admission

SQL:
select State
  from HrChildAaSdqCompleted
  join HrChildAaCodCount using (State)
 where HrChildAaSdqCompleted.Total = 0
   and HrChildAaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.271. HrChildAiCgasCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAiCgasCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of CGAS for Child age group in Inpatient setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildAiCgasCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.272. HrChildAiCgasVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAiCgasCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of CGAS for Child age group in Inpatient setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildAiCgasCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.273. HrChildAiCgasZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildAiCgasCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of CGAS for Child age group in Inpatient setting after Admission

SQL:
select State
  from HrChildAiCgasCompleted
  join HrChildAiCodCount using (State)
 where HrChildAiCgasCompleted.Total = 0
   and HrChildAiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.274. HrChildAiHonoscaCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAiHonoscaCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOSCA for Child age group in Inpatient setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildAiHonoscaCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.275. HrChildAiHonoscaVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAiHonoscaCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOSCA for Child age group in Inpatient setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildAiHonoscaCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.276. HrChildAiHonoscaZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildAiHonoscaCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOSCA for Child age group in Inpatient setting after Admission

SQL:
select State
  from HrChildAiHonoscaCompleted
  join HrChildAiCodCount using (State)
 where HrChildAiHonoscaCompleted.Total = 0
   and HrChildAiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.277. HrChildAiSdqCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAiSdqCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of SDQ for Child age group in Inpatient setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildAiSdqCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.278. HrChildAiSdqVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildAiSdqCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of SDQ for Child age group in Inpatient setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildAiSdqCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.279. HrChildAiSdqZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildAiSdqCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of SDQ for Child age group in Inpatient setting after Admission

SQL:
select State
  from HrChildAiSdqCompleted
  join HrChildAiCodCount using (State)
 where HrChildAiSdqCompleted.Total = 0
   and HrChildAiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.280. HrChildArCgasCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildArCgasCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of CGAS for Child age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildArCgasCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.281. HrChildArCgasVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildArCgasCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of CGAS for Child age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildArCgasCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.282. HrChildArCgasZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildArCgasCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of CGAS for Child age group in Residential setting after Admission

SQL:
select State
  from HrChildArCgasCompleted
  join HrChildArCodCount using (State)
 where HrChildArCgasCompleted.Total = 0
   and HrChildArCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.283. HrChildArHonoscaCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildArHonoscaCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOSCA for Child age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildArHonoscaCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.284. HrChildArHonoscaVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildArHonoscaCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOSCA for Child age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildArHonoscaCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.285. HrChildArHonoscaZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildArHonoscaCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOSCA for Child age group in Residential setting after Admission

SQL:
select State
  from HrChildArHonoscaCompleted
  join HrChildArCodCount using (State)
 where HrChildArHonoscaCompleted.Total = 0
   and HrChildArCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.286. HrChildArSdqCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildArSdqCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of SDQ for Child age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildArSdqCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.287. HrChildArSdqVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildArSdqCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of SDQ for Child age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildArSdqCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.288. HrChildArSdqZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildArSdqCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of SDQ for Child age group in Residential setting after Admission

SQL:
select State
  from HrChildArSdqCompleted
  join HrChildArCodCount using (State)
 where HrChildArSdqCompleted.Total = 0
   and HrChildArCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.289. HrChildDaDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDaDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDaDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.290. HrChildDaDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDaDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDaDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.291. HrChildDaDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDaDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Child age group in Ambulatory setting after Discharge

SQL:
select State
  from HrChildDaDiagCompleted
  join HrChildDaCodCount using (State)
 where HrChildDaDiagCompleted.Total = 0
   and HrChildDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.292. HrChildDaFihsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDaFihsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of FIHS for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDaFihsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.293. HrChildDaFihsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDaFihsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of FIHS for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDaFihsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.294. HrChildDaFihsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDaFihsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of FIHS for Child age group in Ambulatory setting after Discharge

SQL:
select State
  from HrChildDaFihsCompleted
  join HrChildDaCodCount using (State)
 where HrChildDaFihsCompleted.Total = 0
   and HrChildDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.295. HrChildDaHonoscaCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDaHonoscaCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOSCA for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDaHonoscaCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.296. HrChildDaHonoscaVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDaHonoscaCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOSCA for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDaHonoscaCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.297. HrChildDaHonoscaZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDaHonoscaCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOSCA for Child age group in Ambulatory setting after Discharge

SQL:
select State
  from HrChildDaHonoscaCompleted
  join HrChildDaCodCount using (State)
 where HrChildDaHonoscaCompleted.Total = 0
   and HrChildDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.298. HrChildDaMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDaMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDaMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.299. HrChildDaMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDaMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDaMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.300. HrChildDaMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDaMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Child age group in Ambulatory setting after Discharge

SQL:
select State
  from HrChildDaMhlsCompleted
  join HrChildDaCodCount using (State)
 where HrChildDaMhlsCompleted.Total = 0
   and HrChildDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.301. HrChildDaSdqCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDaSdqCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of SDQ for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDaSdqCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.302. HrChildDaSdqVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDaSdqCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of SDQ for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDaSdqCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.303. HrChildDaSdqZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDaSdqCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of SDQ for Child age group in Ambulatory setting after Discharge

SQL:
select State
  from HrChildDaSdqCompleted
  join HrChildDaCodCount using (State)
 where HrChildDaSdqCompleted.Total = 0
   and HrChildDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.304. HrChildDiDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDiDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Child age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDiDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.305. HrChildDiDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDiDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Child age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDiDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.306. HrChildDiDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDiDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Child age group in Inpatient setting after Discharge

SQL:
select State
  from HrChildDiDiagCompleted
  join HrChildDiCodCount using (State)
 where HrChildDiDiagCompleted.Total = 0
   and HrChildDiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.307. HrChildDiFihsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDiFihsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of FIHS for Child age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDiFihsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.308. HrChildDiFihsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDiFihsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of FIHS for Child age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDiFihsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.309. HrChildDiFihsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDiFihsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of FIHS for Child age group in Inpatient setting after Discharge

SQL:
select State
  from HrChildDiFihsCompleted
  join HrChildDiCodCount using (State)
 where HrChildDiFihsCompleted.Total = 0
   and HrChildDiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.310. HrChildDiHonoscaCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDiHonoscaCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOSCA for Child age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDiHonoscaCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.311. HrChildDiHonoscaVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDiHonoscaCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOSCA for Child age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDiHonoscaCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.312. HrChildDiHonoscaZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDiHonoscaCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOSCA for Child age group in Inpatient setting after Discharge

SQL:
select State
  from HrChildDiHonoscaCompleted
  join HrChildDiCodCount using (State)
 where HrChildDiHonoscaCompleted.Total = 0
   and HrChildDiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.313. HrChildDiMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDiMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Child age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDiMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.314. HrChildDiMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDiMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Child age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDiMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.315. HrChildDiMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDiMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Child age group in Inpatient setting after Discharge

SQL:
select State
  from HrChildDiMhlsCompleted
  join HrChildDiCodCount using (State)
 where HrChildDiMhlsCompleted.Total = 0
   and HrChildDiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.316. HrChildDiSdqCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDiSdqCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of SDQ for Child age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDiSdqCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.317. HrChildDiSdqVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDiSdqCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of SDQ for Child age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDiSdqCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.318. HrChildDiSdqZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDiSdqCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of SDQ for Child age group in Inpatient setting after Discharge

SQL:
select State
  from HrChildDiSdqCompleted
  join HrChildDiCodCount using (State)
 where HrChildDiSdqCompleted.Total = 0
   and HrChildDiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.319. HrChildDrDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDrDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Child age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDrDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.320. HrChildDrDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDrDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Child age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDrDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.321. HrChildDrDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDrDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Child age group in Residential setting after Discharge

SQL:
select State
  from HrChildDrDiagCompleted
  join HrChildDrCodCount using (State)
 where HrChildDrDiagCompleted.Total = 0
   and HrChildDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.322. HrChildDrFihsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDrFihsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of FIHS for Child age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDrFihsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.323. HrChildDrFihsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDrFihsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of FIHS for Child age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDrFihsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.324. HrChildDrFihsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDrFihsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of FIHS for Child age group in Residential setting after Discharge

SQL:
select State
  from HrChildDrFihsCompleted
  join HrChildDrCodCount using (State)
 where HrChildDrFihsCompleted.Total = 0
   and HrChildDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.325. HrChildDrHonoscaCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDrHonoscaCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOSCA for Child age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDrHonoscaCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.326. HrChildDrHonoscaVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDrHonoscaCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOSCA for Child age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDrHonoscaCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.327. HrChildDrHonoscaZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDrHonoscaCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOSCA for Child age group in Residential setting after Discharge

SQL:
select State
  from HrChildDrHonoscaCompleted
  join HrChildDrCodCount using (State)
 where HrChildDrHonoscaCompleted.Total = 0
   and HrChildDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.328. HrChildDrMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDrMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Child age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDrMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.329. HrChildDrMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDrMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Child age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDrMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.330. HrChildDrMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDrMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Child age group in Residential setting after Discharge

SQL:
select State
  from HrChildDrMhlsCompleted
  join HrChildDrCodCount using (State)
 where HrChildDrMhlsCompleted.Total = 0
   and HrChildDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.331. HrChildDrSdqCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDrSdqCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of SDQ for Child age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildDrSdqCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.332. HrChildDrSdqVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildDrSdqCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of SDQ for Child age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildDrSdqCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.333. HrChildDrSdqZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildDrSdqCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of SDQ for Child age group in Residential setting after Discharge

SQL:
select State
  from HrChildDrSdqCompleted
  join HrChildDrCodCount using (State)
 where HrChildDrSdqCompleted.Total = 0
   and HrChildDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.334. HrChildRaCgasCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaCgasCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of CGAS for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRaCgasCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.335. HrChildRaCgasVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaCgasCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of CGAS for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRaCgasCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.336. HrChildRaCgasZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRaCgasCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of CGAS for Child age group in Ambulatory setting after Review

SQL:
select State
  from HrChildRaCgasCompleted
  join HrChildRaCodCount using (State)
 where HrChildRaCgasCompleted.Total = 0
   and HrChildRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.337. HrChildRaDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRaDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.338. HrChildRaDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRaDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.339. HrChildRaDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRaDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Child age group in Ambulatory setting after Review

SQL:
select State
  from HrChildRaDiagCompleted
  join HrChildRaCodCount using (State)
 where HrChildRaDiagCompleted.Total = 0
   and HrChildRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.340. HrChildRaFihsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaFihsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of FIHS for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRaFihsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.341. HrChildRaFihsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaFihsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of FIHS for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRaFihsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.342. HrChildRaFihsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRaFihsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of FIHS for Child age group in Ambulatory setting after Review

SQL:
select State
  from HrChildRaFihsCompleted
  join HrChildRaCodCount using (State)
 where HrChildRaFihsCompleted.Total = 0
   and HrChildRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.343. HrChildRaHonoscaCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaHonoscaCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOSCA for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRaHonoscaCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.344. HrChildRaHonoscaVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaHonoscaCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOSCA for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRaHonoscaCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.345. HrChildRaHonoscaZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRaHonoscaCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOSCA for Child age group in Ambulatory setting after Review

SQL:
select State
  from HrChildRaHonoscaCompleted
  join HrChildRaCodCount using (State)
 where HrChildRaHonoscaCompleted.Total = 0
   and HrChildRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.346. HrChildRaMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRaMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.347. HrChildRaMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRaMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.348. HrChildRaMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRaMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Child age group in Ambulatory setting after Review

SQL:
select State
  from HrChildRaMhlsCompleted
  join HrChildRaCodCount using (State)
 where HrChildRaMhlsCompleted.Total = 0
   and HrChildRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.349. HrChildRaSdqCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaSdqCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of SDQ for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRaSdqCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.350. HrChildRaSdqVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRaSdqCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of SDQ for Child age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRaSdqCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.351. HrChildRaSdqZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRaSdqCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of SDQ for Child age group in Ambulatory setting after Review

SQL:
select State
  from HrChildRaSdqCompleted
  join HrChildRaCodCount using (State)
 where HrChildRaSdqCompleted.Total = 0
   and HrChildRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.352. HrChildRiCgasCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiCgasCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of CGAS for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRiCgasCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.353. HrChildRiCgasVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiCgasCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of CGAS for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRiCgasCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.354. HrChildRiCgasZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRiCgasCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of CGAS for Child age group in Inpatient setting after Review

SQL:
select State
  from HrChildRiCgasCompleted
  join HrChildRiCodCount using (State)
 where HrChildRiCgasCompleted.Total = 0
   and HrChildRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.355. HrChildRiDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRiDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.356. HrChildRiDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRiDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.357. HrChildRiDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRiDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Child age group in Inpatient setting after Review

SQL:
select State
  from HrChildRiDiagCompleted
  join HrChildRiCodCount using (State)
 where HrChildRiDiagCompleted.Total = 0
   and HrChildRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.358. HrChildRiFihsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiFihsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of FIHS for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRiFihsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.359. HrChildRiFihsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiFihsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of FIHS for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRiFihsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.360. HrChildRiFihsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRiFihsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of FIHS for Child age group in Inpatient setting after Review

SQL:
select State
  from HrChildRiFihsCompleted
  join HrChildRiCodCount using (State)
 where HrChildRiFihsCompleted.Total = 0
   and HrChildRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.361. HrChildRiHonoscaCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiHonoscaCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOSCA for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRiHonoscaCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.362. HrChildRiHonoscaVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiHonoscaCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOSCA for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRiHonoscaCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.363. HrChildRiHonoscaZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRiHonoscaCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOSCA for Child age group in Inpatient setting after Review

SQL:
select State
  from HrChildRiHonoscaCompleted
  join HrChildRiCodCount using (State)
 where HrChildRiHonoscaCompleted.Total = 0
   and HrChildRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.364. HrChildRiMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRiMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.365. HrChildRiMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRiMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.366. HrChildRiMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRiMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Child age group in Inpatient setting after Review

SQL:
select State
  from HrChildRiMhlsCompleted
  join HrChildRiCodCount using (State)
 where HrChildRiMhlsCompleted.Total = 0
   and HrChildRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.367. HrChildRiSdqCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiSdqCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of SDQ for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRiSdqCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.368. HrChildRiSdqVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRiSdqCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of SDQ for Child age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRiSdqCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.369. HrChildRiSdqZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRiSdqCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of SDQ for Child age group in Inpatient setting after Review

SQL:
select State
  from HrChildRiSdqCompleted
  join HrChildRiCodCount using (State)
 where HrChildRiSdqCompleted.Total = 0
   and HrChildRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.370. HrChildRrCgasCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrCgasCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of CGAS for Child age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRrCgasCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.371. HrChildRrCgasVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrCgasCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of CGAS for Child age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRrCgasCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.372. HrChildRrCgasZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRrCgasCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of CGAS for Child age group in Residential setting after Review

SQL:
select State
  from HrChildRrCgasCompleted
  join HrChildRrCodCount using (State)
 where HrChildRrCgasCompleted.Total = 0
   and HrChildRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.373. HrChildRrDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Child age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRrDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.374. HrChildRrDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Child age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRrDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.375. HrChildRrDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRrDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Child age group in Residential setting after Review

SQL:
select State
  from HrChildRrDiagCompleted
  join HrChildRrCodCount using (State)
 where HrChildRrDiagCompleted.Total = 0
   and HrChildRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.376. HrChildRrFihsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrFihsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of FIHS for Child age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRrFihsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.377. HrChildRrFihsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrFihsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of FIHS for Child age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRrFihsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.378. HrChildRrFihsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRrFihsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of FIHS for Child age group in Residential setting after Review

SQL:
select State
  from HrChildRrFihsCompleted
  join HrChildRrCodCount using (State)
 where HrChildRrFihsCompleted.Total = 0
   and HrChildRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.379. HrChildRrHonoscaCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrHonoscaCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOSCA for Child age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRrHonoscaCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.380. HrChildRrHonoscaVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrHonoscaCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOSCA for Child age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRrHonoscaCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.381. HrChildRrHonoscaZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRrHonoscaCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOSCA for Child age group in Residential setting after Review

SQL:
select State
  from HrChildRrHonoscaCompleted
  join HrChildRrCodCount using (State)
 where HrChildRrHonoscaCompleted.Total = 0
   and HrChildRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.382. HrChildRrMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Child age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRrMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.383. HrChildRrMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Child age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRrMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.384. HrChildRrMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRrMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Child age group in Residential setting after Review

SQL:
select State
  from HrChildRrMhlsCompleted
  join HrChildRrCodCount using (State)
 where HrChildRrMhlsCompleted.Total = 0
   and HrChildRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.385. HrChildRrSdqCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrSdqCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of SDQ for Child age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrChildRrSdqCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.386. HrChildRrSdqVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrChildRrSdqCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of SDQ for Child age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrChildRrSdqCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.387. HrChildRrSdqZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrChildRrSdqCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of SDQ for Child age group in Residential setting after Review

SQL:
select State
  from HrChildRrSdqCompleted
  join HrChildRrCodCount using (State)
 where HrChildRrSdqCompleted.Total = 0
   and HrChildRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.388. HrGenDtMissing

Class:

Missing

Priority:

High

Message:

Missing data - GenDt $GenDt.q

Mark:

HR.GenDt

Description:

Missing data - Data File Generation Date (GenDt)

SQL:
select State,
       GenDt
  from HR
 where GenDt is null
Data Elements:

13.1.389. HrOlderAaBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderAaBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.390. HrOlderAaBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderAaBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.391. HrOlderAaHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderAaHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.392. HrOlderAaHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderAaHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.393. HrOlderAaHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderAaHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Older age group in Ambulatory setting after Admission

SQL:
select State
  from HrOlderAaHonosCompleted
  join HrOlderAaCodCount using (State)
 where HrOlderAaHonosCompleted.Total = 0
   and HrOlderAaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.394. HrOlderAaK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderAaK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.395. HrOlderAaK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderAaK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.396. HrOlderAaK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderAaK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.397. HrOlderAaK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderAaK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.398. HrOlderAaMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderAaMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.399. HrOlderAaMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderAaMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.400. HrOlderAaPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderAaPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.401. HrOlderAaPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAaPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Older age group in Ambulatory setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderAaPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.402. HrOlderAaPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderAaPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Older age group in Ambulatory setting after Admission

SQL:
select State
  from HrOlderAaPocCompleted
  join HrOlderAaCodCount using (State)
 where HrOlderAaPocCompleted.Total = 0
   and HrOlderAaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.403. HrOlderAaSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderAaSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Older age group in Ambulatory setting after Admission

SQL:
select HrOlderAaCodCount.State as State
  from HrOlderAaCodCount
  join HrOlderAaMhi38Completed using (State)
  join HrOlderAaBasis32Completed using (State)
  join HrOlderAaK10lmCompleted using (State)
  join HrOlderAaK10l3dCompleted using (State)
 where HrOlderAaMhi38Completed.Total = 0
   and HrOlderAaBasis32Completed.Total = 0
   and HrOlderAaK10lmCompleted.Total = 0
   and HrOlderAaK10l3dCompleted.Total = 0
   and HrOlderAaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.404. HrOlderAiHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAiHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Older age group in Inpatient setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderAiHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.405. HrOlderAiHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAiHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Older age group in Inpatient setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderAiHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.406. HrOlderAiHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderAiHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Older age group in Inpatient setting after Admission

SQL:
select State
  from HrOlderAiHonosCompleted
  join HrOlderAiCodCount using (State)
 where HrOlderAiHonosCompleted.Total = 0
   and HrOlderAiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.407. HrOlderAiPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAiPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Older age group in Inpatient setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderAiPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.408. HrOlderAiPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAiPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Older age group in Inpatient setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderAiPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.409. HrOlderAiPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderAiPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Older age group in Inpatient setting after Admission

SQL:
select State
  from HrOlderAiPocCompleted
  join HrOlderAiCodCount using (State)
 where HrOlderAiPocCompleted.Total = 0
   and HrOlderAiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.410. HrOlderAiRugadlCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAiRugadlCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of RUGADL for Older age group in Inpatient setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderAiRugadlCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.411. HrOlderAiRugadlVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderAiRugadlCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of RUGADL for Older age group in Inpatient setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderAiRugadlCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.412. HrOlderAiRugadlZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderAiRugadlCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of RUGADL for Older age group in Inpatient setting after Admission

SQL:
select State
  from HrOlderAiRugadlCompleted
  join HrOlderAiCodCount using (State)
 where HrOlderAiRugadlCompleted.Total = 0
   and HrOlderAiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.413. HrOlderArBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderArBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.414. HrOlderArBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderArBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.415. HrOlderArHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderArHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.416. HrOlderArHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderArHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.417. HrOlderArHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderArHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Older age group in Residential setting after Admission

SQL:
select State
  from HrOlderArHonosCompleted
  join HrOlderArCodCount using (State)
 where HrOlderArHonosCompleted.Total = 0
   and HrOlderArCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.418. HrOlderArK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderArK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.419. HrOlderArK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderArK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.420. HrOlderArK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderArK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.421. HrOlderArK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderArK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.422. HrOlderArLsp16CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArLsp16CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of LSP16 for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderArLsp16CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.423. HrOlderArLsp16VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArLsp16Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of LSP16 for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderArLsp16CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.424. HrOlderArLsp16ZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderArLsp16CompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of LSP16 for Older age group in Residential setting after Admission

SQL:
select State
  from HrOlderArLsp16Completed
  join HrOlderArCodCount using (State)
 where HrOlderArLsp16Completed.Total = 0
   and HrOlderArCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.425. HrOlderArMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderArMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.426. HrOlderArMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderArMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.427. HrOlderArPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderArPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.428. HrOlderArPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderArPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Older age group in Residential setting after Admission

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderArPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.429. HrOlderArPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderArPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Older age group in Residential setting after Admission

SQL:
select State
  from HrOlderArPocCompleted
  join HrOlderArCodCount using (State)
 where HrOlderArPocCompleted.Total = 0
   and HrOlderArCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.430. HrOlderArSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderArSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Older age group in Residential setting after Admission

SQL:
select HrOlderArCodCount.State as State
  from HrOlderArCodCount
  join HrOlderArMhi38Completed using (State)
  join HrOlderArBasis32Completed using (State)
  join HrOlderArK10lmCompleted using (State)
  join HrOlderArK10l3dCompleted using (State)
 where HrOlderArMhi38Completed.Total = 0
   and HrOlderArBasis32Completed.Total = 0
   and HrOlderArK10lmCompleted.Total = 0
   and HrOlderArK10l3dCompleted.Total = 0
   and HrOlderArCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.431. HrOlderDaBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDaBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.432. HrOlderDaBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDaBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.433. HrOlderDaDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDaDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.434. HrOlderDaDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDaDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.435. HrOlderDaDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDaDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Older age group in Ambulatory setting after Discharge

SQL:
select State
  from HrOlderDaDiagCompleted
  join HrOlderDaCodCount using (State)
 where HrOlderDaDiagCompleted.Total = 0
   and HrOlderDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.436. HrOlderDaHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDaHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.437. HrOlderDaHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDaHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.438. HrOlderDaHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDaHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Older age group in Ambulatory setting after Discharge

SQL:
select State
  from HrOlderDaHonosCompleted
  join HrOlderDaCodCount using (State)
 where HrOlderDaHonosCompleted.Total = 0
   and HrOlderDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.439. HrOlderDaK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDaK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.440. HrOlderDaK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDaK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.441. HrOlderDaK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDaK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.442. HrOlderDaK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDaK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.443. HrOlderDaLsp16CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaLsp16CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of LSP16 for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDaLsp16CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.444. HrOlderDaLsp16VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaLsp16Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of LSP16 for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDaLsp16CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.445. HrOlderDaLsp16ZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDaLsp16CompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of LSP16 for Older age group in Ambulatory setting after Discharge

SQL:
select State
  from HrOlderDaLsp16Completed
  join HrOlderDaCodCount using (State)
 where HrOlderDaLsp16Completed.Total = 0
   and HrOlderDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.446. HrOlderDaMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDaMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.447. HrOlderDaMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDaMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.448. HrOlderDaMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDaMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.449. HrOlderDaMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDaMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDaMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.450. HrOlderDaMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDaMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Older age group in Ambulatory setting after Discharge

SQL:
select State
  from HrOlderDaMhlsCompleted
  join HrOlderDaCodCount using (State)
 where HrOlderDaMhlsCompleted.Total = 0
   and HrOlderDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.451. HrOlderDaSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDaSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Older age group in Ambulatory setting after Discharge

SQL:
select HrOlderDaCodCount.State as State
  from HrOlderDaCodCount
  join HrOlderDaMhi38Completed using (State)
  join HrOlderDaBasis32Completed using (State)
  join HrOlderDaK10lmCompleted using (State)
  join HrOlderDaK10l3dCompleted using (State)
 where HrOlderDaMhi38Completed.Total = 0
   and HrOlderDaBasis32Completed.Total = 0
   and HrOlderDaK10lmCompleted.Total = 0
   and HrOlderDaK10l3dCompleted.Total = 0
   and HrOlderDaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.452. HrOlderDiDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDiDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Older age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDiDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.453. HrOlderDiDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDiDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Older age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDiDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.454. HrOlderDiDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDiDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Older age group in Inpatient setting after Discharge

SQL:
select State
  from HrOlderDiDiagCompleted
  join HrOlderDiCodCount using (State)
 where HrOlderDiDiagCompleted.Total = 0
   and HrOlderDiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.455. HrOlderDiHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDiHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Older age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDiHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.456. HrOlderDiHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDiHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Older age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDiHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.457. HrOlderDiHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDiHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Older age group in Inpatient setting after Discharge

SQL:
select State
  from HrOlderDiHonosCompleted
  join HrOlderDiCodCount using (State)
 where HrOlderDiHonosCompleted.Total = 0
   and HrOlderDiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.458. HrOlderDiMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDiMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Older age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDiMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.459. HrOlderDiMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDiMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Older age group in Inpatient setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDiMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.460. HrOlderDiMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDiMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Older age group in Inpatient setting after Discharge

SQL:
select State
  from HrOlderDiMhlsCompleted
  join HrOlderDiCodCount using (State)
 where HrOlderDiMhlsCompleted.Total = 0
   and HrOlderDiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.461. HrOlderDrBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDrBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.462. HrOlderDrBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDrBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.463. HrOlderDrDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDrDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.464. HrOlderDrDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDrDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.465. HrOlderDrDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDrDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Older age group in Residential setting after Discharge

SQL:
select State
  from HrOlderDrDiagCompleted
  join HrOlderDrCodCount using (State)
 where HrOlderDrDiagCompleted.Total = 0
   and HrOlderDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.466. HrOlderDrHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDrHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.467. HrOlderDrHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDrHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.468. HrOlderDrHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDrHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Older age group in Residential setting after Discharge

SQL:
select State
  from HrOlderDrHonosCompleted
  join HrOlderDrCodCount using (State)
 where HrOlderDrHonosCompleted.Total = 0
   and HrOlderDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.469. HrOlderDrK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDrK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.470. HrOlderDrK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDrK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.471. HrOlderDrK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDrK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.472. HrOlderDrK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDrK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.473. HrOlderDrLsp16CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrLsp16CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of LSP16 for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDrLsp16CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.474. HrOlderDrLsp16VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrLsp16Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of LSP16 for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDrLsp16CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.475. HrOlderDrLsp16ZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDrLsp16CompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of LSP16 for Older age group in Residential setting after Discharge

SQL:
select State
  from HrOlderDrLsp16Completed
  join HrOlderDrCodCount using (State)
 where HrOlderDrLsp16Completed.Total = 0
   and HrOlderDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.476. HrOlderDrMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDrMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.477. HrOlderDrMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDrMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.478. HrOlderDrMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderDrMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.479. HrOlderDrMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderDrMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Older age group in Residential setting after Discharge

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderDrMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.480. HrOlderDrMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDrMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Older age group in Residential setting after Discharge

SQL:
select State
  from HrOlderDrMhlsCompleted
  join HrOlderDrCodCount using (State)
 where HrOlderDrMhlsCompleted.Total = 0
   and HrOlderDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.481. HrOlderDrSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderDrSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Older age group in Residential setting after Discharge

SQL:
select HrOlderDrCodCount.State as State
  from HrOlderDrCodCount
  join HrOlderDrMhi38Completed using (State)
  join HrOlderDrBasis32Completed using (State)
  join HrOlderDrK10lmCompleted using (State)
  join HrOlderDrK10l3dCompleted using (State)
 where HrOlderDrMhi38Completed.Total = 0
   and HrOlderDrBasis32Completed.Total = 0
   and HrOlderDrK10lmCompleted.Total = 0
   and HrOlderDrK10l3dCompleted.Total = 0
   and HrOlderDrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.482. HrOlderRaBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRaBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.483. HrOlderRaBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRaBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.484. HrOlderRaDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRaDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.485. HrOlderRaDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRaDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.486. HrOlderRaDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRaDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Older age group in Ambulatory setting after Review

SQL:
select State
  from HrOlderRaDiagCompleted
  join HrOlderRaCodCount using (State)
 where HrOlderRaDiagCompleted.Total = 0
   and HrOlderRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.487. HrOlderRaHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRaHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.488. HrOlderRaHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRaHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.489. HrOlderRaHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRaHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Older age group in Ambulatory setting after Review

SQL:
select State
  from HrOlderRaHonosCompleted
  join HrOlderRaCodCount using (State)
 where HrOlderRaHonosCompleted.Total = 0
   and HrOlderRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.490. HrOlderRaK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRaK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.491. HrOlderRaK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRaK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.492. HrOlderRaK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRaK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.493. HrOlderRaK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRaK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.494. HrOlderRaLsp16CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaLsp16CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of LSP16 for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRaLsp16CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.495. HrOlderRaLsp16VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaLsp16Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of LSP16 for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRaLsp16CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.496. HrOlderRaLsp16ZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRaLsp16CompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of LSP16 for Older age group in Ambulatory setting after Review

SQL:
select State
  from HrOlderRaLsp16Completed
  join HrOlderRaCodCount using (State)
 where HrOlderRaLsp16Completed.Total = 0
   and HrOlderRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.497. HrOlderRaMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRaMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.498. HrOlderRaMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRaMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.499. HrOlderRaMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRaMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.500. HrOlderRaMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRaMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.501. HrOlderRaMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRaMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Older age group in Ambulatory setting after Review

SQL:
select State
  from HrOlderRaMhlsCompleted
  join HrOlderRaCodCount using (State)
 where HrOlderRaMhlsCompleted.Total = 0
   and HrOlderRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.502. HrOlderRaPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRaPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.503. HrOlderRaPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRaPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Older age group in Ambulatory setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRaPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.504. HrOlderRaPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRaPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Older age group in Ambulatory setting after Review

SQL:
select State
  from HrOlderRaPocCompleted
  join HrOlderRaCodCount using (State)
 where HrOlderRaPocCompleted.Total = 0
   and HrOlderRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.505. HrOlderRaSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRaSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Older age group in Ambulatory setting after Review

SQL:
select HrOlderRaCodCount.State as State
  from HrOlderRaCodCount
  join HrOlderRaMhi38Completed using (State)
  join HrOlderRaBasis32Completed using (State)
  join HrOlderRaK10lmCompleted using (State)
  join HrOlderRaK10l3dCompleted using (State)
 where HrOlderRaMhi38Completed.Total = 0
   and HrOlderRaBasis32Completed.Total = 0
   and HrOlderRaK10lmCompleted.Total = 0
   and HrOlderRaK10l3dCompleted.Total = 0
   and HrOlderRaCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.506. HrOlderRiDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRiDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Older age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRiDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.507. HrOlderRiDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRiDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Older age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRiDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.508. HrOlderRiDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRiDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Older age group in Inpatient setting after Review

SQL:
select State
  from HrOlderRiDiagCompleted
  join HrOlderRiCodCount using (State)
 where HrOlderRiDiagCompleted.Total = 0
   and HrOlderRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.509. HrOlderRiHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRiHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Older age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRiHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.510. HrOlderRiHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRiHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Older age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRiHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.511. HrOlderRiHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRiHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Older age group in Inpatient setting after Review

SQL:
select State
  from HrOlderRiHonosCompleted
  join HrOlderRiCodCount using (State)
 where HrOlderRiHonosCompleted.Total = 0
   and HrOlderRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.512. HrOlderRiMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRiMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Older age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRiMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.513. HrOlderRiMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRiMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Older age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRiMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.514. HrOlderRiMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRiMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Older age group in Inpatient setting after Review

SQL:
select State
  from HrOlderRiMhlsCompleted
  join HrOlderRiCodCount using (State)
 where HrOlderRiMhlsCompleted.Total = 0
   and HrOlderRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.515. HrOlderRiPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRiPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Older age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRiPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.516. HrOlderRiPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRiPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Older age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRiPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.517. HrOlderRiPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRiPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Older age group in Inpatient setting after Review

SQL:
select State
  from HrOlderRiPocCompleted
  join HrOlderRiCodCount using (State)
 where HrOlderRiPocCompleted.Total = 0
   and HrOlderRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.518. HrOlderRiRugadlCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRiRugadlCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of RUGADL for Older age group in Inpatient setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRiRugadlCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.519. HrOlderRiRugadlVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRiRugadlCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of RUGADL for Older age group in Inpatient setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRiRugadlCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.520. HrOlderRiRugadlZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRiRugadlCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of RUGADL for Older age group in Inpatient setting after Review

SQL:
select State
  from HrOlderRiRugadlCompleted
  join HrOlderRiCodCount using (State)
 where HrOlderRiRugadlCompleted.Total = 0
   and HrOlderRiCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.521. HrOlderRrBasis32CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrBasis32CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of BASIS32 for Older age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRrBasis32CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.522. HrOlderRrBasis32VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrBasis32Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of BASIS32 for Older age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRrBasis32CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.523. HrOlderRrDiagCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrDiagCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of DIAG for Older age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRrDiagCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.524. HrOlderRrDiagVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrDiagCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of DIAG for Older age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRrDiagCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.525. HrOlderRrDiagZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRrDiagCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of DIAG for Older age group in Residential setting after Review

SQL:
select State
  from HrOlderRrDiagCompleted
  join HrOlderRrCodCount using (State)
 where HrOlderRrDiagCompleted.Total = 0
   and HrOlderRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.526. HrOlderRrHonosCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrHonosCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of HONOS for Older age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRrHonosCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.527. HrOlderRrHonosVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrHonosCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of HONOS for Older age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRrHonosCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.528. HrOlderRrHonosZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRrHonosCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of HONOS for Older age group in Residential setting after Review

SQL:
select State
  from HrOlderRrHonosCompleted
  join HrOlderRrCodCount using (State)
 where HrOlderRrHonosCompleted.Total = 0
   and HrOlderRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.529. HrOlderRrK10l3dCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrK10l3dCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10L3D for Older age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRrK10l3dCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.530. HrOlderRrK10l3dVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrK10l3dCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10L3D for Older age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRrK10l3dCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.531. HrOlderRrK10lmCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrK10lmCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of K10LM for Older age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRrK10lmCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.532. HrOlderRrK10lmVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrK10lmCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of K10LM for Older age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRrK10lmCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.533. HrOlderRrLsp16CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrLsp16CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of LSP16 for Older age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRrLsp16CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.534. HrOlderRrLsp16VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrLsp16Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of LSP16 for Older age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRrLsp16CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.535. HrOlderRrLsp16ZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRrLsp16CompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of LSP16 for Older age group in Residential setting after Review

SQL:
select State
  from HrOlderRrLsp16Completed
  join HrOlderRrCodCount using (State)
 where HrOlderRrLsp16Completed.Total = 0
   and HrOlderRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.536. HrOlderRrMhi38CompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrMhi38CompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHI38 for Older age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRrMhi38CompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.537. HrOlderRrMhi38VolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrMhi38Count exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHI38 for Older age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRrMhi38CountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.538. HrOlderRrMhlsCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrMhlsCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of MHLS for Older age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRrMhlsCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.539. HrOlderRrMhlsVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrMhlsCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of MHLS for Older age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRrMhlsCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.540. HrOlderRrMhlsZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRrMhlsCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of MHLS for Older age group in Residential setting after Review

SQL:
select State
  from HrOlderRrMhlsCompleted
  join HrOlderRrCodCount using (State)
 where HrOlderRrMhlsCompleted.Total = 0
   and HrOlderRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.541. HrOlderRrPocCompletionRateDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrPocCompletionRate exceeding 5% ($Decrease.perc)

Mark:

HR

Description:

Decrease in completion rate exceeding 5% for HR-level count of POC for Older age group in Residential setting after Review

SQL:
select State,
       round(-Change, 3) as Decrease
  from HrOlderRrPocCompletionRateChange
 where Change < -0.05
Data Elements:
Virtual Elements:

13.1.542. HrOlderRrPocVolumeDecrease

Class:

Historical

Priority:

High

Message:

Decrease in HrOlderRrPocCount exceeding 10% ($Decrease.perc)

Mark:

HR

Description:

Decrease in overall volume exceeding 10% HR-level count of POC for Older age group in Residential setting after Review

SQL:
select State,
       round(-Growth, 3) as Decrease
  from HrOlderRrPocCountGrowth
 where Growth < -0.1
Data Elements:
Virtual Elements:

13.1.543. HrOlderRrPocZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRrPocCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of POC for Older age group in Residential setting after Review

SQL:
select State
  from HrOlderRrPocCompleted
  join HrOlderRrCodCount using (State)
 where HrOlderRrPocCompleted.Total = 0
   and HrOlderRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.544. HrOlderRrSelfRepZeroCompletion

Class:

Anomaly

Priority:

High

Message:

Zero completion rate for HrOlderRrSelfRepCompletionRate

Mark:

HR

Description:

Zero completion rate for HR-level count of self-reported meastures for Older age group in Residential setting after Review

SQL:
select HrOlderRrCodCount.State as State
  from HrOlderRrCodCount
  join HrOlderRrMhi38Completed using (State)
  join HrOlderRrBasis32Completed using (State)
  join HrOlderRrK10lmCompleted using (State)
  join HrOlderRrK10l3dCompleted using (State)
 where HrOlderRrMhi38Completed.Total = 0
   and HrOlderRrBasis32Completed.Total = 0
   and HrOlderRrK10lmCompleted.Total = 0
   and HrOlderRrK10l3dCompleted.Total = 0
   and HrOlderRrCodCount.Total > 0
Data Elements:
Virtual Elements:

13.1.545. K10l3dColStSpaces

Class:

Invalid

Priority:

High

Message:

All spaces in field ColSt (Char)

Mark:

K10L3D.ColSt

Description:

All spaces in field ColSt (Char). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       ColSt
  from K10L3D
 where ColSt is null
Data Elements:

13.1.546. K10l3dIncomplete

Class:

Missing

Priority:

Low

Message:

K10L3D is Incomplete (at least 9 valid required)

Mark:

K10L3D

Description:

K10L3D is Incomplete - 9 valid items (valid: 1, 2, 3, 4, 5) are required from: K10L3D01, K10L3D02, K10L3D03, K10L3D04, K10L3D05, K10L3D06, K10L3D07, K10L3D08, K10L3D09, K10L3D10

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join K10l3d using (ColId)
  join K10l3dCompletion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.547. K10l3dK10L3D01Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10L3D01 (Number)

Mark:

K10L3D.K10L3D01

Description:

All spaces in field K10L3D01 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10L3D01
  from K10L3D
 where K10L3D01 is null
Data Elements:

13.1.548. K10l3dK10L3D02Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10L3D02 (Number)

Mark:

K10L3D.K10L3D02

Description:

All spaces in field K10L3D02 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10L3D02
  from K10L3D
 where K10L3D02 is null
Data Elements:

13.1.549. K10l3dK10L3D03Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10L3D03 (Number)

Mark:

K10L3D.K10L3D03

Description:

All spaces in field K10L3D03 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10L3D03
  from K10L3D
 where K10L3D03 is null
Data Elements:

13.1.550. K10l3dK10L3D04Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10L3D04 (Number)

Mark:

K10L3D.K10L3D04

Description:

All spaces in field K10L3D04 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10L3D04
  from K10L3D
 where K10L3D04 is null
Data Elements:

13.1.551. K10l3dK10L3D05Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10L3D05 (Number)

Mark:

K10L3D.K10L3D05

Description:

All spaces in field K10L3D05 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10L3D05
  from K10L3D
 where K10L3D05 is null
Data Elements:

13.1.552. K10l3dK10L3D06Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10L3D06 (Number)

Mark:

K10L3D.K10L3D06

Description:

All spaces in field K10L3D06 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10L3D06
  from K10L3D
 where K10L3D06 is null
Data Elements:

13.1.553. K10l3dK10L3D07Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10L3D07 (Number)

Mark:

K10L3D.K10L3D07

Description:

All spaces in field K10L3D07 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10L3D07
  from K10L3D
 where K10L3D07 is null
Data Elements:

13.1.554. K10l3dK10L3D08Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10L3D08 (Number)

Mark:

K10L3D.K10L3D08

Description:

All spaces in field K10L3D08 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10L3D08
  from K10L3D
 where K10L3D08 is null
Data Elements:

13.1.555. K10l3dK10L3D09Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10L3D09 (Number)

Mark:

K10L3D.K10L3D09

Description:

All spaces in field K10L3D09 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10L3D09
  from K10L3D
 where K10L3D09 is null
Data Elements:

13.1.556. K10l3dK10L3D10Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10L3D10 (Number)

Mark:

K10L3D.K10L3D10

Description:

All spaces in field K10L3D10 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10L3D10
  from K10L3D
 where K10L3D10 is null
Data Elements:

13.1.557. K10l3dK10L3DVerMissing

Class:

Missing

Priority:

High

Message:

Missing data - K10L3DVer $K10L3DVer.q

Mark:

K10L3D.K10L3DVer

Description:

Missing data - K10L3D Version (K10L3DVer)

SQL:
select ColId,
       K10L3DVer
  from K10L3D
 where K10L3DVer is null
Data Elements:

13.1.558. K10lmColStSpaces

Class:

Invalid

Priority:

High

Message:

All spaces in field ColSt (Char)

Mark:

K10LM.ColSt

Description:

All spaces in field ColSt (Char). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       ColSt
  from K10LM
 where ColSt is null
Data Elements:

13.1.559. K10lmIncomplete

Class:

Missing

Priority:

Low

Message:

K10LM is Incomplete (at least 9 valid required)

Mark:

K10LM

Description:

K10LM is Incomplete - 9 valid items (valid: 1, 2, 3, 4, 5) are required from: K10LM01, K10LM02, K10LM03, K10LM04, K10LM05, K10LM06, K10LM07, K10LM08, K10LM09, K10LM10

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join K10lm using (ColId)
  join K10lmCompletion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.560. K10lmK10LM01Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM01 (Number)

Mark:

K10LM.K10LM01

Description:

All spaces in field K10LM01 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM01
  from K10LM
 where K10LM01 is null
Data Elements:

13.1.561. K10lmK10LM02Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM02 (Number)

Mark:

K10LM.K10LM02

Description:

All spaces in field K10LM02 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM02
  from K10LM
 where K10LM02 is null
Data Elements:

13.1.562. K10lmK10LM03Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM03 (Number)

Mark:

K10LM.K10LM03

Description:

All spaces in field K10LM03 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM03
  from K10LM
 where K10LM03 is null
Data Elements:

13.1.563. K10lmK10LM04Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM04 (Number)

Mark:

K10LM.K10LM04

Description:

All spaces in field K10LM04 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM04
  from K10LM
 where K10LM04 is null
Data Elements:

13.1.564. K10lmK10LM05Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM05 (Number)

Mark:

K10LM.K10LM05

Description:

All spaces in field K10LM05 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM05
  from K10LM
 where K10LM05 is null
Data Elements:

13.1.565. K10lmK10LM06Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM06 (Number)

Mark:

K10LM.K10LM06

Description:

All spaces in field K10LM06 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM06
  from K10LM
 where K10LM06 is null
Data Elements:

13.1.566. K10lmK10LM07Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM07 (Number)

Mark:

K10LM.K10LM07

Description:

All spaces in field K10LM07 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM07
  from K10LM
 where K10LM07 is null
Data Elements:

13.1.567. K10lmK10LM08Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM08 (Number)

Mark:

K10LM.K10LM08

Description:

All spaces in field K10LM08 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM08
  from K10LM
 where K10LM08 is null
Data Elements:

13.1.568. K10lmK10LM09Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM09 (Number)

Mark:

K10LM.K10LM09

Description:

All spaces in field K10LM09 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM09
  from K10LM
 where K10LM09 is null
Data Elements:

13.1.569. K10lmK10LM10Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM10 (Number)

Mark:

K10LM.K10LM10

Description:

All spaces in field K10LM10 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM10
  from K10LM
 where K10LM10 is null
Data Elements:

13.1.570. K10lmK10LM11Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM11 (Number)

Mark:

K10LM.K10LM11

Description:

All spaces in field K10LM11 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM11
  from K10LM
 where K10LM11 is null
Data Elements:

13.1.571. K10lmK10LM12Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM12 (Number)

Mark:

K10LM.K10LM12

Description:

All spaces in field K10LM12 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM12
  from K10LM
 where K10LM12 is null
Data Elements:

13.1.572. K10lmK10LM13Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM13 (Number)

Mark:

K10LM.K10LM13

Description:

All spaces in field K10LM13 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM13
  from K10LM
 where K10LM13 is null
Data Elements:

13.1.573. K10lmK10LM14Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field K10LM14 (Number)

Mark:

K10LM.K10LM14

Description:

All spaces in field K10LM14 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       K10LM14
  from K10LM
 where K10LM14 is null
Data Elements:

13.1.574. K10lmK10LMVerMissing

Class:

Missing

Priority:

High

Message:

Missing data - K10LMVer $K10LMVer.q

Mark:

K10LM.K10LMVer

Description:

Missing data - K10+LM Version (K10LMVer)

SQL:
select ColId,
       K10LMVer
  from K10LM
 where K10LMVer is null
Data Elements:

13.1.575. Lsp16Incomplete

Class:

Missing

Priority:

Low

Message:

LSP16 is Incomplete (at least 14 valid required)

Mark:

LSP16

Description:

LSP16 is Incomplete - 14 valid items (valid: 0, 1, 2, 3) are required from: Lsp01, Lsp02, Lsp03, Lsp04, Lsp05, Lsp06, Lsp07, Lsp08, Lsp09, Lsp10, Lsp11, Lsp12, Lsp13, Lsp14, Lsp15, Lsp16

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join Lsp16 using (ColId)
  join Lsp16Completion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.576. Lsp16Lsp01Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp01 (Number)

Mark:

LSP16.Lsp01

Description:

All spaces in field Lsp01 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp01
  from LSP16
 where Lsp01 is null
Data Elements:

13.1.577. Lsp16Lsp02Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp02 (Number)

Mark:

LSP16.Lsp02

Description:

All spaces in field Lsp02 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp02
  from LSP16
 where Lsp02 is null
Data Elements:

13.1.578. Lsp16Lsp03Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp03 (Number)

Mark:

LSP16.Lsp03

Description:

All spaces in field Lsp03 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp03
  from LSP16
 where Lsp03 is null
Data Elements:

13.1.579. Lsp16Lsp04Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp04 (Number)

Mark:

LSP16.Lsp04

Description:

All spaces in field Lsp04 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp04
  from LSP16
 where Lsp04 is null
Data Elements:

13.1.580. Lsp16Lsp05Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp05 (Number)

Mark:

LSP16.Lsp05

Description:

All spaces in field Lsp05 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp05
  from LSP16
 where Lsp05 is null
Data Elements:

13.1.581. Lsp16Lsp06Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp06 (Number)

Mark:

LSP16.Lsp06

Description:

All spaces in field Lsp06 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp06
  from LSP16
 where Lsp06 is null
Data Elements:

13.1.582. Lsp16Lsp07Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp07 (Number)

Mark:

LSP16.Lsp07

Description:

All spaces in field Lsp07 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp07
  from LSP16
 where Lsp07 is null
Data Elements:

13.1.583. Lsp16Lsp08Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp08 (Number)

Mark:

LSP16.Lsp08

Description:

All spaces in field Lsp08 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp08
  from LSP16
 where Lsp08 is null
Data Elements:

13.1.584. Lsp16Lsp09Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp09 (Number)

Mark:

LSP16.Lsp09

Description:

All spaces in field Lsp09 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp09
  from LSP16
 where Lsp09 is null
Data Elements:

13.1.585. Lsp16Lsp10Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp10 (Number)

Mark:

LSP16.Lsp10

Description:

All spaces in field Lsp10 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp10
  from LSP16
 where Lsp10 is null
Data Elements:

13.1.586. Lsp16Lsp11Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp11 (Number)

Mark:

LSP16.Lsp11

Description:

All spaces in field Lsp11 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp11
  from LSP16
 where Lsp11 is null
Data Elements:

13.1.587. Lsp16Lsp12Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp12 (Number)

Mark:

LSP16.Lsp12

Description:

All spaces in field Lsp12 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp12
  from LSP16
 where Lsp12 is null
Data Elements:

13.1.588. Lsp16Lsp13Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp13 (Number)

Mark:

LSP16.Lsp13

Description:

All spaces in field Lsp13 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp13
  from LSP16
 where Lsp13 is null
Data Elements:

13.1.589. Lsp16Lsp14Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp14 (Number)

Mark:

LSP16.Lsp14

Description:

All spaces in field Lsp14 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp14
  from LSP16
 where Lsp14 is null
Data Elements:

13.1.590. Lsp16Lsp15Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp15 (Number)

Mark:

LSP16.Lsp15

Description:

All spaces in field Lsp15 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp15
  from LSP16
 where Lsp15 is null
Data Elements:

13.1.591. Lsp16Lsp16Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field Lsp16 (Number)

Mark:

LSP16.Lsp16

Description:

All spaces in field Lsp16 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       Lsp16
  from LSP16
 where Lsp16 is null
Data Elements:

13.1.592. Lsp16LspVerMissing

Class:

Missing

Priority:

High

Message:

Missing data - LspVer $LspVer.q

Mark:

LSP16.LspVer

Description:

Missing data - LSP-16 Version (LspVer)

SQL:
select ColId,
       LspVer
  from LSP16
 where LspVer is null
Data Elements:

13.1.593. Mhi38ColStSpaces

Class:

Invalid

Priority:

High

Message:

All spaces in field ColSt (Char)

Mark:

MHI38.ColSt

Description:

All spaces in field ColSt (Char). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       ColSt
  from MHI38
 where ColSt is null
Data Elements:

13.1.594. Mhi38Incomplete

Class:

Missing

Priority:

Low

Message:

MHI38 is Incomplete (at least 30 valid required)

Mark:

MHI38

Description:

MHI38 is Incomplete - 30 valid items (valid: 1, 2, 3, 4, 5, 6) are required from: MHI01, MHI02, MHI03, MHI04, MHI05, MHI06, MHI07, MHI08, MHI09, MHI10, MHI11, MHI12, MHI13, MHI14, MHI15, MHI16, MHI17, MHI18, MHI19, MHI20, MHI21, MHI22, MHI23, MHI24, MHI25, MHI26, MHI27, MHI28, MHI29, MHI30, MHI31, MHI32, MHI33, MHI34, MHI35, MHI36, MHI37, MHI38

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join Mhi38 using (ColId)
  join Mhi38Completion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.595. Mhi38MHI01Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI01 (Number)

Mark:

MHI38.MHI01

Description:

All spaces in field MHI01 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI01
  from MHI38
 where MHI01 is null
Data Elements:

13.1.596. Mhi38MHI02Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI02 (Number)

Mark:

MHI38.MHI02

Description:

All spaces in field MHI02 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI02
  from MHI38
 where MHI02 is null
Data Elements:

13.1.597. Mhi38MHI03Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI03 (Number)

Mark:

MHI38.MHI03

Description:

All spaces in field MHI03 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI03
  from MHI38
 where MHI03 is null
Data Elements:

13.1.598. Mhi38MHI04Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI04 (Number)

Mark:

MHI38.MHI04

Description:

All spaces in field MHI04 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI04
  from MHI38
 where MHI04 is null
Data Elements:

13.1.599. Mhi38MHI05Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI05 (Number)

Mark:

MHI38.MHI05

Description:

All spaces in field MHI05 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI05
  from MHI38
 where MHI05 is null
Data Elements:

13.1.600. Mhi38MHI06Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI06 (Number)

Mark:

MHI38.MHI06

Description:

All spaces in field MHI06 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI06
  from MHI38
 where MHI06 is null
Data Elements:

13.1.601. Mhi38MHI07Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI07 (Number)

Mark:

MHI38.MHI07

Description:

All spaces in field MHI07 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI07
  from MHI38
 where MHI07 is null
Data Elements:

13.1.602. Mhi38MHI08Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI08 (Number)

Mark:

MHI38.MHI08

Description:

All spaces in field MHI08 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI08
  from MHI38
 where MHI08 is null
Data Elements:

13.1.603. Mhi38MHI09Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI09 (Number)

Mark:

MHI38.MHI09

Description:

All spaces in field MHI09 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI09
  from MHI38
 where MHI09 is null
Data Elements:

13.1.604. Mhi38MHI10Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI10 (Number)

Mark:

MHI38.MHI10

Description:

All spaces in field MHI10 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI10
  from MHI38
 where MHI10 is null
Data Elements:

13.1.605. Mhi38MHI11Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI11 (Number)

Mark:

MHI38.MHI11

Description:

All spaces in field MHI11 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI11
  from MHI38
 where MHI11 is null
Data Elements:

13.1.606. Mhi38MHI12Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI12 (Number)

Mark:

MHI38.MHI12

Description:

All spaces in field MHI12 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI12
  from MHI38
 where MHI12 is null
Data Elements:

13.1.607. Mhi38MHI13Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI13 (Number)

Mark:

MHI38.MHI13

Description:

All spaces in field MHI13 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI13
  from MHI38
 where MHI13 is null
Data Elements:

13.1.608. Mhi38MHI14Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI14 (Number)

Mark:

MHI38.MHI14

Description:

All spaces in field MHI14 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI14
  from MHI38
 where MHI14 is null
Data Elements:

13.1.609. Mhi38MHI15Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI15 (Number)

Mark:

MHI38.MHI15

Description:

All spaces in field MHI15 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI15
  from MHI38
 where MHI15 is null
Data Elements:

13.1.610. Mhi38MHI16Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI16 (Number)

Mark:

MHI38.MHI16

Description:

All spaces in field MHI16 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI16
  from MHI38
 where MHI16 is null
Data Elements:

13.1.611. Mhi38MHI17Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI17 (Number)

Mark:

MHI38.MHI17

Description:

All spaces in field MHI17 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI17
  from MHI38
 where MHI17 is null
Data Elements:

13.1.612. Mhi38MHI18Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI18 (Number)

Mark:

MHI38.MHI18

Description:

All spaces in field MHI18 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI18
  from MHI38
 where MHI18 is null
Data Elements:

13.1.613. Mhi38MHI19Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI19 (Number)

Mark:

MHI38.MHI19

Description:

All spaces in field MHI19 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI19
  from MHI38
 where MHI19 is null
Data Elements:

13.1.614. Mhi38MHI20Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI20 (Number)

Mark:

MHI38.MHI20

Description:

All spaces in field MHI20 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI20
  from MHI38
 where MHI20 is null
Data Elements:

13.1.615. Mhi38MHI21Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI21 (Number)

Mark:

MHI38.MHI21

Description:

All spaces in field MHI21 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI21
  from MHI38
 where MHI21 is null
Data Elements:

13.1.616. Mhi38MHI22Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI22 (Number)

Mark:

MHI38.MHI22

Description:

All spaces in field MHI22 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI22
  from MHI38
 where MHI22 is null
Data Elements:

13.1.617. Mhi38MHI23Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI23 (Number)

Mark:

MHI38.MHI23

Description:

All spaces in field MHI23 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI23
  from MHI38
 where MHI23 is null
Data Elements:

13.1.618. Mhi38MHI24Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI24 (Number)

Mark:

MHI38.MHI24

Description:

All spaces in field MHI24 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI24
  from MHI38
 where MHI24 is null
Data Elements:

13.1.619. Mhi38MHI25Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI25 (Number)

Mark:

MHI38.MHI25

Description:

All spaces in field MHI25 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI25
  from MHI38
 where MHI25 is null
Data Elements:

13.1.620. Mhi38MHI26Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI26 (Number)

Mark:

MHI38.MHI26

Description:

All spaces in field MHI26 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI26
  from MHI38
 where MHI26 is null
Data Elements:

13.1.621. Mhi38MHI27Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI27 (Number)

Mark:

MHI38.MHI27

Description:

All spaces in field MHI27 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI27
  from MHI38
 where MHI27 is null
Data Elements:

13.1.622. Mhi38MHI28Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI28 (Number)

Mark:

MHI38.MHI28

Description:

All spaces in field MHI28 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI28
  from MHI38
 where MHI28 is null
Data Elements:

13.1.623. Mhi38MHI29Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI29 (Number)

Mark:

MHI38.MHI29

Description:

All spaces in field MHI29 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI29
  from MHI38
 where MHI29 is null
Data Elements:

13.1.624. Mhi38MHI30Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI30 (Number)

Mark:

MHI38.MHI30

Description:

All spaces in field MHI30 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI30
  from MHI38
 where MHI30 is null
Data Elements:

13.1.625. Mhi38MHI31Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI31 (Number)

Mark:

MHI38.MHI31

Description:

All spaces in field MHI31 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI31
  from MHI38
 where MHI31 is null
Data Elements:

13.1.626. Mhi38MHI32Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI32 (Number)

Mark:

MHI38.MHI32

Description:

All spaces in field MHI32 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI32
  from MHI38
 where MHI32 is null
Data Elements:

13.1.627. Mhi38MHI33Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI33 (Number)

Mark:

MHI38.MHI33

Description:

All spaces in field MHI33 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI33
  from MHI38
 where MHI33 is null
Data Elements:

13.1.628. Mhi38MHI34Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI34 (Number)

Mark:

MHI38.MHI34

Description:

All spaces in field MHI34 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI34
  from MHI38
 where MHI34 is null
Data Elements:

13.1.629. Mhi38MHI35Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI35 (Number)

Mark:

MHI38.MHI35

Description:

All spaces in field MHI35 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI35
  from MHI38
 where MHI35 is null
Data Elements:

13.1.630. Mhi38MHI36Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI36 (Number)

Mark:

MHI38.MHI36

Description:

All spaces in field MHI36 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI36
  from MHI38
 where MHI36 is null
Data Elements:

13.1.631. Mhi38MHI37Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI37 (Number)

Mark:

MHI38.MHI37

Description:

All spaces in field MHI37 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI37
  from MHI38
 where MHI37 is null
Data Elements:

13.1.632. Mhi38MHI38Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field MHI38 (Number)

Mark:

MHI38.MHI38

Description:

All spaces in field MHI38 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       MHI38
  from MHI38
 where MHI38 is null
Data Elements:

13.1.633. Mhi38MHIVerMissing

Class:

Missing

Priority:

High

Message:

Missing data - MHIVer $MHIVer.q

Mark:

MHI38.MHIVer

Description:

Missing data - MHI38 Version (MHIVer)

SQL:
select ColId,
       MHIVer
  from MHI38
 where MHIVer is null
Data Elements:

13.1.634. MhlsIncomplete

Class:

Missing

Priority:

Low

Message:

MHLS is Incomplete

Mark:

MHLS

Description:

MHLS is Incomplete

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join Mhls using (ColId)
  join MhlsCompletion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.635. MhlsLegalStSpaces

Class:

Invalid

Priority:

High

Message:

All spaces in field LegalSt (Char)

Mark:

MHLS.LegalSt

Description:

All spaces in field LegalSt (Char). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       LegalSt
  from MHLS
 where LegalSt is null
Data Elements:

13.1.636. OrgAmbuCAInSklOnly

Class:

Skeleton

Priority:

High

Message:

ORG Child and adolescent unit $skl_name.qt expected from SKL is missing

Mark:

ORG

Description:

Organisation (CLUS) appears in skeleton data only - A matching Organisation (ORG) with Child and adolescent in Ambulatory setting is expected based on the SKL data but is not present in this file

SQL:
select State,
       RegId,
       OrgId,
       skl_entity.OrgName as skl_name
  from skl.OrgHasAmbuCA
  left join OrgHasAmbuCA as checking using (State, RegId, OrgId)
  left join OrgHasAmbu as parent using (State, RegId, OrgId)
  join skl.ORG as skl_entity using (State, RegId, OrgId)
 where checking.OrgId is null
   and parent.OrgId is not null
Data Elements:
Virtual Elements:

13.1.637. OrgAmbuCANotInSkl

Class:

Skeleton

Priority:

High

Message:

ORG Child and adolescent unit $name.qt not in SKL data

Mark:

ORG

Description:

Organisation (ORG) not in skeleton reference data - A matching Organisation (ORG) with Child and adolescent age group in Ambulatory setting was not found in the skeleton data

SQL:
select State,
       RegId,
       OrgId,
       ORG.OrgName as name
  from OrgHasAmbuCA
  left join skl.OrgHasAmbuCA as skl_entity using (State, RegId, OrgId)
  left join skl.OrgHasAmbu as skl_parent using (State, RegId, OrgId)
  join ORG using (State, RegId, OrgId)
 where skl_entity.OrgId is null
   and skl_parent.OrgId is not null
Data Elements:
Virtual Elements:

13.1.638. OrgAmbuForInSklOnly

Class:

Skeleton

Priority:

High

Message:

ORG Forensic unit $skl_name.qt expected from SKL is missing

Mark:

ORG

Description:

Organisation (CLUS) appears in skeleton data only - A matching Organisation (ORG) with Forensic in Ambulatory setting is expected based on the SKL data but is not present in this file

SQL:
select State,
       RegId,
       OrgId,
       skl_entity.OrgName as skl_name
  from skl.OrgHasAmbuFor
  left join OrgHasAmbuFor as checking using (State, RegId, OrgId)
  left join OrgHasAmbu as parent using (State, RegId, OrgId)
  join skl.ORG as skl_entity using (State, RegId, OrgId)
 where checking.OrgId is null
   and parent.OrgId is not null
Data Elements:
Virtual Elements:

13.1.639. OrgAmbuForNotInSkl

Class:

Skeleton

Priority:

High

Message:

ORG Forensic unit $name.qt not in SKL data

Mark:

ORG

Description:

Organisation (ORG) not in skeleton reference data - A matching Organisation (ORG) with Forensic age group in Ambulatory setting was not found in the skeleton data

SQL:
select State,
       RegId,
       OrgId,
       ORG.OrgName as name
  from OrgHasAmbuFor
  left join skl.OrgHasAmbuFor as skl_entity using (State, RegId, OrgId)
  left join skl.OrgHasAmbu as skl_parent using (State, RegId, OrgId)
  join ORG using (State, RegId, OrgId)
 where skl_entity.OrgId is null
   and skl_parent.OrgId is not null
Data Elements:
Virtual Elements:

13.1.640. OrgAmbuGenInSklOnly

Class:

Skeleton

Priority:

High

Message:

ORG General unit $skl_name.qt expected from SKL is missing

Mark:

ORG

Description:

Organisation (CLUS) appears in skeleton data only - A matching Organisation (ORG) with General in Ambulatory setting is expected based on the SKL data but is not present in this file

SQL:
select State,
       RegId,
       OrgId,
       skl_entity.OrgName as skl_name
  from skl.OrgHasAmbuGen
  left join OrgHasAmbuGen as checking using (State, RegId, OrgId)
  left join OrgHasAmbu as parent using (State, RegId, OrgId)
  join skl.ORG as skl_entity using (State, RegId, OrgId)
 where checking.OrgId is null
   and parent.OrgId is not null
Data Elements:
Virtual Elements:

13.1.641. OrgAmbuGenNotInSkl

Class:

Skeleton

Priority:

High

Message:

ORG General unit $name.qt not in SKL data

Mark:

ORG

Description:

Organisation (ORG) not in skeleton reference data - A matching Organisation (ORG) with General age group in Ambulatory setting was not found in the skeleton data

SQL:
select State,
       RegId,
       OrgId,
       ORG.OrgName as name
  from OrgHasAmbuGen
  left join skl.OrgHasAmbuGen as skl_entity using (State, RegId, OrgId)
  left join skl.OrgHasAmbu as skl_parent using (State, RegId, OrgId)
  join ORG using (State, RegId, OrgId)
 where skl_entity.OrgId is null
   and skl_parent.OrgId is not null
Data Elements:
Virtual Elements:

13.1.642. OrgAmbuOldInSklOnly

Class:

Skeleton

Priority:

High

Message:

ORG Older person unit $skl_name.qt expected from SKL is missing

Mark:

ORG

Description:

Organisation (CLUS) appears in skeleton data only - A matching Organisation (ORG) with Older person in Ambulatory setting is expected based on the SKL data but is not present in this file

SQL:
select State,
       RegId,
       OrgId,
       skl_entity.OrgName as skl_name
  from skl.OrgHasAmbuOld
  left join OrgHasAmbuOld as checking using (State, RegId, OrgId)
  left join OrgHasAmbu as parent using (State, RegId, OrgId)
  join skl.ORG as skl_entity using (State, RegId, OrgId)
 where checking.OrgId is null
   and parent.OrgId is not null
Data Elements:
Virtual Elements:

13.1.643. OrgAmbuOldNotInSkl

Class:

Skeleton

Priority:

High

Message:

ORG Older person unit $name.qt not in SKL data

Mark:

ORG

Description:

Organisation (ORG) not in skeleton reference data - A matching Organisation (ORG) with Older person age group in Ambulatory setting was not found in the skeleton data

SQL:
select State,
       RegId,
       OrgId,
       ORG.OrgName as name
  from OrgHasAmbuOld
  left join skl.OrgHasAmbuOld as skl_entity using (State, RegId, OrgId)
  left join skl.OrgHasAmbu as skl_parent using (State, RegId, OrgId)
  join ORG using (State, RegId, OrgId)
 where skl_entity.OrgId is null
   and skl_parent.OrgId is not null
Data Elements:
Virtual Elements:

13.1.644. OrgAmbuYthInSklOnly

Class:

Skeleton

Priority:

High

Message:

ORG Youth unit $skl_name.qt expected from SKL is missing

Mark:

ORG

Description:

Organisation (CLUS) appears in skeleton data only - A matching Organisation (ORG) with Youth in Ambulatory setting is expected based on the SKL data but is not present in this file

SQL:
select State,
       RegId,
       OrgId,
       skl_entity.OrgName as skl_name
  from skl.OrgHasAmbuYth
  left join OrgHasAmbuYth as checking using (State, RegId, OrgId)
  left join OrgHasAmbu as parent using (State, RegId, OrgId)
  join skl.ORG as skl_entity using (State, RegId, OrgId)
 where checking.OrgId is null
   and parent.OrgId is not null
Data Elements:
Virtual Elements:

13.1.645. OrgAmbuYthNotInSkl

Class:

Skeleton

Priority:

High

Message:

ORG Youth unit $name.qt not in SKL data

Mark:

ORG

Description:

Organisation (ORG) not in skeleton reference data - A matching Organisation (ORG) with Youth age group in Ambulatory setting was not found in the skeleton data

SQL:
select State,
       RegId,
       OrgId,
       ORG.OrgName as name
  from OrgHasAmbuYth
  left join skl.OrgHasAmbuYth as skl_entity using (State, RegId, OrgId)
  left join skl.OrgHasAmbu as skl_parent using (State, RegId, OrgId)
  join ORG using (State, RegId, OrgId)
 where skl_entity.OrgId is null
   and skl_parent.OrgId is not null
Data Elements:
Virtual Elements:

13.1.646. OrgClosed

Class:

Historical

Priority:

High

Message:

Org closed, historical $hist_name.qt (OrgId: $hist_OrgId) no longer exists

Mark:

HR

Description:

Organisation Closed - A historical Organisation was not found in current data

SQL:
select State,
       hist_entity.State as hist_State,
       hist_entity.RegId as hist_RegId,
       hist_entity.OrgId as hist_OrgId,
       hist_entity.OrgName as hist_name
  from hist.ORG as hist_entity
  left join main.ORG using (State, RegId, OrgId)
 where ORG.OrgId is null
Data Elements:

13.1.647. OrgCodDoBDiffers

Class:

Anomaly

Priority:

Low

Message:

Organisation has $percount people with inconsistently recorded DoB field values

Mark:

ORG

Description:

Person has multiple values for DoB across one organisation

SQL:
with codattrdiffers as (
        select State,
               RegId,
               OrgId,
               pid
          from cod
         group by State,
                  RegId,
                  OrgId,
                  pid
        having count(distinct DoB) > 1
       ) select State,
       RegId,
       OrgId,
       count(pid) as percount
  from codattrdiffers
 group by State,
          RegId,
          OrgId
Data Elements:

13.1.648. OrgCodSexDiffers

Class:

Anomaly

Priority:

Low

Message:

Organisation has $percount people with inconsistently recorded Sex field values

Mark:

ORG

Description:

Person has multiple values for Sex across one organisation

SQL:
with codattrdiffers as (
        select State,
               RegId,
               OrgId,
               pid
          from cod
         group by State,
                  RegId,
                  OrgId,
                  pid
        having count(distinct Sex) > 1
       ) select State,
       RegId,
       OrgId,
       count(pid) as percount
  from codattrdiffers
 group by State,
          RegId,
          OrgId
Data Elements:

13.1.649. OrgInSklOnly

Class:

Skeleton

Priority:

High

Message:

Org $skl_name.qt expected from SKL is missing

Mark:

REG

Description:

Organisation (ORG) appears in skeleton data only - A Organisation (ORG) with matching Ids is expected based on the SKL data but is not present in this file

SQL:
select State,
       RegId,
       OrgId as skl_OrgId,
       skl_entity.OrgName as skl_name
  from skl.ORG as skl_entity
  left join ORG as checking using (State, RegId, OrgId)
  left join REG as parent using (State, RegId)
 where checking.OrgId is null
   and parent.RegId is not null
Data Elements:

13.1.650. OrgNotInSkl

Class:

Skeleton

Priority:

High

Message:

Org $name.qt not in SKL data

Mark:

ORG

Description:

Organisation not in skeleton reference data - A matching Organisation (ORG) was not found in the skeleton data

SQL:
select State,
       RegId,
       OrgId,
       ORG.OrgName as name
  from ORG
  left join skl.ORG as skl_entity using (State, RegId, OrgId)
  left join skl.REG as skl_parent using (State, RegId)
 where skl_entity.OrgId is null
   and skl_parent.RegId is not null
Data Elements:

13.1.651. OrgOpened

Class:

Historical

Priority:

High

Message:

Org opened, $OrgName.qt (OrgId: $OrgId) not in historical data

Mark:

ORG

Description:

Organisation Opened - A matching Organisation was not found in the historical data

SQL:
select State,
       RegId,
       OrgId,
       ORG.OrgName
  from main.ORG
  left join hist.ORG as hist_entity using (State, RegId, OrgId)
 where hist_entity.OrgId is null
Data Elements:

13.1.652. OrgOrgNameMissing

Class:

Missing

Priority:

High

Message:

Missing data - OrgName $OrgName.q

Mark:

ORG.OrgName

Description:

Missing data - Organisation Name (OrgName)

SQL:
select State,
       RegId,
       OrgId,
       OrgName
  from ORG
 where OrgName is null
Data Elements:

13.1.653. OrgRenamed

Class:

Historical

Priority:

High

Message:

Org renamed from $hist_name.qt to $OrgName.qt

Mark:

ORG.OrgName

Description:

Organisation Renamed - Organisation Name differs between historical and current data

SQL:
select State,
       RegId,
       OrgId,
       ORG.OrgName,
       hist_entity.OrgName as hist_name
  from ORG
  join hist.ORG as hist_entity using(State, RegId, OrgId)
 where not sloppy_match(ORG.OrgName, hist_entity.OrgName)
Data Elements:

13.1.654. PocIncomplete

Class:

Missing

Priority:

Low

Message:

POC is Incomplete

Mark:

POC

Description:

POC is Incomplete

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join Poc using (ColId)
  join PocCompletion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.655. PocPoCSpaces

Class:

Invalid

Priority:

High

Message:

All spaces in field PoC (Char)

Mark:

POC.PoC

Description:

All spaces in field PoC (Char). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       PoC
  from POC
 where PoC is null
Data Elements:

13.1.656. RegClosed

Class:

Historical

Priority:

High

Message:

Reg closed, historical $hist_name.qt (RegId: $hist_RegId) no longer exists

Mark:

HR

Description:

Region Closed - A historical Region was not found in current data

SQL:
select State,
       hist_entity.State as hist_State,
       hist_entity.RegId as hist_RegId,
       hist_entity.RegName as hist_name
  from hist.REG as hist_entity
  left join main.REG using (State, RegId)
 where REG.RegId is null
Data Elements:

13.1.657. RegInSklOnly

Class:

Skeleton

Priority:

High

Message:

Reg $skl_name.qt expected from SKL is missing

Mark:

HR

Description:

Region (REG) appears in skeleton data only - A Region (REG) with matching Ids is expected based on the SKL data but is not present in this file

SQL:
select State,
       RegId as skl_RegId,
       skl_entity.RegName as skl_name
  from skl.REG as skl_entity
  left join REG as checking using (State, RegId)
 where checking.RegId is null
Data Elements:

13.1.658. RegNotInSkl

Class:

Skeleton

Priority:

High

Message:

Reg $name.qt not in SKL data

Mark:

REG

Description:

Region not in skeleton reference data - A matching Region (REG) was not found in the skeleton data

SQL:
select State,
       RegId,
       REG.RegName as name
  from REG
  left join skl.REG as skl_entity using (State, RegId)
 where skl_entity.RegId is null
Data Elements:

13.1.659. RegOpened

Class:

Historical

Priority:

High

Message:

Reg opened, $RegName.qt (RegId: $RegId) not in historical data

Mark:

REG

Description:

Region Opened - A matching Region was not found in the historical data

SQL:
select State,
       RegId,
       REG.RegName
  from main.REG
  left join hist.REG as hist_entity using (State, RegId)
 where hist_entity.RegId is null
Data Elements:

13.1.660. RegRegNameMissing

Class:

Missing

Priority:

High

Message:

Missing data - RegName $RegName.q

Mark:

REG.RegName

Description:

Missing data - Region Name (RegName)

SQL:
select State,
       RegId,
       RegName
  from REG
 where RegName is null
Data Elements:

13.1.661. RegRenamed

Class:

Historical

Priority:

High

Message:

Reg renamed from $hist_name.qt to $RegName.qt

Mark:

REG.RegName

Description:

Region Renamed - Region Name differs between historical and current data

SQL:
select State,
       RegId,
       REG.RegName,
       hist_entity.RegName as hist_name
  from REG
  join hist.REG as hist_entity using(State, RegId)
 where not sloppy_match(REG.RegName, hist_entity.RegName)
Data Elements:

13.1.662. ResiInSklOnly

Class:

Skeleton

Priority:

High

Message:

Serv $skl_name.qt expected from SKL is missing

Mark:

HOSPCLUS

Description:

Residential Service Unit (RESI) appears in skeleton data only - A Service Unit (SERV) with matching Ids is expected based on the SKL data but is not present in this file

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId as skl_ResiId,
       skl_entity.ResiName as skl_name
  from (
        select State,
               RegId,
               OrgId,
               ClusId as HospClusId,
               ResiId as SUId,
               ResiName
          from skl.Resi
       ) as skl_entity
  left join SERV as checking using (State, RegId, OrgId, HospClusId, SUId)
  left join HOSPCLUS as parent using (State, RegId, OrgId, HospClusId)
 where checking.SUId is null
   and parent.HospClusId is not null
Data Elements:

13.1.663. ResiNotInSkl

Class:

Skeleton

Priority:

High

Message:

Serv $name.qt not in SKL data

Mark:

SERV

Description:

Service Unit not in skeleton reference data - A matching Residential Service Unit (RESI) was not found in the skeleton data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       SERV.SUName as name
  from SERV
  left join (
        select State,
               RegId,
               OrgId,
               ClusId as HospClusId,
               ResiId as SUId
          from RESI
       ) as skl_entity using (State, RegId, OrgId, HospClusId, SUId)
  left join (
        select State,
               RegId,
               OrgId,
               ClusId as HospClusId
          from skl.CLUS
       ) as skl_parent using (State, RegId, OrgId, HospClusId)
 where SUType = '2'
   and skl_entity.SUId is null
   and skl_parent.HospClusId is not null
Data Elements:

13.1.664. RugadlIncomplete

Class:

Missing

Priority:

Low

Message:

RUGADL is Incomplete (at least 4 valid required)

Mark:

RUGADL

Description:

RUGADL is Incomplete - 4 valid items (valid: 1, 2, 3, 4, 5) are required from: RugAdl1, RugAdl2, RugAdl3, RugAdl4

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       IsCompleted
  from COD
  join Rugadl using (ColId)
  join RugadlCompletion using (ColId)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.665. RugadlRugAdl1Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field RugAdl1 (Number)

Mark:

RUGADL.RugAdl1

Description:

All spaces in field RugAdl1 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       RugAdl1
  from RUGADL
 where RugAdl1 is null
Data Elements:

13.1.666. RugadlRugAdl2Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field RugAdl2 (Number)

Mark:

RUGADL.RugAdl2

Description:

All spaces in field RugAdl2 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       RugAdl2
  from RUGADL
 where RugAdl2 is null
Data Elements:

13.1.667. RugadlRugAdl3Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field RugAdl3 (Number)

Mark:

RUGADL.RugAdl3

Description:

All spaces in field RugAdl3 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       RugAdl3
  from RUGADL
 where RugAdl3 is null
Data Elements:

13.1.668. RugadlRugAdl4Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field RugAdl4 (Number)

Mark:

RUGADL.RugAdl4

Description:

All spaces in field RugAdl4 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       RugAdl4
  from RUGADL
 where RugAdl4 is null
Data Elements:

13.1.669. RugadlRugAdlVerMissing

Class:

Missing

Priority:

High

Message:

Missing data - RugAdlVer $RugAdlVer.q

Mark:

RUGADL.RugAdlVer

Description:

Missing data - RUGADL Version (RugAdlVer)

SQL:
select ColId,
       RugAdlVer
  from RUGADL
 where RugAdlVer is null
Data Elements:

13.1.670. SDQ_ParentIncomplete

SQL:
SELECT *
  FROM SDQIncomplete
 WHERE SDQVer = 'PC101'
    OR SDQVer = 'PC201'
    OR SDQVer = 'PY101'
    OR SDQVer = 'PY201';
Data Elements:

13.1.671. SDQ_SelfIncomplete

SQL:
SELECT *
  FROM SDQIncomplete
 WHERE SDQVer = 'YR101'
    OR SDQVer = 'YR201';
Data Elements:

13.1.672. SdqColStSpaces

Class:

Invalid

Priority:

High

Message:

All spaces in field ColSt (Char)

Mark:

SDQ.ColSt

Description:

All spaces in field ColSt (Char). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       ColSt
  from SDQ
 where ColSt is null
Data Elements:

13.1.673. SdqIncomplete

Class:

Missing

Priority:

Low

Message:

SDQ is Incomplete (at least 3/5 for each of 5 subscales valid required)

Mark:

SDQ

Description:

SDQ is Incomplete - 3/5 for each of 5 subscales valid items (valid: 0, 1, 2) are required from: Subscale 1 (SDQ03, SDQ08, SDQ13, SDQ16, SDQ24) Subscale 2 (SDQ05, SDQ07, SDQ12, SDQ18, SDQ22) Subscale 3 (SDQ02, SDQ10, SDQ15, SDQ21, SDQ25) Subscale 4 (SDQ06, SDQ11, SDQ14, SDQ19, SDQ23)

SQL:
select State,
       RegId,
       OrgId,
       ColId,
       SDQVer,
       IsCompleted
  from COD
  join Sdq using (ColId)
  join SdqCompletion using (ColId, SDQVer)
 where not IsCompleted
Data Elements:
Virtual Elements:

13.1.674. SdqSDQ01Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ01 (Number)

Mark:

SDQ.SDQ01

Description:

All spaces in field SDQ01 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ01
  from SDQ
 where SDQ01 is null
Data Elements:

13.1.675. SdqSDQ02Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ02 (Number)

Mark:

SDQ.SDQ02

Description:

All spaces in field SDQ02 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ02
  from SDQ
 where SDQ02 is null
Data Elements:

13.1.676. SdqSDQ03Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ03 (Number)

Mark:

SDQ.SDQ03

Description:

All spaces in field SDQ03 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ03
  from SDQ
 where SDQ03 is null
Data Elements:

13.1.677. SdqSDQ04Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ04 (Number)

Mark:

SDQ.SDQ04

Description:

All spaces in field SDQ04 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ04
  from SDQ
 where SDQ04 is null
Data Elements:

13.1.678. SdqSDQ05Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ05 (Number)

Mark:

SDQ.SDQ05

Description:

All spaces in field SDQ05 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ05
  from SDQ
 where SDQ05 is null
Data Elements:

13.1.679. SdqSDQ06Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ06 (Number)

Mark:

SDQ.SDQ06

Description:

All spaces in field SDQ06 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ06
  from SDQ
 where SDQ06 is null
Data Elements:

13.1.680. SdqSDQ07Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ07 (Number)

Mark:

SDQ.SDQ07

Description:

All spaces in field SDQ07 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ07
  from SDQ
 where SDQ07 is null
Data Elements:

13.1.681. SdqSDQ08Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ08 (Number)

Mark:

SDQ.SDQ08

Description:

All spaces in field SDQ08 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ08
  from SDQ
 where SDQ08 is null
Data Elements:

13.1.682. SdqSDQ09Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ09 (Number)

Mark:

SDQ.SDQ09

Description:

All spaces in field SDQ09 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ09
  from SDQ
 where SDQ09 is null
Data Elements:

13.1.683. SdqSDQ10Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ10 (Number)

Mark:

SDQ.SDQ10

Description:

All spaces in field SDQ10 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ10
  from SDQ
 where SDQ10 is null
Data Elements:

13.1.684. SdqSDQ11Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ11 (Number)

Mark:

SDQ.SDQ11

Description:

All spaces in field SDQ11 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ11
  from SDQ
 where SDQ11 is null
Data Elements:

13.1.685. SdqSDQ12Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ12 (Number)

Mark:

SDQ.SDQ12

Description:

All spaces in field SDQ12 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ12
  from SDQ
 where SDQ12 is null
Data Elements:

13.1.686. SdqSDQ13Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ13 (Number)

Mark:

SDQ.SDQ13

Description:

All spaces in field SDQ13 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ13
  from SDQ
 where SDQ13 is null
Data Elements:

13.1.687. SdqSDQ14Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ14 (Number)

Mark:

SDQ.SDQ14

Description:

All spaces in field SDQ14 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ14
  from SDQ
 where SDQ14 is null
Data Elements:

13.1.688. SdqSDQ15Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ15 (Number)

Mark:

SDQ.SDQ15

Description:

All spaces in field SDQ15 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ15
  from SDQ
 where SDQ15 is null
Data Elements:

13.1.689. SdqSDQ16Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ16 (Number)

Mark:

SDQ.SDQ16

Description:

All spaces in field SDQ16 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ16
  from SDQ
 where SDQ16 is null
Data Elements:

13.1.690. SdqSDQ17Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ17 (Number)

Mark:

SDQ.SDQ17

Description:

All spaces in field SDQ17 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ17
  from SDQ
 where SDQ17 is null
Data Elements:

13.1.691. SdqSDQ18Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ18 (Number)

Mark:

SDQ.SDQ18

Description:

All spaces in field SDQ18 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ18
  from SDQ
 where SDQ18 is null
Data Elements:

13.1.692. SdqSDQ19Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ19 (Number)

Mark:

SDQ.SDQ19

Description:

All spaces in field SDQ19 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ19
  from SDQ
 where SDQ19 is null
Data Elements:

13.1.693. SdqSDQ20Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ20 (Number)

Mark:

SDQ.SDQ20

Description:

All spaces in field SDQ20 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ20
  from SDQ
 where SDQ20 is null
Data Elements:

13.1.694. SdqSDQ21Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ21 (Number)

Mark:

SDQ.SDQ21

Description:

All spaces in field SDQ21 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ21
  from SDQ
 where SDQ21 is null
Data Elements:

13.1.695. SdqSDQ22Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ22 (Number)

Mark:

SDQ.SDQ22

Description:

All spaces in field SDQ22 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ22
  from SDQ
 where SDQ22 is null
Data Elements:

13.1.696. SdqSDQ23Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ23 (Number)

Mark:

SDQ.SDQ23

Description:

All spaces in field SDQ23 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ23
  from SDQ
 where SDQ23 is null
Data Elements:

13.1.697. SdqSDQ24Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ24 (Number)

Mark:

SDQ.SDQ24

Description:

All spaces in field SDQ24 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ24
  from SDQ
 where SDQ24 is null
Data Elements:

13.1.698. SdqSDQ25Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ25 (Number)

Mark:

SDQ.SDQ25

Description:

All spaces in field SDQ25 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ25
  from SDQ
 where SDQ25 is null
Data Elements:

13.1.699. SdqSDQ26Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ26 (Number)

Mark:

SDQ.SDQ26

Description:

All spaces in field SDQ26 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ26
  from SDQ
 where SDQ26 is null
Data Elements:

13.1.700. SdqSDQ27Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ27 (Number)

Mark:

SDQ.SDQ27

Description:

All spaces in field SDQ27 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ27
  from SDQ
 where SDQ27 is null
Data Elements:

13.1.701. SdqSDQ28Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ28 (Number)

Mark:

SDQ.SDQ28

Description:

All spaces in field SDQ28 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ28
  from SDQ
 where SDQ28 is null
Data Elements:

13.1.702. SdqSDQ29Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ29 (Number)

Mark:

SDQ.SDQ29

Description:

All spaces in field SDQ29 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ29
  from SDQ
 where SDQ29 is null
Data Elements:

13.1.703. SdqSDQ30Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ30 (Number)

Mark:

SDQ.SDQ30

Description:

All spaces in field SDQ30 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ30
  from SDQ
 where SDQ30 is null
Data Elements:

13.1.704. SdqSDQ31Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ31 (Number)

Mark:

SDQ.SDQ31

Description:

All spaces in field SDQ31 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ31
  from SDQ
 where SDQ31 is null
Data Elements:

13.1.705. SdqSDQ32Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ32 (Number)

Mark:

SDQ.SDQ32

Description:

All spaces in field SDQ32 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ32
  from SDQ
 where SDQ32 is null
Data Elements:

13.1.706. SdqSDQ33Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ33 (Number)

Mark:

SDQ.SDQ33

Description:

All spaces in field SDQ33 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ33
  from SDQ
 where SDQ33 is null
Data Elements:

13.1.707. SdqSDQ34Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ34 (Number)

Mark:

SDQ.SDQ34

Description:

All spaces in field SDQ34 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ34
  from SDQ
 where SDQ34 is null
Data Elements:

13.1.708. SdqSDQ35Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ35 (Number)

Mark:

SDQ.SDQ35

Description:

All spaces in field SDQ35 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ35
  from SDQ
 where SDQ35 is null
Data Elements:

13.1.709. SdqSDQ36Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ36 (Number)

Mark:

SDQ.SDQ36

Description:

All spaces in field SDQ36 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ36
  from SDQ
 where SDQ36 is null
Data Elements:

13.1.710. SdqSDQ37Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ37 (Number)

Mark:

SDQ.SDQ37

Description:

All spaces in field SDQ37 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ37
  from SDQ
 where SDQ37 is null
Data Elements:

13.1.711. SdqSDQ38Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ38 (Number)

Mark:

SDQ.SDQ38

Description:

All spaces in field SDQ38 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ38
  from SDQ
 where SDQ38 is null
Data Elements:

13.1.712. SdqSDQ39Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ39 (Number)

Mark:

SDQ.SDQ39

Description:

All spaces in field SDQ39 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ39
  from SDQ
 where SDQ39 is null
Data Elements:

13.1.713. SdqSDQ40Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ40 (Number)

Mark:

SDQ.SDQ40

Description:

All spaces in field SDQ40 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ40
  from SDQ
 where SDQ40 is null
Data Elements:

13.1.714. SdqSDQ41Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ41 (Number)

Mark:

SDQ.SDQ41

Description:

All spaces in field SDQ41 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ41
  from SDQ
 where SDQ41 is null
Data Elements:

13.1.715. SdqSDQ42Spaces

Class:

Invalid

Priority:

High

Message:

All spaces in field SDQ42 (Number)

Mark:

SDQ.SDQ42

Description:

All spaces in field SDQ42 (Number). This field should not be empty (only spaces), one of the codes is required.

SQL:
select ColId,
       SDQVer,
       SDQ42
  from SDQ
 where SDQ42 is null
Data Elements:

13.1.716. ServClosed

Class:

Historical

Priority:

High

Message:

Serv closed, historical $hist_name.qt (SUId: $hist_SUId) no longer exists

Mark:

HR

Description:

Service Unit Closed - A historical Service Unit was not found in current data

SQL:
select State,
       hist_entity.State as hist_State,
       hist_entity.RegId as hist_RegId,
       hist_entity.OrgId as hist_OrgId,
       hist_entity.HospClusId as hist_HospClusId,
       hist_entity.SUId as hist_SUId,
       hist_entity.SUName as hist_name
  from hist.SERV as hist_entity
  left join main.SERV using (State, RegId, OrgId, HospClusId, SUId)
 where SERV.SUId is null
Data Elements:

13.1.717. ServEstAreaMissing

Class:

Missing

Priority:

High

Message:

Missing data - EstArea $EstArea.q

Mark:

SERV.EstArea

Description:

Missing data - Geographical Location of Establishment (EstArea)

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       EstArea
  from SERV
 where EstArea is null
Data Elements:

13.1.718. ServOpened

Class:

Historical

Priority:

High

Message:

Serv opened, $SUName.qt (SUId: $SUId) not in historical data

Mark:

SERV

Description:

Service Unit Opened - A matching Service Unit was not found in the historical data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       SERV.SUName
  from main.SERV
  left join hist.SERV as hist_entity using (State, RegId, OrgId, HospClusId, SUId)
 where hist_entity.SUId is null
Data Elements:

13.1.719. ServProgTypeChanged

Class:

Historical

Priority:

High

Message:

Service Unit ProgType changed from $hist_ProgType to $ProgType

Mark:

SERV.ProgType

Description:

Program Type Changed - Program Type value for Service Unit differs between historical and current data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       SERV.ProgType,
       hist_SERV.ProgType as hist_ProgType
  from SERV
  join hist.SERV as hist_SERV using(State, RegId, OrgId, HospClusId, SUId)
 where SERV.ProgType != hist_SERV.ProgType
Data Elements:

13.1.720. ServProgTypeMissing

Class:

Missing

Priority:

High

Message:

Missing data - ProgType $ProgType.q

Mark:

SERV.ProgType

Description:

Missing data - Program Type (ProgType)

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       ProgType
  from SERV
 where ProgType is null
Data Elements:

13.1.721. ServRenamed

Class:

Historical

Priority:

High

Message:

Serv renamed from $hist_name.qt to $SUName.qt

Mark:

SERV.SUName

Description:

Service Unit Renamed - Service Unit Name differs between historical and current data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       SERV.SUName,
       hist_entity.SUName as hist_name
  from SERV
  join hist.SERV as hist_entity using(State, RegId, OrgId, HospClusId, SUId)
 where not sloppy_match(SERV.SUName, hist_entity.SUName)
Data Elements:

13.1.722. ServSUNameMissing

Class:

Missing

Priority:

High

Message:

Missing data - SUName $SUName.q

Mark:

SERV.SUName

Description:

Missing data - Service Unit Name (SUName)

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       SUName
  from SERV
 where SUName is null
Data Elements:

13.1.723. ServSUTypeChanged

Class:

Historical

Priority:

High

Message:

Service Unit SUType changed from $hist_SUType to $SUType

Mark:

SERV.SUType

Description:

Service Unit Type Changed - Service Unit Type value for Service Unit differs between historical and current data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       SERV.SUType,
       hist_SERV.SUType as hist_SUType
  from SERV
  join hist.SERV as hist_SERV using(State, RegId, OrgId, HospClusId, SUId)
 where SERV.SUType != hist_SERV.SUType
Data Elements:

13.1.724. ServSUTypeMissing

Class:

Missing

Priority:

High

Message:

Missing data - SUType $SUType.q

Mark:

SERV.SUType

Description:

Missing data - Service Unit Type (SUType)

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       SUType
  from SERV
 where SUType is null
Data Elements:

13.1.725. ServSectorChanged

Class:

Historical

Priority:

High

Message:

Service Unit Sector changed from $hist_Sector to $Sector

Mark:

SERV.Sector

Description:

Service Unit Sector Changed - Service Unit Sector value for Service Unit differs between historical and current data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       SERV.Sector,
       hist_SERV.Sector as hist_Sector
  from SERV
  join hist.SERV as hist_SERV using(State, RegId, OrgId, HospClusId, SUId)
 where SERV.Sector != hist_SERV.Sector
Data Elements:

13.1.726. ServSectorMissing

Class:

Missing

Priority:

High

Message:

Missing data - Sector $Sector.q

Mark:

SERV.Sector

Description:

Missing data - Service Unit Sector (Sector)

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       Sector
  from SERV
 where Sector is null
Data Elements:

13.1.727. ServTargetPopChanged

Class:

Historical

Priority:

High

Message:

Service Unit TargetPop changed from $hist_TargetPop to $TargetPop

Mark:

SERV.TargetPop

Description:

Target Population Changed - Target Population value for Service Unit differs between historical and current data

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       SERV.TargetPop,
       hist_SERV.TargetPop as hist_TargetPop
  from SERV
  join hist.SERV as hist_SERV using(State, RegId, OrgId, HospClusId, SUId)
 where SERV.TargetPop != hist_SERV.TargetPop
Data Elements:

13.1.728. ServTargetPopMissing

Class:

Missing

Priority:

High

Message:

Missing data - TargetPop $TargetPop.q

Mark:

SERV.TargetPop

Description:

Missing data - Target Population (TargetPop)

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       TargetPop
  from SERV
 where TargetPop is null
Data Elements:

13.2. Virtual Elements

13.2.1. Basis32Completion

Base:

BASIS32

Title:

Basis32 Completion Status

SQL:
select ColId,
       (cast(BASIS01 in ('0','1','2','3','4') as integer) + cast(BASIS02 in ('0','1','2','3','4') as integer) + cast(BASIS03 in ('0','1','2','3','4') as integer) + cast(BASIS04 in ('0','1','2','3','4') as integer) + cast(BASIS05 in ('0','1','2','3','4') as integer) + cast(BASIS06 in ('0','1','2','3','4') as integer) + cast(BASIS07 in ('0','1','2','3','4') as integer) + cast(BASIS08 in ('0','1','2','3','4') as integer) + cast(BASIS09 in ('0','1','2','3','4') as integer) + cast(BASIS10 in ('0','1','2','3','4') as integer) + cast(BASIS11 in ('0','1','2','3','4') as integer) + cast(BASIS12 in ('0','1','2','3','4') as integer) + cast(BASIS13 in ('0','1','2','3','4') as integer) + cast(BASIS14 in ('0','1','2','3','4') as integer) + cast(BASIS15 in ('0','1','2','3','4') as integer) + cast(BASIS16 in ('0','1','2','3','4') as integer) + cast(BASIS17 in ('0','1','2','3','4') as integer) + cast(BASIS18 in ('0','1','2','3','4') as integer) + cast(BASIS19 in ('0','1','2','3','4') as integer) + cast(BASIS20 in ('0','1','2','3','4') as integer) + cast(BASIS21 in ('0','1','2','3','4') as integer) + cast(BASIS22 in ('0','1','2','3','4') as integer) + cast(BASIS23 in ('0','1','2','3','4') as integer) + cast(BASIS24 in ('0','1','2','3','4') as integer) + cast(BASIS25 in ('0','1','2','3','4') as integer) + cast(BASIS26 in ('0','1','2','3','4') as integer) + cast(BASIS27 in ('0','1','2','3','4') as integer) + cast(BASIS28 in ('0','1','2','3','4') as integer) + cast(BASIS29 in ('0','1','2','3','4') as integer) + cast(BASIS30 in ('0','1','2','3','4') as integer) + cast(BASIS31 in ('0','1','2','3','4') as integer) + cast(BASIS32 in ('0','1','2','3','4') as integer) + 0) >= 27 as IsCompleted
  from BASIS32
Rules:

13.2.2. CgasCompletion

Base:

CGAS

Title:

Cgas Completion Status

SQL:
select ColId,
       (Cgas between 1 and 100) as IsCompleted
  from CGAS
Rules:

13.2.3. CodAge

Base:

COD

Title:

Age at Contact

SQL:
select ColId,
       FLOOR((ColDt - DoB) / 365.25) as Age
  from COD
 where DoB != '9999-09-09'
Rules:

13.2.4. DiagCompletion

Base:

DIAG

Title:

Diag Completion Status

SQL:
select ColId,
       Dx1 <> '        '
   and Dx1 is not null as IsCompleted
  from DIAG
Rules:

13.2.5. FihsCompletion

Base:

FIHS

Title:

Fihs Completion Status

SQL:
select ColId,
       (cast(Fihs1 in ('1','2') as integer) + cast(Fihs2 in ('1','2') as integer) + cast(Fihs3 in ('1','2') as integer) + cast(Fihs4 in ('1','2') as integer) + cast(Fihs5 in ('1','2') as integer) + cast(Fihs6 in ('1','2') as integer) + cast(Fihs7 in ('1','2') as integer) + 0) >= 6 as IsCompleted
  from FIHS
Rules:

13.2.6. HonosCompletion

Base:

HONOS

Title:

Honos Completion Status

SQL:
select ColId,
       (cast(Hnos01 in ('0','1','2','3','4') as integer) + cast(Hnos02 in ('0','1','2','3','4') as integer) + cast(Hnos03 in ('0','1','2','3','4') as integer) + cast(Hnos04 in ('0','1','2','3','4') as integer) + cast(Hnos05 in ('0','1','2','3','4') as integer) + cast(Hnos06 in ('0','1','2','3','4') as integer) + cast(Hnos07 in ('0','1','2','3','4') as integer) + cast(Hnos08 in ('0','1','2','3','4') as integer) + cast(Hnos09 in ('0','1','2','3','4') as integer) + cast(Hnos10 in ('0','1','2','3','4') as integer) + cast(Hnos11 in ('0','1','2','3','4') as integer) + cast(Hnos12 in ('0','1','2','3','4') as integer) + 0) >= 10 as IsCompleted
  from HONOS
Rules:

13.2.7. HonoscaCompletion

Base:

HONOSCA

Title:

Honosca Completion Status

SQL:
select ColId,
       (cast(HnosC01 in ('0','1','2','3','4') as integer) + cast(HnosC02 in ('0','1','2','3','4') as integer) + cast(HnosC03 in ('0','1','2','3','4') as integer) + cast(HnosC04 in ('0','1','2','3','4') as integer) + cast(HnosC05 in ('0','1','2','3','4') as integer) + cast(HnosC06 in ('0','1','2','3','4') as integer) + cast(HnosC07 in ('0','1','2','3','4') as integer) + cast(HnosC08 in ('0','1','2','3','4') as integer) + cast(HnosC09 in ('0','1','2','3','4') as integer) + cast(HnosC10 in ('0','1','2','3','4') as integer) + cast(HnosC11 in ('0','1','2','3','4') as integer) + cast(HnosC12 in ('0','1','2','3','4') as integer) + cast(HnosC13 in ('0','1','2','3','4') as integer) + 0) >= 11 as IsCompleted
  from HONOSCA
Rules:

13.2.8. HospClusAdmiCount

Base:

HOSPCLUS

Title:

Admi Count at HOSPCLUS Level

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       coalesce(Count, 0) as Count
  from HOSPCLUS
  left join (
        select State,
               RegId,
               OrgId,
               HospClusId,
               count(*) as Count
          from SERV
         where SUType = '1'
         group by State,
                  RegId,
                  OrgId,
                  HospClusId
       ) as tmpinner using (State, RegId, OrgId, HospClusId)

13.2.9. HospClusAmbuCount

Base:

HOSPCLUS

Title:

Ambu Count at HOSPCLUS Level

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       coalesce(Count, 0) as Count
  from HOSPCLUS
  left join (
        select State,
               RegId,
               OrgId,
               HospClusId,
               count(*) as Count
          from SERV
         where SUType = '3'
         group by State,
                  RegId,
                  OrgId,
                  HospClusId
       ) as tmpinner using (State, RegId, OrgId, HospClusId)

13.2.10. HospClusHasAdmi

Base:

HOSPCLUS

Title:

SERV Admi Count below HOSPCLUS

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       Count
  from HospClusAdmiCount
 where Count > 0

13.2.11. HospClusHasAmbu

Base:

HOSPCLUS

Title:

SERV Ambu Count below HOSPCLUS

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       Count
  from HospClusAmbuCount
 where Count > 0

13.2.12. HospClusHasResi

Base:

HOSPCLUS

Title:

SERV Resi Count below HOSPCLUS

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       Count
  from HospClusResiCount
 where Count > 0

13.2.13. HospClusInSklOnly

Base:

ORG

Title:

Hospital or Cluster found in SKL only

SQL:
select *
  from HospInSklOnly
 union select *
  from ClusInSklOnly

13.2.14. HospClusResiCount

Base:

HOSPCLUS

Title:

Resi Count at HOSPCLUS Level

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       coalesce(Count, 0) as Count
  from HOSPCLUS
  left join (
        select State,
               RegId,
               OrgId,
               HospClusId,
               count(*) as Count
          from SERV
         where SUType = '2'
         group by State,
                  RegId,
                  OrgId,
                  HospClusId
       ) as tmpinner using (State, RegId, OrgId, HospClusId)

13.2.15. HrAdultAaBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.16. HrAdultAaBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaBasis32Completed as New
  join hist.HrAdultAaBasis32Completed as Old using (State)

13.2.17. HrAdultAaBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaBasis32Completed as New
  join hist.HrAdultAaBasis32Completed as Old using (State)

13.2.18. HrAdultAaBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultAaBasis32Completed.Total, HrAdultAaCodCount.Total, 3) as Rate
  from HrAdultAaBasis32Completed
  join HrAdultAaCodCount using (State)

13.2.19. HrAdultAaBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultAaBasis32CompletionRate as New
  join hist.HrAdultAaBasis32CompletionRate as Old using (State)
Rules:

13.2.20. HrAdultAaBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.21. HrAdultAaBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaBasis32Count as New
  join hist.HrAdultAaBasis32Count as Old using (State)

13.2.22. HrAdultAaBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaBasis32Count as New
  join hist.HrAdultAaBasis32Count as Old using (State)
Rules:

13.2.23. HrAdultAaCodCount

Base:

HR

Title:

HR-level count of collection occasions for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.24. HrAdultAaHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.25. HrAdultAaHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaHonosCompleted as New
  join hist.HrAdultAaHonosCompleted as Old using (State)

13.2.26. HrAdultAaHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaHonosCompleted as New
  join hist.HrAdultAaHonosCompleted as Old using (State)

13.2.27. HrAdultAaHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultAaHonosCompleted.Total, HrAdultAaCodCount.Total, 3) as Rate
  from HrAdultAaHonosCompleted
  join HrAdultAaCodCount using (State)

13.2.28. HrAdultAaHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultAaHonosCompletionRate as New
  join hist.HrAdultAaHonosCompletionRate as Old using (State)
Rules:

13.2.29. HrAdultAaHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.30. HrAdultAaHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaHonosCount as New
  join hist.HrAdultAaHonosCount as Old using (State)

13.2.31. HrAdultAaHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaHonosCount as New
  join hist.HrAdultAaHonosCount as Old using (State)
Rules:

13.2.32. HrAdultAaK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.33. HrAdultAaK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaK10l3dCompleted as New
  join hist.HrAdultAaK10l3dCompleted as Old using (State)

13.2.34. HrAdultAaK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaK10l3dCompleted as New
  join hist.HrAdultAaK10l3dCompleted as Old using (State)

13.2.35. HrAdultAaK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultAaK10l3dCompleted.Total, HrAdultAaCodCount.Total, 3) as Rate
  from HrAdultAaK10l3dCompleted
  join HrAdultAaCodCount using (State)

13.2.36. HrAdultAaK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultAaK10l3dCompletionRate as New
  join hist.HrAdultAaK10l3dCompletionRate as Old using (State)
Rules:

13.2.37. HrAdultAaK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.38. HrAdultAaK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaK10l3dCount as New
  join hist.HrAdultAaK10l3dCount as Old using (State)

13.2.39. HrAdultAaK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaK10l3dCount as New
  join hist.HrAdultAaK10l3dCount as Old using (State)
Rules:

13.2.40. HrAdultAaK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.41. HrAdultAaK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaK10lmCompleted as New
  join hist.HrAdultAaK10lmCompleted as Old using (State)

13.2.42. HrAdultAaK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaK10lmCompleted as New
  join hist.HrAdultAaK10lmCompleted as Old using (State)

13.2.43. HrAdultAaK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultAaK10lmCompleted.Total, HrAdultAaCodCount.Total, 3) as Rate
  from HrAdultAaK10lmCompleted
  join HrAdultAaCodCount using (State)

13.2.44. HrAdultAaK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultAaK10lmCompletionRate as New
  join hist.HrAdultAaK10lmCompletionRate as Old using (State)
Rules:

13.2.45. HrAdultAaK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.46. HrAdultAaK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaK10lmCount as New
  join hist.HrAdultAaK10lmCount as Old using (State)

13.2.47. HrAdultAaK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaK10lmCount as New
  join hist.HrAdultAaK10lmCount as Old using (State)
Rules:

13.2.48. HrAdultAaMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.49. HrAdultAaMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaMhi38Completed as New
  join hist.HrAdultAaMhi38Completed as Old using (State)

13.2.50. HrAdultAaMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaMhi38Completed as New
  join hist.HrAdultAaMhi38Completed as Old using (State)

13.2.51. HrAdultAaMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultAaMhi38Completed.Total, HrAdultAaCodCount.Total, 3) as Rate
  from HrAdultAaMhi38Completed
  join HrAdultAaCodCount using (State)

13.2.52. HrAdultAaMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultAaMhi38CompletionRate as New
  join hist.HrAdultAaMhi38CompletionRate as Old using (State)
Rules:

13.2.53. HrAdultAaMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.54. HrAdultAaMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaMhi38Count as New
  join hist.HrAdultAaMhi38Count as Old using (State)

13.2.55. HrAdultAaMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaMhi38Count as New
  join hist.HrAdultAaMhi38Count as Old using (State)
Rules:

13.2.56. HrAdultAaPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.57. HrAdultAaPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaPocCompleted as New
  join hist.HrAdultAaPocCompleted as Old using (State)

13.2.58. HrAdultAaPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaPocCompleted as New
  join hist.HrAdultAaPocCompleted as Old using (State)

13.2.59. HrAdultAaPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultAaPocCompleted.Total, HrAdultAaCodCount.Total, 3) as Rate
  from HrAdultAaPocCompleted
  join HrAdultAaCodCount using (State)

13.2.60. HrAdultAaPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultAaPocCompletionRate as New
  join hist.HrAdultAaPocCompletionRate as Old using (State)
Rules:

13.2.61. HrAdultAaPocCount

Base:

HR

Title:

HR-level count of all POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.62. HrAdultAaPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAaPocCount as New
  join hist.HrAdultAaPocCount as Old using (State)

13.2.63. HrAdultAaPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAaPocCount as New
  join hist.HrAdultAaPocCount as Old using (State)
Rules:

13.2.64. HrAdultAiCodCount

Base:

HR

Title:

HR-level count of collection occasions for Adult age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.65. HrAdultAiHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.66. HrAdultAiHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAiHonosCompleted as New
  join hist.HrAdultAiHonosCompleted as Old using (State)

13.2.67. HrAdultAiHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAiHonosCompleted as New
  join hist.HrAdultAiHonosCompleted as Old using (State)

13.2.68. HrAdultAiHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultAiHonosCompleted.Total, HrAdultAiCodCount.Total, 3) as Rate
  from HrAdultAiHonosCompleted
  join HrAdultAiCodCount using (State)

13.2.69. HrAdultAiHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultAiHonosCompletionRate as New
  join hist.HrAdultAiHonosCompletionRate as Old using (State)
Rules:

13.2.70. HrAdultAiHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.71. HrAdultAiHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAiHonosCount as New
  join hist.HrAdultAiHonosCount as Old using (State)

13.2.72. HrAdultAiHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAiHonosCount as New
  join hist.HrAdultAiHonosCount as Old using (State)
Rules:

13.2.73. HrAdultAiPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.74. HrAdultAiPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAiPocCompleted as New
  join hist.HrAdultAiPocCompleted as Old using (State)

13.2.75. HrAdultAiPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAiPocCompleted as New
  join hist.HrAdultAiPocCompleted as Old using (State)

13.2.76. HrAdultAiPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultAiPocCompleted.Total, HrAdultAiCodCount.Total, 3) as Rate
  from HrAdultAiPocCompleted
  join HrAdultAiCodCount using (State)

13.2.77. HrAdultAiPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultAiPocCompletionRate as New
  join hist.HrAdultAiPocCompletionRate as Old using (State)
Rules:

13.2.78. HrAdultAiPocCount

Base:

HR

Title:

HR-level count of all POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.79. HrAdultAiPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultAiPocCount as New
  join hist.HrAdultAiPocCount as Old using (State)

13.2.80. HrAdultAiPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultAiPocCount as New
  join hist.HrAdultAiPocCount as Old using (State)
Rules:

13.2.81. HrAdultArBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.82. HrAdultArBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArBasis32Completed as New
  join hist.HrAdultArBasis32Completed as Old using (State)

13.2.83. HrAdultArBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArBasis32Completed as New
  join hist.HrAdultArBasis32Completed as Old using (State)

13.2.84. HrAdultArBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultArBasis32Completed.Total, HrAdultArCodCount.Total, 3) as Rate
  from HrAdultArBasis32Completed
  join HrAdultArCodCount using (State)

13.2.85. HrAdultArBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultArBasis32CompletionRate as New
  join hist.HrAdultArBasis32CompletionRate as Old using (State)
Rules:

13.2.86. HrAdultArBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.87. HrAdultArBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArBasis32Count as New
  join hist.HrAdultArBasis32Count as Old using (State)

13.2.88. HrAdultArBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArBasis32Count as New
  join hist.HrAdultArBasis32Count as Old using (State)
Rules:

13.2.89. HrAdultArCodCount

Base:

HR

Title:

HR-level count of collection occasions for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.90. HrAdultArHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.91. HrAdultArHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArHonosCompleted as New
  join hist.HrAdultArHonosCompleted as Old using (State)

13.2.92. HrAdultArHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArHonosCompleted as New
  join hist.HrAdultArHonosCompleted as Old using (State)

13.2.93. HrAdultArHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultArHonosCompleted.Total, HrAdultArCodCount.Total, 3) as Rate
  from HrAdultArHonosCompleted
  join HrAdultArCodCount using (State)

13.2.94. HrAdultArHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultArHonosCompletionRate as New
  join hist.HrAdultArHonosCompletionRate as Old using (State)
Rules:

13.2.95. HrAdultArHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.96. HrAdultArHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArHonosCount as New
  join hist.HrAdultArHonosCount as Old using (State)

13.2.97. HrAdultArHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArHonosCount as New
  join hist.HrAdultArHonosCount as Old using (State)
Rules:

13.2.98. HrAdultArK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.99. HrAdultArK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArK10l3dCompleted as New
  join hist.HrAdultArK10l3dCompleted as Old using (State)

13.2.100. HrAdultArK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArK10l3dCompleted as New
  join hist.HrAdultArK10l3dCompleted as Old using (State)

13.2.101. HrAdultArK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultArK10l3dCompleted.Total, HrAdultArCodCount.Total, 3) as Rate
  from HrAdultArK10l3dCompleted
  join HrAdultArCodCount using (State)

13.2.102. HrAdultArK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultArK10l3dCompletionRate as New
  join hist.HrAdultArK10l3dCompletionRate as Old using (State)
Rules:

13.2.103. HrAdultArK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.104. HrAdultArK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArK10l3dCount as New
  join hist.HrAdultArK10l3dCount as Old using (State)

13.2.105. HrAdultArK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArK10l3dCount as New
  join hist.HrAdultArK10l3dCount as Old using (State)
Rules:

13.2.106. HrAdultArK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.107. HrAdultArK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArK10lmCompleted as New
  join hist.HrAdultArK10lmCompleted as Old using (State)

13.2.108. HrAdultArK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArK10lmCompleted as New
  join hist.HrAdultArK10lmCompleted as Old using (State)

13.2.109. HrAdultArK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultArK10lmCompleted.Total, HrAdultArCodCount.Total, 3) as Rate
  from HrAdultArK10lmCompleted
  join HrAdultArCodCount using (State)

13.2.110. HrAdultArK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultArK10lmCompletionRate as New
  join hist.HrAdultArK10lmCompletionRate as Old using (State)
Rules:

13.2.111. HrAdultArK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.112. HrAdultArK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArK10lmCount as New
  join hist.HrAdultArK10lmCount as Old using (State)

13.2.113. HrAdultArK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArK10lmCount as New
  join hist.HrAdultArK10lmCount as Old using (State)
Rules:

13.2.114. HrAdultArLsp16Completed

Base:

HR

Title:

HR-level count of completed LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.115. HrAdultArLsp16CompletedChange

Base:

HR

Title:

Change in HR-level count of completed LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArLsp16Completed as New
  join hist.HrAdultArLsp16Completed as Old using (State)

13.2.116. HrAdultArLsp16CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArLsp16Completed as New
  join hist.HrAdultArLsp16Completed as Old using (State)

13.2.117. HrAdultArLsp16CompletionRate

Base:

HR

Title:

HR-level completion rate of LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultArLsp16Completed.Total, HrAdultArCodCount.Total, 3) as Rate
  from HrAdultArLsp16Completed
  join HrAdultArCodCount using (State)

13.2.118. HrAdultArLsp16CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultArLsp16CompletionRate as New
  join hist.HrAdultArLsp16CompletionRate as Old using (State)
Rules:

13.2.119. HrAdultArLsp16Count

Base:

HR

Title:

HR-level count of all LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.120. HrAdultArLsp16CountChange

Base:

HR

Title:

Change in HR-level count of all LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArLsp16Count as New
  join hist.HrAdultArLsp16Count as Old using (State)

13.2.121. HrAdultArLsp16CountGrowth

Base:

HR

Title:

Growth in HR-level count of all LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArLsp16Count as New
  join hist.HrAdultArLsp16Count as Old using (State)
Rules:

13.2.122. HrAdultArMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.123. HrAdultArMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArMhi38Completed as New
  join hist.HrAdultArMhi38Completed as Old using (State)

13.2.124. HrAdultArMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArMhi38Completed as New
  join hist.HrAdultArMhi38Completed as Old using (State)

13.2.125. HrAdultArMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultArMhi38Completed.Total, HrAdultArCodCount.Total, 3) as Rate
  from HrAdultArMhi38Completed
  join HrAdultArCodCount using (State)

13.2.126. HrAdultArMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultArMhi38CompletionRate as New
  join hist.HrAdultArMhi38CompletionRate as Old using (State)
Rules:

13.2.127. HrAdultArMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.128. HrAdultArMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArMhi38Count as New
  join hist.HrAdultArMhi38Count as Old using (State)

13.2.129. HrAdultArMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArMhi38Count as New
  join hist.HrAdultArMhi38Count as Old using (State)
Rules:

13.2.130. HrAdultArPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.131. HrAdultArPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArPocCompleted as New
  join hist.HrAdultArPocCompleted as Old using (State)

13.2.132. HrAdultArPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArPocCompleted as New
  join hist.HrAdultArPocCompleted as Old using (State)

13.2.133. HrAdultArPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrAdultArPocCompleted.Total, HrAdultArCodCount.Total, 3) as Rate
  from HrAdultArPocCompleted
  join HrAdultArCodCount using (State)

13.2.134. HrAdultArPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultArPocCompletionRate as New
  join hist.HrAdultArPocCompletionRate as Old using (State)
Rules:

13.2.135. HrAdultArPocCount

Base:

HR

Title:

HR-level count of all POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.136. HrAdultArPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultArPocCount as New
  join hist.HrAdultArPocCount as Old using (State)

13.2.137. HrAdultArPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultArPocCount as New
  join hist.HrAdultArPocCount as Old using (State)
Rules:

13.2.138. HrAdultDaBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.139. HrAdultDaBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaBasis32Completed as New
  join hist.HrAdultDaBasis32Completed as Old using (State)

13.2.140. HrAdultDaBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaBasis32Completed as New
  join hist.HrAdultDaBasis32Completed as Old using (State)

13.2.141. HrAdultDaBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDaBasis32Completed.Total, HrAdultDaCodCount.Total, 3) as Rate
  from HrAdultDaBasis32Completed
  join HrAdultDaCodCount using (State)

13.2.142. HrAdultDaBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDaBasis32CompletionRate as New
  join hist.HrAdultDaBasis32CompletionRate as Old using (State)
Rules:

13.2.143. HrAdultDaBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.144. HrAdultDaBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaBasis32Count as New
  join hist.HrAdultDaBasis32Count as Old using (State)

13.2.145. HrAdultDaBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaBasis32Count as New
  join hist.HrAdultDaBasis32Count as Old using (State)
Rules:

13.2.146. HrAdultDaCodCount

Base:

HR

Title:

HR-level count of collection occasions for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.147. HrAdultDaDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.148. HrAdultDaDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaDiagCompleted as New
  join hist.HrAdultDaDiagCompleted as Old using (State)

13.2.149. HrAdultDaDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaDiagCompleted as New
  join hist.HrAdultDaDiagCompleted as Old using (State)

13.2.150. HrAdultDaDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDaDiagCompleted.Total, HrAdultDaCodCount.Total, 3) as Rate
  from HrAdultDaDiagCompleted
  join HrAdultDaCodCount using (State)

13.2.151. HrAdultDaDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDaDiagCompletionRate as New
  join hist.HrAdultDaDiagCompletionRate as Old using (State)
Rules:

13.2.152. HrAdultDaDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.153. HrAdultDaDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaDiagCount as New
  join hist.HrAdultDaDiagCount as Old using (State)

13.2.154. HrAdultDaDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaDiagCount as New
  join hist.HrAdultDaDiagCount as Old using (State)
Rules:

13.2.155. HrAdultDaHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.156. HrAdultDaHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaHonosCompleted as New
  join hist.HrAdultDaHonosCompleted as Old using (State)

13.2.157. HrAdultDaHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaHonosCompleted as New
  join hist.HrAdultDaHonosCompleted as Old using (State)

13.2.158. HrAdultDaHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDaHonosCompleted.Total, HrAdultDaCodCount.Total, 3) as Rate
  from HrAdultDaHonosCompleted
  join HrAdultDaCodCount using (State)

13.2.159. HrAdultDaHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDaHonosCompletionRate as New
  join hist.HrAdultDaHonosCompletionRate as Old using (State)
Rules:

13.2.160. HrAdultDaHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.161. HrAdultDaHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaHonosCount as New
  join hist.HrAdultDaHonosCount as Old using (State)

13.2.162. HrAdultDaHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaHonosCount as New
  join hist.HrAdultDaHonosCount as Old using (State)
Rules:

13.2.163. HrAdultDaK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.164. HrAdultDaK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaK10l3dCompleted as New
  join hist.HrAdultDaK10l3dCompleted as Old using (State)

13.2.165. HrAdultDaK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaK10l3dCompleted as New
  join hist.HrAdultDaK10l3dCompleted as Old using (State)

13.2.166. HrAdultDaK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDaK10l3dCompleted.Total, HrAdultDaCodCount.Total, 3) as Rate
  from HrAdultDaK10l3dCompleted
  join HrAdultDaCodCount using (State)

13.2.167. HrAdultDaK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDaK10l3dCompletionRate as New
  join hist.HrAdultDaK10l3dCompletionRate as Old using (State)
Rules:

13.2.168. HrAdultDaK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.169. HrAdultDaK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaK10l3dCount as New
  join hist.HrAdultDaK10l3dCount as Old using (State)

13.2.170. HrAdultDaK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaK10l3dCount as New
  join hist.HrAdultDaK10l3dCount as Old using (State)
Rules:

13.2.171. HrAdultDaK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.172. HrAdultDaK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaK10lmCompleted as New
  join hist.HrAdultDaK10lmCompleted as Old using (State)

13.2.173. HrAdultDaK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaK10lmCompleted as New
  join hist.HrAdultDaK10lmCompleted as Old using (State)

13.2.174. HrAdultDaK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDaK10lmCompleted.Total, HrAdultDaCodCount.Total, 3) as Rate
  from HrAdultDaK10lmCompleted
  join HrAdultDaCodCount using (State)

13.2.175. HrAdultDaK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDaK10lmCompletionRate as New
  join hist.HrAdultDaK10lmCompletionRate as Old using (State)
Rules:

13.2.176. HrAdultDaK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.177. HrAdultDaK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaK10lmCount as New
  join hist.HrAdultDaK10lmCount as Old using (State)

13.2.178. HrAdultDaK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaK10lmCount as New
  join hist.HrAdultDaK10lmCount as Old using (State)
Rules:

13.2.179. HrAdultDaLsp16Completed

Base:

HR

Title:

HR-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.180. HrAdultDaLsp16CompletedChange

Base:

HR

Title:

Change in HR-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaLsp16Completed as New
  join hist.HrAdultDaLsp16Completed as Old using (State)

13.2.181. HrAdultDaLsp16CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaLsp16Completed as New
  join hist.HrAdultDaLsp16Completed as Old using (State)

13.2.182. HrAdultDaLsp16CompletionRate

Base:

HR

Title:

HR-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDaLsp16Completed.Total, HrAdultDaCodCount.Total, 3) as Rate
  from HrAdultDaLsp16Completed
  join HrAdultDaCodCount using (State)

13.2.183. HrAdultDaLsp16CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDaLsp16CompletionRate as New
  join hist.HrAdultDaLsp16CompletionRate as Old using (State)
Rules:

13.2.184. HrAdultDaLsp16Count

Base:

HR

Title:

HR-level count of all LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.185. HrAdultDaLsp16CountChange

Base:

HR

Title:

Change in HR-level count of all LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaLsp16Count as New
  join hist.HrAdultDaLsp16Count as Old using (State)

13.2.186. HrAdultDaLsp16CountGrowth

Base:

HR

Title:

Growth in HR-level count of all LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaLsp16Count as New
  join hist.HrAdultDaLsp16Count as Old using (State)
Rules:

13.2.187. HrAdultDaMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.188. HrAdultDaMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaMhi38Completed as New
  join hist.HrAdultDaMhi38Completed as Old using (State)

13.2.189. HrAdultDaMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaMhi38Completed as New
  join hist.HrAdultDaMhi38Completed as Old using (State)

13.2.190. HrAdultDaMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDaMhi38Completed.Total, HrAdultDaCodCount.Total, 3) as Rate
  from HrAdultDaMhi38Completed
  join HrAdultDaCodCount using (State)

13.2.191. HrAdultDaMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDaMhi38CompletionRate as New
  join hist.HrAdultDaMhi38CompletionRate as Old using (State)
Rules:

13.2.192. HrAdultDaMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.193. HrAdultDaMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaMhi38Count as New
  join hist.HrAdultDaMhi38Count as Old using (State)

13.2.194. HrAdultDaMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaMhi38Count as New
  join hist.HrAdultDaMhi38Count as Old using (State)
Rules:

13.2.195. HrAdultDaMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.196. HrAdultDaMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaMhlsCompleted as New
  join hist.HrAdultDaMhlsCompleted as Old using (State)

13.2.197. HrAdultDaMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaMhlsCompleted as New
  join hist.HrAdultDaMhlsCompleted as Old using (State)

13.2.198. HrAdultDaMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDaMhlsCompleted.Total, HrAdultDaCodCount.Total, 3) as Rate
  from HrAdultDaMhlsCompleted
  join HrAdultDaCodCount using (State)

13.2.199. HrAdultDaMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDaMhlsCompletionRate as New
  join hist.HrAdultDaMhlsCompletionRate as Old using (State)
Rules:

13.2.200. HrAdultDaMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.201. HrAdultDaMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDaMhlsCount as New
  join hist.HrAdultDaMhlsCount as Old using (State)

13.2.202. HrAdultDaMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDaMhlsCount as New
  join hist.HrAdultDaMhlsCount as Old using (State)
Rules:

13.2.203. HrAdultDiCodCount

Base:

HR

Title:

HR-level count of collection occasions for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.204. HrAdultDiDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.205. HrAdultDiDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDiDiagCompleted as New
  join hist.HrAdultDiDiagCompleted as Old using (State)

13.2.206. HrAdultDiDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDiDiagCompleted as New
  join hist.HrAdultDiDiagCompleted as Old using (State)

13.2.207. HrAdultDiDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDiDiagCompleted.Total, HrAdultDiCodCount.Total, 3) as Rate
  from HrAdultDiDiagCompleted
  join HrAdultDiCodCount using (State)

13.2.208. HrAdultDiDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDiDiagCompletionRate as New
  join hist.HrAdultDiDiagCompletionRate as Old using (State)
Rules:

13.2.209. HrAdultDiDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.210. HrAdultDiDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDiDiagCount as New
  join hist.HrAdultDiDiagCount as Old using (State)

13.2.211. HrAdultDiDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDiDiagCount as New
  join hist.HrAdultDiDiagCount as Old using (State)
Rules:

13.2.212. HrAdultDiHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.213. HrAdultDiHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDiHonosCompleted as New
  join hist.HrAdultDiHonosCompleted as Old using (State)

13.2.214. HrAdultDiHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDiHonosCompleted as New
  join hist.HrAdultDiHonosCompleted as Old using (State)

13.2.215. HrAdultDiHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDiHonosCompleted.Total, HrAdultDiCodCount.Total, 3) as Rate
  from HrAdultDiHonosCompleted
  join HrAdultDiCodCount using (State)

13.2.216. HrAdultDiHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDiHonosCompletionRate as New
  join hist.HrAdultDiHonosCompletionRate as Old using (State)
Rules:

13.2.217. HrAdultDiHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.218. HrAdultDiHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDiHonosCount as New
  join hist.HrAdultDiHonosCount as Old using (State)

13.2.219. HrAdultDiHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDiHonosCount as New
  join hist.HrAdultDiHonosCount as Old using (State)
Rules:

13.2.220. HrAdultDiMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.221. HrAdultDiMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDiMhlsCompleted as New
  join hist.HrAdultDiMhlsCompleted as Old using (State)

13.2.222. HrAdultDiMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDiMhlsCompleted as New
  join hist.HrAdultDiMhlsCompleted as Old using (State)

13.2.223. HrAdultDiMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDiMhlsCompleted.Total, HrAdultDiCodCount.Total, 3) as Rate
  from HrAdultDiMhlsCompleted
  join HrAdultDiCodCount using (State)

13.2.224. HrAdultDiMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDiMhlsCompletionRate as New
  join hist.HrAdultDiMhlsCompletionRate as Old using (State)
Rules:

13.2.225. HrAdultDiMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.226. HrAdultDiMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDiMhlsCount as New
  join hist.HrAdultDiMhlsCount as Old using (State)

13.2.227. HrAdultDiMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDiMhlsCount as New
  join hist.HrAdultDiMhlsCount as Old using (State)
Rules:

13.2.228. HrAdultDrBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.229. HrAdultDrBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrBasis32Completed as New
  join hist.HrAdultDrBasis32Completed as Old using (State)

13.2.230. HrAdultDrBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrBasis32Completed as New
  join hist.HrAdultDrBasis32Completed as Old using (State)

13.2.231. HrAdultDrBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDrBasis32Completed.Total, HrAdultDrCodCount.Total, 3) as Rate
  from HrAdultDrBasis32Completed
  join HrAdultDrCodCount using (State)

13.2.232. HrAdultDrBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDrBasis32CompletionRate as New
  join hist.HrAdultDrBasis32CompletionRate as Old using (State)
Rules:

13.2.233. HrAdultDrBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.234. HrAdultDrBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrBasis32Count as New
  join hist.HrAdultDrBasis32Count as Old using (State)

13.2.235. HrAdultDrBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrBasis32Count as New
  join hist.HrAdultDrBasis32Count as Old using (State)
Rules:

13.2.236. HrAdultDrCodCount

Base:

HR

Title:

HR-level count of collection occasions for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.237. HrAdultDrDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.238. HrAdultDrDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrDiagCompleted as New
  join hist.HrAdultDrDiagCompleted as Old using (State)

13.2.239. HrAdultDrDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrDiagCompleted as New
  join hist.HrAdultDrDiagCompleted as Old using (State)

13.2.240. HrAdultDrDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDrDiagCompleted.Total, HrAdultDrCodCount.Total, 3) as Rate
  from HrAdultDrDiagCompleted
  join HrAdultDrCodCount using (State)

13.2.241. HrAdultDrDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDrDiagCompletionRate as New
  join hist.HrAdultDrDiagCompletionRate as Old using (State)
Rules:

13.2.242. HrAdultDrDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.243. HrAdultDrDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrDiagCount as New
  join hist.HrAdultDrDiagCount as Old using (State)

13.2.244. HrAdultDrDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrDiagCount as New
  join hist.HrAdultDrDiagCount as Old using (State)
Rules:

13.2.245. HrAdultDrHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.246. HrAdultDrHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrHonosCompleted as New
  join hist.HrAdultDrHonosCompleted as Old using (State)

13.2.247. HrAdultDrHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrHonosCompleted as New
  join hist.HrAdultDrHonosCompleted as Old using (State)

13.2.248. HrAdultDrHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDrHonosCompleted.Total, HrAdultDrCodCount.Total, 3) as Rate
  from HrAdultDrHonosCompleted
  join HrAdultDrCodCount using (State)

13.2.249. HrAdultDrHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDrHonosCompletionRate as New
  join hist.HrAdultDrHonosCompletionRate as Old using (State)
Rules:

13.2.250. HrAdultDrHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.251. HrAdultDrHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrHonosCount as New
  join hist.HrAdultDrHonosCount as Old using (State)

13.2.252. HrAdultDrHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrHonosCount as New
  join hist.HrAdultDrHonosCount as Old using (State)
Rules:

13.2.253. HrAdultDrK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.254. HrAdultDrK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrK10l3dCompleted as New
  join hist.HrAdultDrK10l3dCompleted as Old using (State)

13.2.255. HrAdultDrK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrK10l3dCompleted as New
  join hist.HrAdultDrK10l3dCompleted as Old using (State)

13.2.256. HrAdultDrK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDrK10l3dCompleted.Total, HrAdultDrCodCount.Total, 3) as Rate
  from HrAdultDrK10l3dCompleted
  join HrAdultDrCodCount using (State)

13.2.257. HrAdultDrK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDrK10l3dCompletionRate as New
  join hist.HrAdultDrK10l3dCompletionRate as Old using (State)
Rules:

13.2.258. HrAdultDrK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.259. HrAdultDrK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrK10l3dCount as New
  join hist.HrAdultDrK10l3dCount as Old using (State)

13.2.260. HrAdultDrK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrK10l3dCount as New
  join hist.HrAdultDrK10l3dCount as Old using (State)
Rules:

13.2.261. HrAdultDrK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.262. HrAdultDrK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrK10lmCompleted as New
  join hist.HrAdultDrK10lmCompleted as Old using (State)

13.2.263. HrAdultDrK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrK10lmCompleted as New
  join hist.HrAdultDrK10lmCompleted as Old using (State)

13.2.264. HrAdultDrK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDrK10lmCompleted.Total, HrAdultDrCodCount.Total, 3) as Rate
  from HrAdultDrK10lmCompleted
  join HrAdultDrCodCount using (State)

13.2.265. HrAdultDrK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDrK10lmCompletionRate as New
  join hist.HrAdultDrK10lmCompletionRate as Old using (State)
Rules:

13.2.266. HrAdultDrK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.267. HrAdultDrK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrK10lmCount as New
  join hist.HrAdultDrK10lmCount as Old using (State)

13.2.268. HrAdultDrK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrK10lmCount as New
  join hist.HrAdultDrK10lmCount as Old using (State)
Rules:

13.2.269. HrAdultDrLsp16Completed

Base:

HR

Title:

HR-level count of completed LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.270. HrAdultDrLsp16CompletedChange

Base:

HR

Title:

Change in HR-level count of completed LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrLsp16Completed as New
  join hist.HrAdultDrLsp16Completed as Old using (State)

13.2.271. HrAdultDrLsp16CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrLsp16Completed as New
  join hist.HrAdultDrLsp16Completed as Old using (State)

13.2.272. HrAdultDrLsp16CompletionRate

Base:

HR

Title:

HR-level completion rate of LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDrLsp16Completed.Total, HrAdultDrCodCount.Total, 3) as Rate
  from HrAdultDrLsp16Completed
  join HrAdultDrCodCount using (State)

13.2.273. HrAdultDrLsp16CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDrLsp16CompletionRate as New
  join hist.HrAdultDrLsp16CompletionRate as Old using (State)
Rules:

13.2.274. HrAdultDrLsp16Count

Base:

HR

Title:

HR-level count of all LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.275. HrAdultDrLsp16CountChange

Base:

HR

Title:

Change in HR-level count of all LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrLsp16Count as New
  join hist.HrAdultDrLsp16Count as Old using (State)

13.2.276. HrAdultDrLsp16CountGrowth

Base:

HR

Title:

Growth in HR-level count of all LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrLsp16Count as New
  join hist.HrAdultDrLsp16Count as Old using (State)
Rules:

13.2.277. HrAdultDrMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.278. HrAdultDrMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrMhi38Completed as New
  join hist.HrAdultDrMhi38Completed as Old using (State)

13.2.279. HrAdultDrMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrMhi38Completed as New
  join hist.HrAdultDrMhi38Completed as Old using (State)

13.2.280. HrAdultDrMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDrMhi38Completed.Total, HrAdultDrCodCount.Total, 3) as Rate
  from HrAdultDrMhi38Completed
  join HrAdultDrCodCount using (State)

13.2.281. HrAdultDrMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDrMhi38CompletionRate as New
  join hist.HrAdultDrMhi38CompletionRate as Old using (State)
Rules:

13.2.282. HrAdultDrMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.283. HrAdultDrMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrMhi38Count as New
  join hist.HrAdultDrMhi38Count as Old using (State)

13.2.284. HrAdultDrMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrMhi38Count as New
  join hist.HrAdultDrMhi38Count as Old using (State)
Rules:

13.2.285. HrAdultDrMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.286. HrAdultDrMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrMhlsCompleted as New
  join hist.HrAdultDrMhlsCompleted as Old using (State)

13.2.287. HrAdultDrMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrMhlsCompleted as New
  join hist.HrAdultDrMhlsCompleted as Old using (State)

13.2.288. HrAdultDrMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrAdultDrMhlsCompleted.Total, HrAdultDrCodCount.Total, 3) as Rate
  from HrAdultDrMhlsCompleted
  join HrAdultDrCodCount using (State)

13.2.289. HrAdultDrMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultDrMhlsCompletionRate as New
  join hist.HrAdultDrMhlsCompletionRate as Old using (State)
Rules:

13.2.290. HrAdultDrMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.291. HrAdultDrMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultDrMhlsCount as New
  join hist.HrAdultDrMhlsCount as Old using (State)

13.2.292. HrAdultDrMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultDrMhlsCount as New
  join hist.HrAdultDrMhlsCount as Old using (State)
Rules:

13.2.293. HrAdultRaBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.294. HrAdultRaBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaBasis32Completed as New
  join hist.HrAdultRaBasis32Completed as Old using (State)

13.2.295. HrAdultRaBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaBasis32Completed as New
  join hist.HrAdultRaBasis32Completed as Old using (State)

13.2.296. HrAdultRaBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRaBasis32Completed.Total, HrAdultRaCodCount.Total, 3) as Rate
  from HrAdultRaBasis32Completed
  join HrAdultRaCodCount using (State)

13.2.297. HrAdultRaBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRaBasis32CompletionRate as New
  join hist.HrAdultRaBasis32CompletionRate as Old using (State)
Rules:

13.2.298. HrAdultRaBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.299. HrAdultRaBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaBasis32Count as New
  join hist.HrAdultRaBasis32Count as Old using (State)

13.2.300. HrAdultRaBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaBasis32Count as New
  join hist.HrAdultRaBasis32Count as Old using (State)
Rules:

13.2.301. HrAdultRaCodCount

Base:

HR

Title:

HR-level count of collection occasions for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.302. HrAdultRaDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.303. HrAdultRaDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaDiagCompleted as New
  join hist.HrAdultRaDiagCompleted as Old using (State)

13.2.304. HrAdultRaDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaDiagCompleted as New
  join hist.HrAdultRaDiagCompleted as Old using (State)

13.2.305. HrAdultRaDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRaDiagCompleted.Total, HrAdultRaCodCount.Total, 3) as Rate
  from HrAdultRaDiagCompleted
  join HrAdultRaCodCount using (State)

13.2.306. HrAdultRaDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRaDiagCompletionRate as New
  join hist.HrAdultRaDiagCompletionRate as Old using (State)
Rules:

13.2.307. HrAdultRaDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.308. HrAdultRaDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaDiagCount as New
  join hist.HrAdultRaDiagCount as Old using (State)

13.2.309. HrAdultRaDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaDiagCount as New
  join hist.HrAdultRaDiagCount as Old using (State)
Rules:

13.2.310. HrAdultRaHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.311. HrAdultRaHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaHonosCompleted as New
  join hist.HrAdultRaHonosCompleted as Old using (State)

13.2.312. HrAdultRaHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaHonosCompleted as New
  join hist.HrAdultRaHonosCompleted as Old using (State)

13.2.313. HrAdultRaHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRaHonosCompleted.Total, HrAdultRaCodCount.Total, 3) as Rate
  from HrAdultRaHonosCompleted
  join HrAdultRaCodCount using (State)

13.2.314. HrAdultRaHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRaHonosCompletionRate as New
  join hist.HrAdultRaHonosCompletionRate as Old using (State)
Rules:

13.2.315. HrAdultRaHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.316. HrAdultRaHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaHonosCount as New
  join hist.HrAdultRaHonosCount as Old using (State)

13.2.317. HrAdultRaHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaHonosCount as New
  join hist.HrAdultRaHonosCount as Old using (State)
Rules:

13.2.318. HrAdultRaK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.319. HrAdultRaK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaK10l3dCompleted as New
  join hist.HrAdultRaK10l3dCompleted as Old using (State)

13.2.320. HrAdultRaK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaK10l3dCompleted as New
  join hist.HrAdultRaK10l3dCompleted as Old using (State)

13.2.321. HrAdultRaK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRaK10l3dCompleted.Total, HrAdultRaCodCount.Total, 3) as Rate
  from HrAdultRaK10l3dCompleted
  join HrAdultRaCodCount using (State)

13.2.322. HrAdultRaK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRaK10l3dCompletionRate as New
  join hist.HrAdultRaK10l3dCompletionRate as Old using (State)
Rules:

13.2.323. HrAdultRaK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.324. HrAdultRaK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaK10l3dCount as New
  join hist.HrAdultRaK10l3dCount as Old using (State)

13.2.325. HrAdultRaK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaK10l3dCount as New
  join hist.HrAdultRaK10l3dCount as Old using (State)
Rules:

13.2.326. HrAdultRaK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.327. HrAdultRaK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaK10lmCompleted as New
  join hist.HrAdultRaK10lmCompleted as Old using (State)

13.2.328. HrAdultRaK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaK10lmCompleted as New
  join hist.HrAdultRaK10lmCompleted as Old using (State)

13.2.329. HrAdultRaK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRaK10lmCompleted.Total, HrAdultRaCodCount.Total, 3) as Rate
  from HrAdultRaK10lmCompleted
  join HrAdultRaCodCount using (State)

13.2.330. HrAdultRaK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRaK10lmCompletionRate as New
  join hist.HrAdultRaK10lmCompletionRate as Old using (State)
Rules:

13.2.331. HrAdultRaK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.332. HrAdultRaK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaK10lmCount as New
  join hist.HrAdultRaK10lmCount as Old using (State)

13.2.333. HrAdultRaK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaK10lmCount as New
  join hist.HrAdultRaK10lmCount as Old using (State)
Rules:

13.2.334. HrAdultRaLsp16Completed

Base:

HR

Title:

HR-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.335. HrAdultRaLsp16CompletedChange

Base:

HR

Title:

Change in HR-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaLsp16Completed as New
  join hist.HrAdultRaLsp16Completed as Old using (State)

13.2.336. HrAdultRaLsp16CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaLsp16Completed as New
  join hist.HrAdultRaLsp16Completed as Old using (State)

13.2.337. HrAdultRaLsp16CompletionRate

Base:

HR

Title:

HR-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRaLsp16Completed.Total, HrAdultRaCodCount.Total, 3) as Rate
  from HrAdultRaLsp16Completed
  join HrAdultRaCodCount using (State)

13.2.338. HrAdultRaLsp16CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRaLsp16CompletionRate as New
  join hist.HrAdultRaLsp16CompletionRate as Old using (State)
Rules:

13.2.339. HrAdultRaLsp16Count

Base:

HR

Title:

HR-level count of all LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.340. HrAdultRaLsp16CountChange

Base:

HR

Title:

Change in HR-level count of all LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaLsp16Count as New
  join hist.HrAdultRaLsp16Count as Old using (State)

13.2.341. HrAdultRaLsp16CountGrowth

Base:

HR

Title:

Growth in HR-level count of all LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaLsp16Count as New
  join hist.HrAdultRaLsp16Count as Old using (State)
Rules:

13.2.342. HrAdultRaMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.343. HrAdultRaMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaMhi38Completed as New
  join hist.HrAdultRaMhi38Completed as Old using (State)

13.2.344. HrAdultRaMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaMhi38Completed as New
  join hist.HrAdultRaMhi38Completed as Old using (State)

13.2.345. HrAdultRaMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRaMhi38Completed.Total, HrAdultRaCodCount.Total, 3) as Rate
  from HrAdultRaMhi38Completed
  join HrAdultRaCodCount using (State)

13.2.346. HrAdultRaMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRaMhi38CompletionRate as New
  join hist.HrAdultRaMhi38CompletionRate as Old using (State)
Rules:

13.2.347. HrAdultRaMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.348. HrAdultRaMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaMhi38Count as New
  join hist.HrAdultRaMhi38Count as Old using (State)

13.2.349. HrAdultRaMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaMhi38Count as New
  join hist.HrAdultRaMhi38Count as Old using (State)
Rules:

13.2.350. HrAdultRaMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.351. HrAdultRaMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaMhlsCompleted as New
  join hist.HrAdultRaMhlsCompleted as Old using (State)

13.2.352. HrAdultRaMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaMhlsCompleted as New
  join hist.HrAdultRaMhlsCompleted as Old using (State)

13.2.353. HrAdultRaMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRaMhlsCompleted.Total, HrAdultRaCodCount.Total, 3) as Rate
  from HrAdultRaMhlsCompleted
  join HrAdultRaCodCount using (State)

13.2.354. HrAdultRaMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRaMhlsCompletionRate as New
  join hist.HrAdultRaMhlsCompletionRate as Old using (State)
Rules:

13.2.355. HrAdultRaMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.356. HrAdultRaMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaMhlsCount as New
  join hist.HrAdultRaMhlsCount as Old using (State)

13.2.357. HrAdultRaMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaMhlsCount as New
  join hist.HrAdultRaMhlsCount as Old using (State)
Rules:

13.2.358. HrAdultRaPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.359. HrAdultRaPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaPocCompleted as New
  join hist.HrAdultRaPocCompleted as Old using (State)

13.2.360. HrAdultRaPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaPocCompleted as New
  join hist.HrAdultRaPocCompleted as Old using (State)

13.2.361. HrAdultRaPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRaPocCompleted.Total, HrAdultRaCodCount.Total, 3) as Rate
  from HrAdultRaPocCompleted
  join HrAdultRaCodCount using (State)

13.2.362. HrAdultRaPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRaPocCompletionRate as New
  join hist.HrAdultRaPocCompletionRate as Old using (State)
Rules:

13.2.363. HrAdultRaPocCount

Base:

HR

Title:

HR-level count of all POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.364. HrAdultRaPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRaPocCount as New
  join hist.HrAdultRaPocCount as Old using (State)

13.2.365. HrAdultRaPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRaPocCount as New
  join hist.HrAdultRaPocCount as Old using (State)
Rules:

13.2.366. HrAdultRiCodCount

Base:

HR

Title:

HR-level count of collection occasions for Adult age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.367. HrAdultRiDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.368. HrAdultRiDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRiDiagCompleted as New
  join hist.HrAdultRiDiagCompleted as Old using (State)

13.2.369. HrAdultRiDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRiDiagCompleted as New
  join hist.HrAdultRiDiagCompleted as Old using (State)

13.2.370. HrAdultRiDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRiDiagCompleted.Total, HrAdultRiCodCount.Total, 3) as Rate
  from HrAdultRiDiagCompleted
  join HrAdultRiCodCount using (State)

13.2.371. HrAdultRiDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRiDiagCompletionRate as New
  join hist.HrAdultRiDiagCompletionRate as Old using (State)
Rules:

13.2.372. HrAdultRiDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.373. HrAdultRiDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRiDiagCount as New
  join hist.HrAdultRiDiagCount as Old using (State)

13.2.374. HrAdultRiDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRiDiagCount as New
  join hist.HrAdultRiDiagCount as Old using (State)
Rules:

13.2.375. HrAdultRiHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.376. HrAdultRiHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRiHonosCompleted as New
  join hist.HrAdultRiHonosCompleted as Old using (State)

13.2.377. HrAdultRiHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRiHonosCompleted as New
  join hist.HrAdultRiHonosCompleted as Old using (State)

13.2.378. HrAdultRiHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRiHonosCompleted.Total, HrAdultRiCodCount.Total, 3) as Rate
  from HrAdultRiHonosCompleted
  join HrAdultRiCodCount using (State)

13.2.379. HrAdultRiHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRiHonosCompletionRate as New
  join hist.HrAdultRiHonosCompletionRate as Old using (State)
Rules:

13.2.380. HrAdultRiHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.381. HrAdultRiHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRiHonosCount as New
  join hist.HrAdultRiHonosCount as Old using (State)

13.2.382. HrAdultRiHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRiHonosCount as New
  join hist.HrAdultRiHonosCount as Old using (State)
Rules:

13.2.383. HrAdultRiMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.384. HrAdultRiMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRiMhlsCompleted as New
  join hist.HrAdultRiMhlsCompleted as Old using (State)

13.2.385. HrAdultRiMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRiMhlsCompleted as New
  join hist.HrAdultRiMhlsCompleted as Old using (State)

13.2.386. HrAdultRiMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRiMhlsCompleted.Total, HrAdultRiCodCount.Total, 3) as Rate
  from HrAdultRiMhlsCompleted
  join HrAdultRiCodCount using (State)

13.2.387. HrAdultRiMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRiMhlsCompletionRate as New
  join hist.HrAdultRiMhlsCompletionRate as Old using (State)
Rules:

13.2.388. HrAdultRiMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.389. HrAdultRiMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRiMhlsCount as New
  join hist.HrAdultRiMhlsCount as Old using (State)

13.2.390. HrAdultRiMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRiMhlsCount as New
  join hist.HrAdultRiMhlsCount as Old using (State)
Rules:

13.2.391. HrAdultRiPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.392. HrAdultRiPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRiPocCompleted as New
  join hist.HrAdultRiPocCompleted as Old using (State)

13.2.393. HrAdultRiPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRiPocCompleted as New
  join hist.HrAdultRiPocCompleted as Old using (State)

13.2.394. HrAdultRiPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRiPocCompleted.Total, HrAdultRiCodCount.Total, 3) as Rate
  from HrAdultRiPocCompleted
  join HrAdultRiCodCount using (State)

13.2.395. HrAdultRiPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRiPocCompletionRate as New
  join hist.HrAdultRiPocCompletionRate as Old using (State)
Rules:

13.2.396. HrAdultRiPocCount

Base:

HR

Title:

HR-level count of all POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.397. HrAdultRiPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRiPocCount as New
  join hist.HrAdultRiPocCount as Old using (State)

13.2.398. HrAdultRiPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRiPocCount as New
  join hist.HrAdultRiPocCount as Old using (State)
Rules:

13.2.399. HrAdultRrBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.400. HrAdultRrBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrBasis32Completed as New
  join hist.HrAdultRrBasis32Completed as Old using (State)

13.2.401. HrAdultRrBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrBasis32Completed as New
  join hist.HrAdultRrBasis32Completed as Old using (State)

13.2.402. HrAdultRrBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRrBasis32Completed.Total, HrAdultRrCodCount.Total, 3) as Rate
  from HrAdultRrBasis32Completed
  join HrAdultRrCodCount using (State)

13.2.403. HrAdultRrBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRrBasis32CompletionRate as New
  join hist.HrAdultRrBasis32CompletionRate as Old using (State)
Rules:

13.2.404. HrAdultRrBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.405. HrAdultRrBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrBasis32Count as New
  join hist.HrAdultRrBasis32Count as Old using (State)

13.2.406. HrAdultRrBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrBasis32Count as New
  join hist.HrAdultRrBasis32Count as Old using (State)
Rules:

13.2.407. HrAdultRrCodCount

Base:

HR

Title:

HR-level count of collection occasions for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.408. HrAdultRrDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.409. HrAdultRrDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrDiagCompleted as New
  join hist.HrAdultRrDiagCompleted as Old using (State)

13.2.410. HrAdultRrDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrDiagCompleted as New
  join hist.HrAdultRrDiagCompleted as Old using (State)

13.2.411. HrAdultRrDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRrDiagCompleted.Total, HrAdultRrCodCount.Total, 3) as Rate
  from HrAdultRrDiagCompleted
  join HrAdultRrCodCount using (State)

13.2.412. HrAdultRrDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRrDiagCompletionRate as New
  join hist.HrAdultRrDiagCompletionRate as Old using (State)
Rules:

13.2.413. HrAdultRrDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.414. HrAdultRrDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrDiagCount as New
  join hist.HrAdultRrDiagCount as Old using (State)

13.2.415. HrAdultRrDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrDiagCount as New
  join hist.HrAdultRrDiagCount as Old using (State)
Rules:

13.2.416. HrAdultRrHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.417. HrAdultRrHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrHonosCompleted as New
  join hist.HrAdultRrHonosCompleted as Old using (State)

13.2.418. HrAdultRrHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrHonosCompleted as New
  join hist.HrAdultRrHonosCompleted as Old using (State)

13.2.419. HrAdultRrHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRrHonosCompleted.Total, HrAdultRrCodCount.Total, 3) as Rate
  from HrAdultRrHonosCompleted
  join HrAdultRrCodCount using (State)

13.2.420. HrAdultRrHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRrHonosCompletionRate as New
  join hist.HrAdultRrHonosCompletionRate as Old using (State)
Rules:

13.2.421. HrAdultRrHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.422. HrAdultRrHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrHonosCount as New
  join hist.HrAdultRrHonosCount as Old using (State)

13.2.423. HrAdultRrHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrHonosCount as New
  join hist.HrAdultRrHonosCount as Old using (State)
Rules:

13.2.424. HrAdultRrK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.425. HrAdultRrK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrK10l3dCompleted as New
  join hist.HrAdultRrK10l3dCompleted as Old using (State)

13.2.426. HrAdultRrK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrK10l3dCompleted as New
  join hist.HrAdultRrK10l3dCompleted as Old using (State)

13.2.427. HrAdultRrK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRrK10l3dCompleted.Total, HrAdultRrCodCount.Total, 3) as Rate
  from HrAdultRrK10l3dCompleted
  join HrAdultRrCodCount using (State)

13.2.428. HrAdultRrK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRrK10l3dCompletionRate as New
  join hist.HrAdultRrK10l3dCompletionRate as Old using (State)
Rules:

13.2.429. HrAdultRrK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.430. HrAdultRrK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrK10l3dCount as New
  join hist.HrAdultRrK10l3dCount as Old using (State)

13.2.431. HrAdultRrK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrK10l3dCount as New
  join hist.HrAdultRrK10l3dCount as Old using (State)
Rules:

13.2.432. HrAdultRrK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.433. HrAdultRrK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrK10lmCompleted as New
  join hist.HrAdultRrK10lmCompleted as Old using (State)

13.2.434. HrAdultRrK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrK10lmCompleted as New
  join hist.HrAdultRrK10lmCompleted as Old using (State)

13.2.435. HrAdultRrK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRrK10lmCompleted.Total, HrAdultRrCodCount.Total, 3) as Rate
  from HrAdultRrK10lmCompleted
  join HrAdultRrCodCount using (State)

13.2.436. HrAdultRrK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRrK10lmCompletionRate as New
  join hist.HrAdultRrK10lmCompletionRate as Old using (State)
Rules:

13.2.437. HrAdultRrK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.438. HrAdultRrK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrK10lmCount as New
  join hist.HrAdultRrK10lmCount as Old using (State)

13.2.439. HrAdultRrK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrK10lmCount as New
  join hist.HrAdultRrK10lmCount as Old using (State)
Rules:

13.2.440. HrAdultRrLsp16Completed

Base:

HR

Title:

HR-level count of completed LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.441. HrAdultRrLsp16CompletedChange

Base:

HR

Title:

Change in HR-level count of completed LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrLsp16Completed as New
  join hist.HrAdultRrLsp16Completed as Old using (State)

13.2.442. HrAdultRrLsp16CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrLsp16Completed as New
  join hist.HrAdultRrLsp16Completed as Old using (State)

13.2.443. HrAdultRrLsp16CompletionRate

Base:

HR

Title:

HR-level completion rate of LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRrLsp16Completed.Total, HrAdultRrCodCount.Total, 3) as Rate
  from HrAdultRrLsp16Completed
  join HrAdultRrCodCount using (State)

13.2.444. HrAdultRrLsp16CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRrLsp16CompletionRate as New
  join hist.HrAdultRrLsp16CompletionRate as Old using (State)
Rules:

13.2.445. HrAdultRrLsp16Count

Base:

HR

Title:

HR-level count of all LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.446. HrAdultRrLsp16CountChange

Base:

HR

Title:

Change in HR-level count of all LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrLsp16Count as New
  join hist.HrAdultRrLsp16Count as Old using (State)

13.2.447. HrAdultRrLsp16CountGrowth

Base:

HR

Title:

Growth in HR-level count of all LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrLsp16Count as New
  join hist.HrAdultRrLsp16Count as Old using (State)
Rules:

13.2.448. HrAdultRrMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.449. HrAdultRrMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrMhi38Completed as New
  join hist.HrAdultRrMhi38Completed as Old using (State)

13.2.450. HrAdultRrMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrMhi38Completed as New
  join hist.HrAdultRrMhi38Completed as Old using (State)

13.2.451. HrAdultRrMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRrMhi38Completed.Total, HrAdultRrCodCount.Total, 3) as Rate
  from HrAdultRrMhi38Completed
  join HrAdultRrCodCount using (State)

13.2.452. HrAdultRrMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRrMhi38CompletionRate as New
  join hist.HrAdultRrMhi38CompletionRate as Old using (State)
Rules:

13.2.453. HrAdultRrMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.454. HrAdultRrMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrMhi38Count as New
  join hist.HrAdultRrMhi38Count as Old using (State)

13.2.455. HrAdultRrMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrMhi38Count as New
  join hist.HrAdultRrMhi38Count as Old using (State)
Rules:

13.2.456. HrAdultRrMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.457. HrAdultRrMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrMhlsCompleted as New
  join hist.HrAdultRrMhlsCompleted as Old using (State)

13.2.458. HrAdultRrMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrMhlsCompleted as New
  join hist.HrAdultRrMhlsCompleted as Old using (State)

13.2.459. HrAdultRrMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRrMhlsCompleted.Total, HrAdultRrCodCount.Total, 3) as Rate
  from HrAdultRrMhlsCompleted
  join HrAdultRrCodCount using (State)

13.2.460. HrAdultRrMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRrMhlsCompletionRate as New
  join hist.HrAdultRrMhlsCompletionRate as Old using (State)
Rules:

13.2.461. HrAdultRrMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.462. HrAdultRrMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrMhlsCount as New
  join hist.HrAdultRrMhlsCount as Old using (State)

13.2.463. HrAdultRrMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrMhlsCount as New
  join hist.HrAdultRrMhlsCount as Old using (State)
Rules:

13.2.464. HrAdultRrPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.465. HrAdultRrPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrPocCompleted as New
  join hist.HrAdultRrPocCompleted as Old using (State)

13.2.466. HrAdultRrPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrPocCompleted as New
  join hist.HrAdultRrPocCompleted as Old using (State)

13.2.467. HrAdultRrPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrAdultRrPocCompleted.Total, HrAdultRrCodCount.Total, 3) as Rate
  from HrAdultRrPocCompleted
  join HrAdultRrCodCount using (State)

13.2.468. HrAdultRrPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrAdultRrPocCompletionRate as New
  join hist.HrAdultRrPocCompletionRate as Old using (State)
Rules:

13.2.469. HrAdultRrPocCount

Base:

HR

Title:

HR-level count of all POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.470. HrAdultRrPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrAdultRrPocCount as New
  join hist.HrAdultRrPocCount as Old using (State)

13.2.471. HrAdultRrPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrAdultRrPocCount as New
  join hist.HrAdultRrPocCount as Old using (State)
Rules:

13.2.472. HrChildAaCgasCompleted

Base:

HR

Title:

HR-level count of completed CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.473. HrChildAaCgasCompletedChange

Base:

HR

Title:

Change in HR-level count of completed CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAaCgasCompleted as New
  join hist.HrChildAaCgasCompleted as Old using (State)

13.2.474. HrChildAaCgasCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAaCgasCompleted as New
  join hist.HrChildAaCgasCompleted as Old using (State)

13.2.475. HrChildAaCgasCompletionRate

Base:

HR

Title:

HR-level completion rate of CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrChildAaCgasCompleted.Total, HrChildAaCodCount.Total, 3) as Rate
  from HrChildAaCgasCompleted
  join HrChildAaCodCount using (State)

13.2.476. HrChildAaCgasCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildAaCgasCompletionRate as New
  join hist.HrChildAaCgasCompletionRate as Old using (State)
Rules:

13.2.477. HrChildAaCgasCount

Base:

HR

Title:

HR-level count of all CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.478. HrChildAaCgasCountChange

Base:

HR

Title:

Change in HR-level count of all CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAaCgasCount as New
  join hist.HrChildAaCgasCount as Old using (State)

13.2.479. HrChildAaCgasCountGrowth

Base:

HR

Title:

Growth in HR-level count of all CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAaCgasCount as New
  join hist.HrChildAaCgasCount as Old using (State)
Rules:

13.2.480. HrChildAaCodCount

Base:

HR

Title:

HR-level count of collection occasions for Child age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.481. HrChildAaHonoscaCompleted

Base:

HR

Title:

HR-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.482. HrChildAaHonoscaCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAaHonoscaCompleted as New
  join hist.HrChildAaHonoscaCompleted as Old using (State)

13.2.483. HrChildAaHonoscaCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAaHonoscaCompleted as New
  join hist.HrChildAaHonoscaCompleted as Old using (State)

13.2.484. HrChildAaHonoscaCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrChildAaHonoscaCompleted.Total, HrChildAaCodCount.Total, 3) as Rate
  from HrChildAaHonoscaCompleted
  join HrChildAaCodCount using (State)

13.2.485. HrChildAaHonoscaCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildAaHonoscaCompletionRate as New
  join hist.HrChildAaHonoscaCompletionRate as Old using (State)
Rules:

13.2.486. HrChildAaHonoscaCount

Base:

HR

Title:

HR-level count of all HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.487. HrChildAaHonoscaCountChange

Base:

HR

Title:

Change in HR-level count of all HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAaHonoscaCount as New
  join hist.HrChildAaHonoscaCount as Old using (State)

13.2.488. HrChildAaHonoscaCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAaHonoscaCount as New
  join hist.HrChildAaHonoscaCount as Old using (State)
Rules:

13.2.489. HrChildAaSdqCompleted

Base:

HR

Title:

HR-level count of completed SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.490. HrChildAaSdqCompletedChange

Base:

HR

Title:

Change in HR-level count of completed SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAaSdqCompleted as New
  join hist.HrChildAaSdqCompleted as Old using (State)

13.2.491. HrChildAaSdqCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAaSdqCompleted as New
  join hist.HrChildAaSdqCompleted as Old using (State)

13.2.492. HrChildAaSdqCompletionRate

Base:

HR

Title:

HR-level completion rate of SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrChildAaSdqCompleted.Total, HrChildAaCodCount.Total, 3) as Rate
  from HrChildAaSdqCompleted
  join HrChildAaCodCount using (State)

13.2.493. HrChildAaSdqCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildAaSdqCompletionRate as New
  join hist.HrChildAaSdqCompletionRate as Old using (State)
Rules:

13.2.494. HrChildAaSdqCount

Base:

HR

Title:

HR-level count of all SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.495. HrChildAaSdqCountChange

Base:

HR

Title:

Change in HR-level count of all SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAaSdqCount as New
  join hist.HrChildAaSdqCount as Old using (State)

13.2.496. HrChildAaSdqCountGrowth

Base:

HR

Title:

Growth in HR-level count of all SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAaSdqCount as New
  join hist.HrChildAaSdqCount as Old using (State)
Rules:

13.2.497. HrChildAiCgasCompleted

Base:

HR

Title:

HR-level count of completed CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.498. HrChildAiCgasCompletedChange

Base:

HR

Title:

Change in HR-level count of completed CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAiCgasCompleted as New
  join hist.HrChildAiCgasCompleted as Old using (State)

13.2.499. HrChildAiCgasCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAiCgasCompleted as New
  join hist.HrChildAiCgasCompleted as Old using (State)

13.2.500. HrChildAiCgasCompletionRate

Base:

HR

Title:

HR-level completion rate of CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(HrChildAiCgasCompleted.Total, HrChildAiCodCount.Total, 3) as Rate
  from HrChildAiCgasCompleted
  join HrChildAiCodCount using (State)

13.2.501. HrChildAiCgasCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildAiCgasCompletionRate as New
  join hist.HrChildAiCgasCompletionRate as Old using (State)
Rules:

13.2.502. HrChildAiCgasCount

Base:

HR

Title:

HR-level count of all CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.503. HrChildAiCgasCountChange

Base:

HR

Title:

Change in HR-level count of all CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAiCgasCount as New
  join hist.HrChildAiCgasCount as Old using (State)

13.2.504. HrChildAiCgasCountGrowth

Base:

HR

Title:

Growth in HR-level count of all CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAiCgasCount as New
  join hist.HrChildAiCgasCount as Old using (State)
Rules:

13.2.505. HrChildAiCodCount

Base:

HR

Title:

HR-level count of collection occasions for Child age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.506. HrChildAiHonoscaCompleted

Base:

HR

Title:

HR-level count of completed HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.507. HrChildAiHonoscaCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAiHonoscaCompleted as New
  join hist.HrChildAiHonoscaCompleted as Old using (State)

13.2.508. HrChildAiHonoscaCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAiHonoscaCompleted as New
  join hist.HrChildAiHonoscaCompleted as Old using (State)

13.2.509. HrChildAiHonoscaCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(HrChildAiHonoscaCompleted.Total, HrChildAiCodCount.Total, 3) as Rate
  from HrChildAiHonoscaCompleted
  join HrChildAiCodCount using (State)

13.2.510. HrChildAiHonoscaCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildAiHonoscaCompletionRate as New
  join hist.HrChildAiHonoscaCompletionRate as Old using (State)
Rules:

13.2.511. HrChildAiHonoscaCount

Base:

HR

Title:

HR-level count of all HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.512. HrChildAiHonoscaCountChange

Base:

HR

Title:

Change in HR-level count of all HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAiHonoscaCount as New
  join hist.HrChildAiHonoscaCount as Old using (State)

13.2.513. HrChildAiHonoscaCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAiHonoscaCount as New
  join hist.HrChildAiHonoscaCount as Old using (State)
Rules:

13.2.514. HrChildAiSdqCompleted

Base:

HR

Title:

HR-level count of completed SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.515. HrChildAiSdqCompletedChange

Base:

HR

Title:

Change in HR-level count of completed SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAiSdqCompleted as New
  join hist.HrChildAiSdqCompleted as Old using (State)

13.2.516. HrChildAiSdqCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAiSdqCompleted as New
  join hist.HrChildAiSdqCompleted as Old using (State)

13.2.517. HrChildAiSdqCompletionRate

Base:

HR

Title:

HR-level completion rate of SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(HrChildAiSdqCompleted.Total, HrChildAiCodCount.Total, 3) as Rate
  from HrChildAiSdqCompleted
  join HrChildAiCodCount using (State)

13.2.518. HrChildAiSdqCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildAiSdqCompletionRate as New
  join hist.HrChildAiSdqCompletionRate as Old using (State)
Rules:

13.2.519. HrChildAiSdqCount

Base:

HR

Title:

HR-level count of all SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.520. HrChildAiSdqCountChange

Base:

HR

Title:

Change in HR-level count of all SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildAiSdqCount as New
  join hist.HrChildAiSdqCount as Old using (State)

13.2.521. HrChildAiSdqCountGrowth

Base:

HR

Title:

Growth in HR-level count of all SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildAiSdqCount as New
  join hist.HrChildAiSdqCount as Old using (State)
Rules:

13.2.522. HrChildArCgasCompleted

Base:

HR

Title:

HR-level count of completed CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.523. HrChildArCgasCompletedChange

Base:

HR

Title:

Change in HR-level count of completed CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildArCgasCompleted as New
  join hist.HrChildArCgasCompleted as Old using (State)

13.2.524. HrChildArCgasCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildArCgasCompleted as New
  join hist.HrChildArCgasCompleted as Old using (State)

13.2.525. HrChildArCgasCompletionRate

Base:

HR

Title:

HR-level completion rate of CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrChildArCgasCompleted.Total, HrChildArCodCount.Total, 3) as Rate
  from HrChildArCgasCompleted
  join HrChildArCodCount using (State)

13.2.526. HrChildArCgasCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildArCgasCompletionRate as New
  join hist.HrChildArCgasCompletionRate as Old using (State)
Rules:

13.2.527. HrChildArCgasCount

Base:

HR

Title:

HR-level count of all CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.528. HrChildArCgasCountChange

Base:

HR

Title:

Change in HR-level count of all CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildArCgasCount as New
  join hist.HrChildArCgasCount as Old using (State)

13.2.529. HrChildArCgasCountGrowth

Base:

HR

Title:

Growth in HR-level count of all CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildArCgasCount as New
  join hist.HrChildArCgasCount as Old using (State)
Rules:

13.2.530. HrChildArCodCount

Base:

HR

Title:

HR-level count of collection occasions for Child age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.531. HrChildArHonoscaCompleted

Base:

HR

Title:

HR-level count of completed HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.532. HrChildArHonoscaCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildArHonoscaCompleted as New
  join hist.HrChildArHonoscaCompleted as Old using (State)

13.2.533. HrChildArHonoscaCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildArHonoscaCompleted as New
  join hist.HrChildArHonoscaCompleted as Old using (State)

13.2.534. HrChildArHonoscaCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrChildArHonoscaCompleted.Total, HrChildArCodCount.Total, 3) as Rate
  from HrChildArHonoscaCompleted
  join HrChildArCodCount using (State)

13.2.535. HrChildArHonoscaCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildArHonoscaCompletionRate as New
  join hist.HrChildArHonoscaCompletionRate as Old using (State)
Rules:

13.2.536. HrChildArHonoscaCount

Base:

HR

Title:

HR-level count of all HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.537. HrChildArHonoscaCountChange

Base:

HR

Title:

Change in HR-level count of all HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildArHonoscaCount as New
  join hist.HrChildArHonoscaCount as Old using (State)

13.2.538. HrChildArHonoscaCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildArHonoscaCount as New
  join hist.HrChildArHonoscaCount as Old using (State)
Rules:

13.2.539. HrChildArSdqCompleted

Base:

HR

Title:

HR-level count of completed SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.540. HrChildArSdqCompletedChange

Base:

HR

Title:

Change in HR-level count of completed SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildArSdqCompleted as New
  join hist.HrChildArSdqCompleted as Old using (State)

13.2.541. HrChildArSdqCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildArSdqCompleted as New
  join hist.HrChildArSdqCompleted as Old using (State)

13.2.542. HrChildArSdqCompletionRate

Base:

HR

Title:

HR-level completion rate of SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrChildArSdqCompleted.Total, HrChildArCodCount.Total, 3) as Rate
  from HrChildArSdqCompleted
  join HrChildArCodCount using (State)

13.2.543. HrChildArSdqCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildArSdqCompletionRate as New
  join hist.HrChildArSdqCompletionRate as Old using (State)
Rules:

13.2.544. HrChildArSdqCount

Base:

HR

Title:

HR-level count of all SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.545. HrChildArSdqCountChange

Base:

HR

Title:

Change in HR-level count of all SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildArSdqCount as New
  join hist.HrChildArSdqCount as Old using (State)

13.2.546. HrChildArSdqCountGrowth

Base:

HR

Title:

Growth in HR-level count of all SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildArSdqCount as New
  join hist.HrChildArSdqCount as Old using (State)
Rules:

13.2.547. HrChildDaCodCount

Base:

HR

Title:

HR-level count of collection occasions for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.548. HrChildDaDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.549. HrChildDaDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDaDiagCompleted as New
  join hist.HrChildDaDiagCompleted as Old using (State)

13.2.550. HrChildDaDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDaDiagCompleted as New
  join hist.HrChildDaDiagCompleted as Old using (State)

13.2.551. HrChildDaDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDaDiagCompleted.Total, HrChildDaCodCount.Total, 3) as Rate
  from HrChildDaDiagCompleted
  join HrChildDaCodCount using (State)

13.2.552. HrChildDaDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDaDiagCompletionRate as New
  join hist.HrChildDaDiagCompletionRate as Old using (State)
Rules:

13.2.553. HrChildDaDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.554. HrChildDaDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDaDiagCount as New
  join hist.HrChildDaDiagCount as Old using (State)

13.2.555. HrChildDaDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDaDiagCount as New
  join hist.HrChildDaDiagCount as Old using (State)
Rules:

13.2.556. HrChildDaFihsCompleted

Base:

HR

Title:

HR-level count of completed FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.557. HrChildDaFihsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDaFihsCompleted as New
  join hist.HrChildDaFihsCompleted as Old using (State)

13.2.558. HrChildDaFihsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDaFihsCompleted as New
  join hist.HrChildDaFihsCompleted as Old using (State)

13.2.559. HrChildDaFihsCompletionRate

Base:

HR

Title:

HR-level completion rate of FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDaFihsCompleted.Total, HrChildDaCodCount.Total, 3) as Rate
  from HrChildDaFihsCompleted
  join HrChildDaCodCount using (State)

13.2.560. HrChildDaFihsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDaFihsCompletionRate as New
  join hist.HrChildDaFihsCompletionRate as Old using (State)
Rules:

13.2.561. HrChildDaFihsCount

Base:

HR

Title:

HR-level count of all FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.562. HrChildDaFihsCountChange

Base:

HR

Title:

Change in HR-level count of all FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDaFihsCount as New
  join hist.HrChildDaFihsCount as Old using (State)

13.2.563. HrChildDaFihsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDaFihsCount as New
  join hist.HrChildDaFihsCount as Old using (State)
Rules:

13.2.564. HrChildDaHonoscaCompleted

Base:

HR

Title:

HR-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.565. HrChildDaHonoscaCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDaHonoscaCompleted as New
  join hist.HrChildDaHonoscaCompleted as Old using (State)

13.2.566. HrChildDaHonoscaCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDaHonoscaCompleted as New
  join hist.HrChildDaHonoscaCompleted as Old using (State)

13.2.567. HrChildDaHonoscaCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDaHonoscaCompleted.Total, HrChildDaCodCount.Total, 3) as Rate
  from HrChildDaHonoscaCompleted
  join HrChildDaCodCount using (State)

13.2.568. HrChildDaHonoscaCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDaHonoscaCompletionRate as New
  join hist.HrChildDaHonoscaCompletionRate as Old using (State)
Rules:

13.2.569. HrChildDaHonoscaCount

Base:

HR

Title:

HR-level count of all HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.570. HrChildDaHonoscaCountChange

Base:

HR

Title:

Change in HR-level count of all HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDaHonoscaCount as New
  join hist.HrChildDaHonoscaCount as Old using (State)

13.2.571. HrChildDaHonoscaCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDaHonoscaCount as New
  join hist.HrChildDaHonoscaCount as Old using (State)
Rules:

13.2.572. HrChildDaMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.573. HrChildDaMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDaMhlsCompleted as New
  join hist.HrChildDaMhlsCompleted as Old using (State)

13.2.574. HrChildDaMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDaMhlsCompleted as New
  join hist.HrChildDaMhlsCompleted as Old using (State)

13.2.575. HrChildDaMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDaMhlsCompleted.Total, HrChildDaCodCount.Total, 3) as Rate
  from HrChildDaMhlsCompleted
  join HrChildDaCodCount using (State)

13.2.576. HrChildDaMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDaMhlsCompletionRate as New
  join hist.HrChildDaMhlsCompletionRate as Old using (State)
Rules:

13.2.577. HrChildDaMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.578. HrChildDaMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDaMhlsCount as New
  join hist.HrChildDaMhlsCount as Old using (State)

13.2.579. HrChildDaMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDaMhlsCount as New
  join hist.HrChildDaMhlsCount as Old using (State)
Rules:

13.2.580. HrChildDaSdqCompleted

Base:

HR

Title:

HR-level count of completed SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.581. HrChildDaSdqCompletedChange

Base:

HR

Title:

Change in HR-level count of completed SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDaSdqCompleted as New
  join hist.HrChildDaSdqCompleted as Old using (State)

13.2.582. HrChildDaSdqCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDaSdqCompleted as New
  join hist.HrChildDaSdqCompleted as Old using (State)

13.2.583. HrChildDaSdqCompletionRate

Base:

HR

Title:

HR-level completion rate of SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDaSdqCompleted.Total, HrChildDaCodCount.Total, 3) as Rate
  from HrChildDaSdqCompleted
  join HrChildDaCodCount using (State)

13.2.584. HrChildDaSdqCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDaSdqCompletionRate as New
  join hist.HrChildDaSdqCompletionRate as Old using (State)
Rules:

13.2.585. HrChildDaSdqCount

Base:

HR

Title:

HR-level count of all SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.586. HrChildDaSdqCountChange

Base:

HR

Title:

Change in HR-level count of all SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDaSdqCount as New
  join hist.HrChildDaSdqCount as Old using (State)

13.2.587. HrChildDaSdqCountGrowth

Base:

HR

Title:

Growth in HR-level count of all SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDaSdqCount as New
  join hist.HrChildDaSdqCount as Old using (State)
Rules:

13.2.588. HrChildDiCodCount

Base:

HR

Title:

HR-level count of collection occasions for Child age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.589. HrChildDiDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.590. HrChildDiDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDiDiagCompleted as New
  join hist.HrChildDiDiagCompleted as Old using (State)

13.2.591. HrChildDiDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDiDiagCompleted as New
  join hist.HrChildDiDiagCompleted as Old using (State)

13.2.592. HrChildDiDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDiDiagCompleted.Total, HrChildDiCodCount.Total, 3) as Rate
  from HrChildDiDiagCompleted
  join HrChildDiCodCount using (State)

13.2.593. HrChildDiDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDiDiagCompletionRate as New
  join hist.HrChildDiDiagCompletionRate as Old using (State)
Rules:

13.2.594. HrChildDiDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.595. HrChildDiDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDiDiagCount as New
  join hist.HrChildDiDiagCount as Old using (State)

13.2.596. HrChildDiDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDiDiagCount as New
  join hist.HrChildDiDiagCount as Old using (State)
Rules:

13.2.597. HrChildDiFihsCompleted

Base:

HR

Title:

HR-level count of completed FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.598. HrChildDiFihsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDiFihsCompleted as New
  join hist.HrChildDiFihsCompleted as Old using (State)

13.2.599. HrChildDiFihsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDiFihsCompleted as New
  join hist.HrChildDiFihsCompleted as Old using (State)

13.2.600. HrChildDiFihsCompletionRate

Base:

HR

Title:

HR-level completion rate of FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDiFihsCompleted.Total, HrChildDiCodCount.Total, 3) as Rate
  from HrChildDiFihsCompleted
  join HrChildDiCodCount using (State)

13.2.601. HrChildDiFihsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDiFihsCompletionRate as New
  join hist.HrChildDiFihsCompletionRate as Old using (State)
Rules:

13.2.602. HrChildDiFihsCount

Base:

HR

Title:

HR-level count of all FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.603. HrChildDiFihsCountChange

Base:

HR

Title:

Change in HR-level count of all FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDiFihsCount as New
  join hist.HrChildDiFihsCount as Old using (State)

13.2.604. HrChildDiFihsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDiFihsCount as New
  join hist.HrChildDiFihsCount as Old using (State)
Rules:

13.2.605. HrChildDiHonoscaCompleted

Base:

HR

Title:

HR-level count of completed HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.606. HrChildDiHonoscaCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDiHonoscaCompleted as New
  join hist.HrChildDiHonoscaCompleted as Old using (State)

13.2.607. HrChildDiHonoscaCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDiHonoscaCompleted as New
  join hist.HrChildDiHonoscaCompleted as Old using (State)

13.2.608. HrChildDiHonoscaCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDiHonoscaCompleted.Total, HrChildDiCodCount.Total, 3) as Rate
  from HrChildDiHonoscaCompleted
  join HrChildDiCodCount using (State)

13.2.609. HrChildDiHonoscaCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDiHonoscaCompletionRate as New
  join hist.HrChildDiHonoscaCompletionRate as Old using (State)
Rules:

13.2.610. HrChildDiHonoscaCount

Base:

HR

Title:

HR-level count of all HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.611. HrChildDiHonoscaCountChange

Base:

HR

Title:

Change in HR-level count of all HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDiHonoscaCount as New
  join hist.HrChildDiHonoscaCount as Old using (State)

13.2.612. HrChildDiHonoscaCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDiHonoscaCount as New
  join hist.HrChildDiHonoscaCount as Old using (State)
Rules:

13.2.613. HrChildDiMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.614. HrChildDiMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDiMhlsCompleted as New
  join hist.HrChildDiMhlsCompleted as Old using (State)

13.2.615. HrChildDiMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDiMhlsCompleted as New
  join hist.HrChildDiMhlsCompleted as Old using (State)

13.2.616. HrChildDiMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDiMhlsCompleted.Total, HrChildDiCodCount.Total, 3) as Rate
  from HrChildDiMhlsCompleted
  join HrChildDiCodCount using (State)

13.2.617. HrChildDiMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDiMhlsCompletionRate as New
  join hist.HrChildDiMhlsCompletionRate as Old using (State)
Rules:

13.2.618. HrChildDiMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.619. HrChildDiMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDiMhlsCount as New
  join hist.HrChildDiMhlsCount as Old using (State)

13.2.620. HrChildDiMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDiMhlsCount as New
  join hist.HrChildDiMhlsCount as Old using (State)
Rules:

13.2.621. HrChildDiSdqCompleted

Base:

HR

Title:

HR-level count of completed SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.622. HrChildDiSdqCompletedChange

Base:

HR

Title:

Change in HR-level count of completed SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDiSdqCompleted as New
  join hist.HrChildDiSdqCompleted as Old using (State)

13.2.623. HrChildDiSdqCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDiSdqCompleted as New
  join hist.HrChildDiSdqCompleted as Old using (State)

13.2.624. HrChildDiSdqCompletionRate

Base:

HR

Title:

HR-level completion rate of SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDiSdqCompleted.Total, HrChildDiCodCount.Total, 3) as Rate
  from HrChildDiSdqCompleted
  join HrChildDiCodCount using (State)

13.2.625. HrChildDiSdqCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDiSdqCompletionRate as New
  join hist.HrChildDiSdqCompletionRate as Old using (State)
Rules:

13.2.626. HrChildDiSdqCount

Base:

HR

Title:

HR-level count of all SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.627. HrChildDiSdqCountChange

Base:

HR

Title:

Change in HR-level count of all SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDiSdqCount as New
  join hist.HrChildDiSdqCount as Old using (State)

13.2.628. HrChildDiSdqCountGrowth

Base:

HR

Title:

Growth in HR-level count of all SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDiSdqCount as New
  join hist.HrChildDiSdqCount as Old using (State)
Rules:

13.2.629. HrChildDrCodCount

Base:

HR

Title:

HR-level count of collection occasions for Child age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.630. HrChildDrDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.631. HrChildDrDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDrDiagCompleted as New
  join hist.HrChildDrDiagCompleted as Old using (State)

13.2.632. HrChildDrDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDrDiagCompleted as New
  join hist.HrChildDrDiagCompleted as Old using (State)

13.2.633. HrChildDrDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDrDiagCompleted.Total, HrChildDrCodCount.Total, 3) as Rate
  from HrChildDrDiagCompleted
  join HrChildDrCodCount using (State)

13.2.634. HrChildDrDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDrDiagCompletionRate as New
  join hist.HrChildDrDiagCompletionRate as Old using (State)
Rules:

13.2.635. HrChildDrDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.636. HrChildDrDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDrDiagCount as New
  join hist.HrChildDrDiagCount as Old using (State)

13.2.637. HrChildDrDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDrDiagCount as New
  join hist.HrChildDrDiagCount as Old using (State)
Rules:

13.2.638. HrChildDrFihsCompleted

Base:

HR

Title:

HR-level count of completed FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.639. HrChildDrFihsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDrFihsCompleted as New
  join hist.HrChildDrFihsCompleted as Old using (State)

13.2.640. HrChildDrFihsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDrFihsCompleted as New
  join hist.HrChildDrFihsCompleted as Old using (State)

13.2.641. HrChildDrFihsCompletionRate

Base:

HR

Title:

HR-level completion rate of FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDrFihsCompleted.Total, HrChildDrCodCount.Total, 3) as Rate
  from HrChildDrFihsCompleted
  join HrChildDrCodCount using (State)

13.2.642. HrChildDrFihsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDrFihsCompletionRate as New
  join hist.HrChildDrFihsCompletionRate as Old using (State)
Rules:

13.2.643. HrChildDrFihsCount

Base:

HR

Title:

HR-level count of all FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.644. HrChildDrFihsCountChange

Base:

HR

Title:

Change in HR-level count of all FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDrFihsCount as New
  join hist.HrChildDrFihsCount as Old using (State)

13.2.645. HrChildDrFihsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDrFihsCount as New
  join hist.HrChildDrFihsCount as Old using (State)
Rules:

13.2.646. HrChildDrHonoscaCompleted

Base:

HR

Title:

HR-level count of completed HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.647. HrChildDrHonoscaCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDrHonoscaCompleted as New
  join hist.HrChildDrHonoscaCompleted as Old using (State)

13.2.648. HrChildDrHonoscaCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDrHonoscaCompleted as New
  join hist.HrChildDrHonoscaCompleted as Old using (State)

13.2.649. HrChildDrHonoscaCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDrHonoscaCompleted.Total, HrChildDrCodCount.Total, 3) as Rate
  from HrChildDrHonoscaCompleted
  join HrChildDrCodCount using (State)

13.2.650. HrChildDrHonoscaCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDrHonoscaCompletionRate as New
  join hist.HrChildDrHonoscaCompletionRate as Old using (State)
Rules:

13.2.651. HrChildDrHonoscaCount

Base:

HR

Title:

HR-level count of all HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.652. HrChildDrHonoscaCountChange

Base:

HR

Title:

Change in HR-level count of all HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDrHonoscaCount as New
  join hist.HrChildDrHonoscaCount as Old using (State)

13.2.653. HrChildDrHonoscaCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDrHonoscaCount as New
  join hist.HrChildDrHonoscaCount as Old using (State)
Rules:

13.2.654. HrChildDrMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.655. HrChildDrMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDrMhlsCompleted as New
  join hist.HrChildDrMhlsCompleted as Old using (State)

13.2.656. HrChildDrMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDrMhlsCompleted as New
  join hist.HrChildDrMhlsCompleted as Old using (State)

13.2.657. HrChildDrMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDrMhlsCompleted.Total, HrChildDrCodCount.Total, 3) as Rate
  from HrChildDrMhlsCompleted
  join HrChildDrCodCount using (State)

13.2.658. HrChildDrMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDrMhlsCompletionRate as New
  join hist.HrChildDrMhlsCompletionRate as Old using (State)
Rules:

13.2.659. HrChildDrMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.660. HrChildDrMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDrMhlsCount as New
  join hist.HrChildDrMhlsCount as Old using (State)

13.2.661. HrChildDrMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDrMhlsCount as New
  join hist.HrChildDrMhlsCount as Old using (State)
Rules:

13.2.662. HrChildDrSdqCompleted

Base:

HR

Title:

HR-level count of completed SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.663. HrChildDrSdqCompletedChange

Base:

HR

Title:

Change in HR-level count of completed SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDrSdqCompleted as New
  join hist.HrChildDrSdqCompleted as Old using (State)

13.2.664. HrChildDrSdqCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDrSdqCompleted as New
  join hist.HrChildDrSdqCompleted as Old using (State)

13.2.665. HrChildDrSdqCompletionRate

Base:

HR

Title:

HR-level completion rate of SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrChildDrSdqCompleted.Total, HrChildDrCodCount.Total, 3) as Rate
  from HrChildDrSdqCompleted
  join HrChildDrCodCount using (State)

13.2.666. HrChildDrSdqCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildDrSdqCompletionRate as New
  join hist.HrChildDrSdqCompletionRate as Old using (State)
Rules:

13.2.667. HrChildDrSdqCount

Base:

HR

Title:

HR-level count of all SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.668. HrChildDrSdqCountChange

Base:

HR

Title:

Change in HR-level count of all SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildDrSdqCount as New
  join hist.HrChildDrSdqCount as Old using (State)

13.2.669. HrChildDrSdqCountGrowth

Base:

HR

Title:

Growth in HR-level count of all SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildDrSdqCount as New
  join hist.HrChildDrSdqCount as Old using (State)
Rules:

13.2.670. HrChildRaCgasCompleted

Base:

HR

Title:

HR-level count of completed CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.671. HrChildRaCgasCompletedChange

Base:

HR

Title:

Change in HR-level count of completed CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaCgasCompleted as New
  join hist.HrChildRaCgasCompleted as Old using (State)

13.2.672. HrChildRaCgasCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaCgasCompleted as New
  join hist.HrChildRaCgasCompleted as Old using (State)

13.2.673. HrChildRaCgasCompletionRate

Base:

HR

Title:

HR-level completion rate of CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrChildRaCgasCompleted.Total, HrChildRaCodCount.Total, 3) as Rate
  from HrChildRaCgasCompleted
  join HrChildRaCodCount using (State)

13.2.674. HrChildRaCgasCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRaCgasCompletionRate as New
  join hist.HrChildRaCgasCompletionRate as Old using (State)
Rules:

13.2.675. HrChildRaCgasCount

Base:

HR

Title:

HR-level count of all CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.676. HrChildRaCgasCountChange

Base:

HR

Title:

Change in HR-level count of all CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaCgasCount as New
  join hist.HrChildRaCgasCount as Old using (State)

13.2.677. HrChildRaCgasCountGrowth

Base:

HR

Title:

Growth in HR-level count of all CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaCgasCount as New
  join hist.HrChildRaCgasCount as Old using (State)
Rules:

13.2.678. HrChildRaCodCount

Base:

HR

Title:

HR-level count of collection occasions for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.679. HrChildRaDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.680. HrChildRaDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaDiagCompleted as New
  join hist.HrChildRaDiagCompleted as Old using (State)

13.2.681. HrChildRaDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaDiagCompleted as New
  join hist.HrChildRaDiagCompleted as Old using (State)

13.2.682. HrChildRaDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrChildRaDiagCompleted.Total, HrChildRaCodCount.Total, 3) as Rate
  from HrChildRaDiagCompleted
  join HrChildRaCodCount using (State)

13.2.683. HrChildRaDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRaDiagCompletionRate as New
  join hist.HrChildRaDiagCompletionRate as Old using (State)
Rules:

13.2.684. HrChildRaDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.685. HrChildRaDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaDiagCount as New
  join hist.HrChildRaDiagCount as Old using (State)

13.2.686. HrChildRaDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaDiagCount as New
  join hist.HrChildRaDiagCount as Old using (State)
Rules:

13.2.687. HrChildRaFihsCompleted

Base:

HR

Title:

HR-level count of completed FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.688. HrChildRaFihsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaFihsCompleted as New
  join hist.HrChildRaFihsCompleted as Old using (State)

13.2.689. HrChildRaFihsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaFihsCompleted as New
  join hist.HrChildRaFihsCompleted as Old using (State)

13.2.690. HrChildRaFihsCompletionRate

Base:

HR

Title:

HR-level completion rate of FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrChildRaFihsCompleted.Total, HrChildRaCodCount.Total, 3) as Rate
  from HrChildRaFihsCompleted
  join HrChildRaCodCount using (State)

13.2.691. HrChildRaFihsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRaFihsCompletionRate as New
  join hist.HrChildRaFihsCompletionRate as Old using (State)
Rules:

13.2.692. HrChildRaFihsCount

Base:

HR

Title:

HR-level count of all FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.693. HrChildRaFihsCountChange

Base:

HR

Title:

Change in HR-level count of all FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaFihsCount as New
  join hist.HrChildRaFihsCount as Old using (State)

13.2.694. HrChildRaFihsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaFihsCount as New
  join hist.HrChildRaFihsCount as Old using (State)
Rules:

13.2.695. HrChildRaHonoscaCompleted

Base:

HR

Title:

HR-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.696. HrChildRaHonoscaCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaHonoscaCompleted as New
  join hist.HrChildRaHonoscaCompleted as Old using (State)

13.2.697. HrChildRaHonoscaCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaHonoscaCompleted as New
  join hist.HrChildRaHonoscaCompleted as Old using (State)

13.2.698. HrChildRaHonoscaCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrChildRaHonoscaCompleted.Total, HrChildRaCodCount.Total, 3) as Rate
  from HrChildRaHonoscaCompleted
  join HrChildRaCodCount using (State)

13.2.699. HrChildRaHonoscaCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRaHonoscaCompletionRate as New
  join hist.HrChildRaHonoscaCompletionRate as Old using (State)
Rules:

13.2.700. HrChildRaHonoscaCount

Base:

HR

Title:

HR-level count of all HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.701. HrChildRaHonoscaCountChange

Base:

HR

Title:

Change in HR-level count of all HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaHonoscaCount as New
  join hist.HrChildRaHonoscaCount as Old using (State)

13.2.702. HrChildRaHonoscaCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaHonoscaCount as New
  join hist.HrChildRaHonoscaCount as Old using (State)
Rules:

13.2.703. HrChildRaMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.704. HrChildRaMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaMhlsCompleted as New
  join hist.HrChildRaMhlsCompleted as Old using (State)

13.2.705. HrChildRaMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaMhlsCompleted as New
  join hist.HrChildRaMhlsCompleted as Old using (State)

13.2.706. HrChildRaMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrChildRaMhlsCompleted.Total, HrChildRaCodCount.Total, 3) as Rate
  from HrChildRaMhlsCompleted
  join HrChildRaCodCount using (State)

13.2.707. HrChildRaMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRaMhlsCompletionRate as New
  join hist.HrChildRaMhlsCompletionRate as Old using (State)
Rules:

13.2.708. HrChildRaMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.709. HrChildRaMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaMhlsCount as New
  join hist.HrChildRaMhlsCount as Old using (State)

13.2.710. HrChildRaMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaMhlsCount as New
  join hist.HrChildRaMhlsCount as Old using (State)
Rules:

13.2.711. HrChildRaSdqCompleted

Base:

HR

Title:

HR-level count of completed SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.712. HrChildRaSdqCompletedChange

Base:

HR

Title:

Change in HR-level count of completed SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaSdqCompleted as New
  join hist.HrChildRaSdqCompleted as Old using (State)

13.2.713. HrChildRaSdqCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaSdqCompleted as New
  join hist.HrChildRaSdqCompleted as Old using (State)

13.2.714. HrChildRaSdqCompletionRate

Base:

HR

Title:

HR-level completion rate of SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrChildRaSdqCompleted.Total, HrChildRaCodCount.Total, 3) as Rate
  from HrChildRaSdqCompleted
  join HrChildRaCodCount using (State)

13.2.715. HrChildRaSdqCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRaSdqCompletionRate as New
  join hist.HrChildRaSdqCompletionRate as Old using (State)
Rules:

13.2.716. HrChildRaSdqCount

Base:

HR

Title:

HR-level count of all SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.717. HrChildRaSdqCountChange

Base:

HR

Title:

Change in HR-level count of all SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRaSdqCount as New
  join hist.HrChildRaSdqCount as Old using (State)

13.2.718. HrChildRaSdqCountGrowth

Base:

HR

Title:

Growth in HR-level count of all SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRaSdqCount as New
  join hist.HrChildRaSdqCount as Old using (State)
Rules:

13.2.719. HrChildRiCgasCompleted

Base:

HR

Title:

HR-level count of completed CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.720. HrChildRiCgasCompletedChange

Base:

HR

Title:

Change in HR-level count of completed CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiCgasCompleted as New
  join hist.HrChildRiCgasCompleted as Old using (State)

13.2.721. HrChildRiCgasCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiCgasCompleted as New
  join hist.HrChildRiCgasCompleted as Old using (State)

13.2.722. HrChildRiCgasCompletionRate

Base:

HR

Title:

HR-level completion rate of CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrChildRiCgasCompleted.Total, HrChildRiCodCount.Total, 3) as Rate
  from HrChildRiCgasCompleted
  join HrChildRiCodCount using (State)

13.2.723. HrChildRiCgasCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRiCgasCompletionRate as New
  join hist.HrChildRiCgasCompletionRate as Old using (State)
Rules:

13.2.724. HrChildRiCgasCount

Base:

HR

Title:

HR-level count of all CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.725. HrChildRiCgasCountChange

Base:

HR

Title:

Change in HR-level count of all CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiCgasCount as New
  join hist.HrChildRiCgasCount as Old using (State)

13.2.726. HrChildRiCgasCountGrowth

Base:

HR

Title:

Growth in HR-level count of all CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiCgasCount as New
  join hist.HrChildRiCgasCount as Old using (State)
Rules:

13.2.727. HrChildRiCodCount

Base:

HR

Title:

HR-level count of collection occasions for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.728. HrChildRiDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.729. HrChildRiDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiDiagCompleted as New
  join hist.HrChildRiDiagCompleted as Old using (State)

13.2.730. HrChildRiDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiDiagCompleted as New
  join hist.HrChildRiDiagCompleted as Old using (State)

13.2.731. HrChildRiDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrChildRiDiagCompleted.Total, HrChildRiCodCount.Total, 3) as Rate
  from HrChildRiDiagCompleted
  join HrChildRiCodCount using (State)

13.2.732. HrChildRiDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRiDiagCompletionRate as New
  join hist.HrChildRiDiagCompletionRate as Old using (State)
Rules:

13.2.733. HrChildRiDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.734. HrChildRiDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiDiagCount as New
  join hist.HrChildRiDiagCount as Old using (State)

13.2.735. HrChildRiDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiDiagCount as New
  join hist.HrChildRiDiagCount as Old using (State)
Rules:

13.2.736. HrChildRiFihsCompleted

Base:

HR

Title:

HR-level count of completed FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.737. HrChildRiFihsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiFihsCompleted as New
  join hist.HrChildRiFihsCompleted as Old using (State)

13.2.738. HrChildRiFihsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiFihsCompleted as New
  join hist.HrChildRiFihsCompleted as Old using (State)

13.2.739. HrChildRiFihsCompletionRate

Base:

HR

Title:

HR-level completion rate of FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrChildRiFihsCompleted.Total, HrChildRiCodCount.Total, 3) as Rate
  from HrChildRiFihsCompleted
  join HrChildRiCodCount using (State)

13.2.740. HrChildRiFihsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRiFihsCompletionRate as New
  join hist.HrChildRiFihsCompletionRate as Old using (State)
Rules:

13.2.741. HrChildRiFihsCount

Base:

HR

Title:

HR-level count of all FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.742. HrChildRiFihsCountChange

Base:

HR

Title:

Change in HR-level count of all FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiFihsCount as New
  join hist.HrChildRiFihsCount as Old using (State)

13.2.743. HrChildRiFihsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiFihsCount as New
  join hist.HrChildRiFihsCount as Old using (State)
Rules:

13.2.744. HrChildRiHonoscaCompleted

Base:

HR

Title:

HR-level count of completed HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.745. HrChildRiHonoscaCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiHonoscaCompleted as New
  join hist.HrChildRiHonoscaCompleted as Old using (State)

13.2.746. HrChildRiHonoscaCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiHonoscaCompleted as New
  join hist.HrChildRiHonoscaCompleted as Old using (State)

13.2.747. HrChildRiHonoscaCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrChildRiHonoscaCompleted.Total, HrChildRiCodCount.Total, 3) as Rate
  from HrChildRiHonoscaCompleted
  join HrChildRiCodCount using (State)

13.2.748. HrChildRiHonoscaCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRiHonoscaCompletionRate as New
  join hist.HrChildRiHonoscaCompletionRate as Old using (State)
Rules:

13.2.749. HrChildRiHonoscaCount

Base:

HR

Title:

HR-level count of all HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.750. HrChildRiHonoscaCountChange

Base:

HR

Title:

Change in HR-level count of all HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiHonoscaCount as New
  join hist.HrChildRiHonoscaCount as Old using (State)

13.2.751. HrChildRiHonoscaCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiHonoscaCount as New
  join hist.HrChildRiHonoscaCount as Old using (State)
Rules:

13.2.752. HrChildRiMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.753. HrChildRiMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiMhlsCompleted as New
  join hist.HrChildRiMhlsCompleted as Old using (State)

13.2.754. HrChildRiMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiMhlsCompleted as New
  join hist.HrChildRiMhlsCompleted as Old using (State)

13.2.755. HrChildRiMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrChildRiMhlsCompleted.Total, HrChildRiCodCount.Total, 3) as Rate
  from HrChildRiMhlsCompleted
  join HrChildRiCodCount using (State)

13.2.756. HrChildRiMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRiMhlsCompletionRate as New
  join hist.HrChildRiMhlsCompletionRate as Old using (State)
Rules:

13.2.757. HrChildRiMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.758. HrChildRiMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiMhlsCount as New
  join hist.HrChildRiMhlsCount as Old using (State)

13.2.759. HrChildRiMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiMhlsCount as New
  join hist.HrChildRiMhlsCount as Old using (State)
Rules:

13.2.760. HrChildRiSdqCompleted

Base:

HR

Title:

HR-level count of completed SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.761. HrChildRiSdqCompletedChange

Base:

HR

Title:

Change in HR-level count of completed SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiSdqCompleted as New
  join hist.HrChildRiSdqCompleted as Old using (State)

13.2.762. HrChildRiSdqCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiSdqCompleted as New
  join hist.HrChildRiSdqCompleted as Old using (State)

13.2.763. HrChildRiSdqCompletionRate

Base:

HR

Title:

HR-level completion rate of SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrChildRiSdqCompleted.Total, HrChildRiCodCount.Total, 3) as Rate
  from HrChildRiSdqCompleted
  join HrChildRiCodCount using (State)

13.2.764. HrChildRiSdqCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRiSdqCompletionRate as New
  join hist.HrChildRiSdqCompletionRate as Old using (State)
Rules:

13.2.765. HrChildRiSdqCount

Base:

HR

Title:

HR-level count of all SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.766. HrChildRiSdqCountChange

Base:

HR

Title:

Change in HR-level count of all SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRiSdqCount as New
  join hist.HrChildRiSdqCount as Old using (State)

13.2.767. HrChildRiSdqCountGrowth

Base:

HR

Title:

Growth in HR-level count of all SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRiSdqCount as New
  join hist.HrChildRiSdqCount as Old using (State)
Rules:

13.2.768. HrChildRrCgasCompleted

Base:

HR

Title:

HR-level count of completed CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.769. HrChildRrCgasCompletedChange

Base:

HR

Title:

Change in HR-level count of completed CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrCgasCompleted as New
  join hist.HrChildRrCgasCompleted as Old using (State)

13.2.770. HrChildRrCgasCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrCgasCompleted as New
  join hist.HrChildRrCgasCompleted as Old using (State)

13.2.771. HrChildRrCgasCompletionRate

Base:

HR

Title:

HR-level completion rate of CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrChildRrCgasCompleted.Total, HrChildRrCodCount.Total, 3) as Rate
  from HrChildRrCgasCompleted
  join HrChildRrCodCount using (State)

13.2.772. HrChildRrCgasCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRrCgasCompletionRate as New
  join hist.HrChildRrCgasCompletionRate as Old using (State)
Rules:

13.2.773. HrChildRrCgasCount

Base:

HR

Title:

HR-level count of all CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.774. HrChildRrCgasCountChange

Base:

HR

Title:

Change in HR-level count of all CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrCgasCount as New
  join hist.HrChildRrCgasCount as Old using (State)

13.2.775. HrChildRrCgasCountGrowth

Base:

HR

Title:

Growth in HR-level count of all CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrCgasCount as New
  join hist.HrChildRrCgasCount as Old using (State)
Rules:

13.2.776. HrChildRrCodCount

Base:

HR

Title:

HR-level count of collection occasions for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.777. HrChildRrDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.778. HrChildRrDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrDiagCompleted as New
  join hist.HrChildRrDiagCompleted as Old using (State)

13.2.779. HrChildRrDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrDiagCompleted as New
  join hist.HrChildRrDiagCompleted as Old using (State)

13.2.780. HrChildRrDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrChildRrDiagCompleted.Total, HrChildRrCodCount.Total, 3) as Rate
  from HrChildRrDiagCompleted
  join HrChildRrCodCount using (State)

13.2.781. HrChildRrDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRrDiagCompletionRate as New
  join hist.HrChildRrDiagCompletionRate as Old using (State)
Rules:

13.2.782. HrChildRrDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.783. HrChildRrDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrDiagCount as New
  join hist.HrChildRrDiagCount as Old using (State)

13.2.784. HrChildRrDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrDiagCount as New
  join hist.HrChildRrDiagCount as Old using (State)
Rules:

13.2.785. HrChildRrFihsCompleted

Base:

HR

Title:

HR-level count of completed FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.786. HrChildRrFihsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrFihsCompleted as New
  join hist.HrChildRrFihsCompleted as Old using (State)

13.2.787. HrChildRrFihsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrFihsCompleted as New
  join hist.HrChildRrFihsCompleted as Old using (State)

13.2.788. HrChildRrFihsCompletionRate

Base:

HR

Title:

HR-level completion rate of FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrChildRrFihsCompleted.Total, HrChildRrCodCount.Total, 3) as Rate
  from HrChildRrFihsCompleted
  join HrChildRrCodCount using (State)

13.2.789. HrChildRrFihsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRrFihsCompletionRate as New
  join hist.HrChildRrFihsCompletionRate as Old using (State)
Rules:

13.2.790. HrChildRrFihsCount

Base:

HR

Title:

HR-level count of all FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.791. HrChildRrFihsCountChange

Base:

HR

Title:

Change in HR-level count of all FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrFihsCount as New
  join hist.HrChildRrFihsCount as Old using (State)

13.2.792. HrChildRrFihsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrFihsCount as New
  join hist.HrChildRrFihsCount as Old using (State)
Rules:

13.2.793. HrChildRrHonoscaCompleted

Base:

HR

Title:

HR-level count of completed HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.794. HrChildRrHonoscaCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrHonoscaCompleted as New
  join hist.HrChildRrHonoscaCompleted as Old using (State)

13.2.795. HrChildRrHonoscaCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrHonoscaCompleted as New
  join hist.HrChildRrHonoscaCompleted as Old using (State)

13.2.796. HrChildRrHonoscaCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrChildRrHonoscaCompleted.Total, HrChildRrCodCount.Total, 3) as Rate
  from HrChildRrHonoscaCompleted
  join HrChildRrCodCount using (State)

13.2.797. HrChildRrHonoscaCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRrHonoscaCompletionRate as New
  join hist.HrChildRrHonoscaCompletionRate as Old using (State)
Rules:

13.2.798. HrChildRrHonoscaCount

Base:

HR

Title:

HR-level count of all HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.799. HrChildRrHonoscaCountChange

Base:

HR

Title:

Change in HR-level count of all HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrHonoscaCount as New
  join hist.HrChildRrHonoscaCount as Old using (State)

13.2.800. HrChildRrHonoscaCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrHonoscaCount as New
  join hist.HrChildRrHonoscaCount as Old using (State)
Rules:

13.2.801. HrChildRrMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.802. HrChildRrMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrMhlsCompleted as New
  join hist.HrChildRrMhlsCompleted as Old using (State)

13.2.803. HrChildRrMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrMhlsCompleted as New
  join hist.HrChildRrMhlsCompleted as Old using (State)

13.2.804. HrChildRrMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrChildRrMhlsCompleted.Total, HrChildRrCodCount.Total, 3) as Rate
  from HrChildRrMhlsCompleted
  join HrChildRrCodCount using (State)

13.2.805. HrChildRrMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRrMhlsCompletionRate as New
  join hist.HrChildRrMhlsCompletionRate as Old using (State)
Rules:

13.2.806. HrChildRrMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.807. HrChildRrMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrMhlsCount as New
  join hist.HrChildRrMhlsCount as Old using (State)

13.2.808. HrChildRrMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrMhlsCount as New
  join hist.HrChildRrMhlsCount as Old using (State)
Rules:

13.2.809. HrChildRrSdqCompleted

Base:

HR

Title:

HR-level count of completed SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.810. HrChildRrSdqCompletedChange

Base:

HR

Title:

Change in HR-level count of completed SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrSdqCompleted as New
  join hist.HrChildRrSdqCompleted as Old using (State)

13.2.811. HrChildRrSdqCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrSdqCompleted as New
  join hist.HrChildRrSdqCompleted as Old using (State)

13.2.812. HrChildRrSdqCompletionRate

Base:

HR

Title:

HR-level completion rate of SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrChildRrSdqCompleted.Total, HrChildRrCodCount.Total, 3) as Rate
  from HrChildRrSdqCompleted
  join HrChildRrCodCount using (State)

13.2.813. HrChildRrSdqCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrChildRrSdqCompletionRate as New
  join hist.HrChildRrSdqCompletionRate as Old using (State)
Rules:

13.2.814. HrChildRrSdqCount

Base:

HR

Title:

HR-level count of all SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.815. HrChildRrSdqCountChange

Base:

HR

Title:

Change in HR-level count of all SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrChildRrSdqCount as New
  join hist.HrChildRrSdqCount as Old using (State)

13.2.816. HrChildRrSdqCountGrowth

Base:

HR

Title:

Growth in HR-level count of all SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrChildRrSdqCount as New
  join hist.HrChildRrSdqCount as Old using (State)
Rules:

13.2.817. HrOlderAaBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.818. HrOlderAaBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaBasis32Completed as New
  join hist.HrOlderAaBasis32Completed as Old using (State)

13.2.819. HrOlderAaBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaBasis32Completed as New
  join hist.HrOlderAaBasis32Completed as Old using (State)

13.2.820. HrOlderAaBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderAaBasis32Completed.Total, HrOlderAaCodCount.Total, 3) as Rate
  from HrOlderAaBasis32Completed
  join HrOlderAaCodCount using (State)

13.2.821. HrOlderAaBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderAaBasis32CompletionRate as New
  join hist.HrOlderAaBasis32CompletionRate as Old using (State)
Rules:

13.2.822. HrOlderAaBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.823. HrOlderAaBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaBasis32Count as New
  join hist.HrOlderAaBasis32Count as Old using (State)

13.2.824. HrOlderAaBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaBasis32Count as New
  join hist.HrOlderAaBasis32Count as Old using (State)
Rules:

13.2.825. HrOlderAaCodCount

Base:

HR

Title:

HR-level count of collection occasions for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.826. HrOlderAaHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.827. HrOlderAaHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaHonosCompleted as New
  join hist.HrOlderAaHonosCompleted as Old using (State)

13.2.828. HrOlderAaHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaHonosCompleted as New
  join hist.HrOlderAaHonosCompleted as Old using (State)

13.2.829. HrOlderAaHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderAaHonosCompleted.Total, HrOlderAaCodCount.Total, 3) as Rate
  from HrOlderAaHonosCompleted
  join HrOlderAaCodCount using (State)

13.2.830. HrOlderAaHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderAaHonosCompletionRate as New
  join hist.HrOlderAaHonosCompletionRate as Old using (State)
Rules:

13.2.831. HrOlderAaHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.832. HrOlderAaHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaHonosCount as New
  join hist.HrOlderAaHonosCount as Old using (State)

13.2.833. HrOlderAaHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaHonosCount as New
  join hist.HrOlderAaHonosCount as Old using (State)
Rules:

13.2.834. HrOlderAaK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.835. HrOlderAaK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaK10l3dCompleted as New
  join hist.HrOlderAaK10l3dCompleted as Old using (State)

13.2.836. HrOlderAaK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaK10l3dCompleted as New
  join hist.HrOlderAaK10l3dCompleted as Old using (State)

13.2.837. HrOlderAaK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderAaK10l3dCompleted.Total, HrOlderAaCodCount.Total, 3) as Rate
  from HrOlderAaK10l3dCompleted
  join HrOlderAaCodCount using (State)

13.2.838. HrOlderAaK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderAaK10l3dCompletionRate as New
  join hist.HrOlderAaK10l3dCompletionRate as Old using (State)
Rules:

13.2.839. HrOlderAaK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.840. HrOlderAaK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaK10l3dCount as New
  join hist.HrOlderAaK10l3dCount as Old using (State)

13.2.841. HrOlderAaK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaK10l3dCount as New
  join hist.HrOlderAaK10l3dCount as Old using (State)
Rules:

13.2.842. HrOlderAaK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.843. HrOlderAaK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaK10lmCompleted as New
  join hist.HrOlderAaK10lmCompleted as Old using (State)

13.2.844. HrOlderAaK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaK10lmCompleted as New
  join hist.HrOlderAaK10lmCompleted as Old using (State)

13.2.845. HrOlderAaK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderAaK10lmCompleted.Total, HrOlderAaCodCount.Total, 3) as Rate
  from HrOlderAaK10lmCompleted
  join HrOlderAaCodCount using (State)

13.2.846. HrOlderAaK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderAaK10lmCompletionRate as New
  join hist.HrOlderAaK10lmCompletionRate as Old using (State)
Rules:

13.2.847. HrOlderAaK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.848. HrOlderAaK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaK10lmCount as New
  join hist.HrOlderAaK10lmCount as Old using (State)

13.2.849. HrOlderAaK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaK10lmCount as New
  join hist.HrOlderAaK10lmCount as Old using (State)
Rules:

13.2.850. HrOlderAaMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.851. HrOlderAaMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaMhi38Completed as New
  join hist.HrOlderAaMhi38Completed as Old using (State)

13.2.852. HrOlderAaMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaMhi38Completed as New
  join hist.HrOlderAaMhi38Completed as Old using (State)

13.2.853. HrOlderAaMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderAaMhi38Completed.Total, HrOlderAaCodCount.Total, 3) as Rate
  from HrOlderAaMhi38Completed
  join HrOlderAaCodCount using (State)

13.2.854. HrOlderAaMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderAaMhi38CompletionRate as New
  join hist.HrOlderAaMhi38CompletionRate as Old using (State)
Rules:

13.2.855. HrOlderAaMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.856. HrOlderAaMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaMhi38Count as New
  join hist.HrOlderAaMhi38Count as Old using (State)

13.2.857. HrOlderAaMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaMhi38Count as New
  join hist.HrOlderAaMhi38Count as Old using (State)
Rules:

13.2.858. HrOlderAaPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.859. HrOlderAaPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaPocCompleted as New
  join hist.HrOlderAaPocCompleted as Old using (State)

13.2.860. HrOlderAaPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaPocCompleted as New
  join hist.HrOlderAaPocCompleted as Old using (State)

13.2.861. HrOlderAaPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderAaPocCompleted.Total, HrOlderAaCodCount.Total, 3) as Rate
  from HrOlderAaPocCompleted
  join HrOlderAaCodCount using (State)

13.2.862. HrOlderAaPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderAaPocCompletionRate as New
  join hist.HrOlderAaPocCompletionRate as Old using (State)
Rules:

13.2.863. HrOlderAaPocCount

Base:

HR

Title:

HR-level count of all POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.864. HrOlderAaPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAaPocCount as New
  join hist.HrOlderAaPocCount as Old using (State)

13.2.865. HrOlderAaPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAaPocCount as New
  join hist.HrOlderAaPocCount as Old using (State)
Rules:

13.2.866. HrOlderAiCodCount

Base:

HR

Title:

HR-level count of collection occasions for Older age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.867. HrOlderAiHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.868. HrOlderAiHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAiHonosCompleted as New
  join hist.HrOlderAiHonosCompleted as Old using (State)

13.2.869. HrOlderAiHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAiHonosCompleted as New
  join hist.HrOlderAiHonosCompleted as Old using (State)

13.2.870. HrOlderAiHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderAiHonosCompleted.Total, HrOlderAiCodCount.Total, 3) as Rate
  from HrOlderAiHonosCompleted
  join HrOlderAiCodCount using (State)

13.2.871. HrOlderAiHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderAiHonosCompletionRate as New
  join hist.HrOlderAiHonosCompletionRate as Old using (State)
Rules:

13.2.872. HrOlderAiHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.873. HrOlderAiHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAiHonosCount as New
  join hist.HrOlderAiHonosCount as Old using (State)

13.2.874. HrOlderAiHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAiHonosCount as New
  join hist.HrOlderAiHonosCount as Old using (State)
Rules:

13.2.875. HrOlderAiPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.876. HrOlderAiPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAiPocCompleted as New
  join hist.HrOlderAiPocCompleted as Old using (State)

13.2.877. HrOlderAiPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAiPocCompleted as New
  join hist.HrOlderAiPocCompleted as Old using (State)

13.2.878. HrOlderAiPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderAiPocCompleted.Total, HrOlderAiCodCount.Total, 3) as Rate
  from HrOlderAiPocCompleted
  join HrOlderAiCodCount using (State)

13.2.879. HrOlderAiPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderAiPocCompletionRate as New
  join hist.HrOlderAiPocCompletionRate as Old using (State)
Rules:

13.2.880. HrOlderAiPocCount

Base:

HR

Title:

HR-level count of all POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.881. HrOlderAiPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAiPocCount as New
  join hist.HrOlderAiPocCount as Old using (State)

13.2.882. HrOlderAiPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAiPocCount as New
  join hist.HrOlderAiPocCount as Old using (State)
Rules:

13.2.883. HrOlderAiRugadlCompleted

Base:

HR

Title:

HR-level count of completed RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.884. HrOlderAiRugadlCompletedChange

Base:

HR

Title:

Change in HR-level count of completed RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAiRugadlCompleted as New
  join hist.HrOlderAiRugadlCompleted as Old using (State)

13.2.885. HrOlderAiRugadlCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAiRugadlCompleted as New
  join hist.HrOlderAiRugadlCompleted as Old using (State)

13.2.886. HrOlderAiRugadlCompletionRate

Base:

HR

Title:

HR-level completion rate of RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderAiRugadlCompleted.Total, HrOlderAiCodCount.Total, 3) as Rate
  from HrOlderAiRugadlCompleted
  join HrOlderAiCodCount using (State)

13.2.887. HrOlderAiRugadlCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderAiRugadlCompletionRate as New
  join hist.HrOlderAiRugadlCompletionRate as Old using (State)
Rules:

13.2.888. HrOlderAiRugadlCount

Base:

HR

Title:

HR-level count of all RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.889. HrOlderAiRugadlCountChange

Base:

HR

Title:

Change in HR-level count of all RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderAiRugadlCount as New
  join hist.HrOlderAiRugadlCount as Old using (State)

13.2.890. HrOlderAiRugadlCountGrowth

Base:

HR

Title:

Growth in HR-level count of all RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderAiRugadlCount as New
  join hist.HrOlderAiRugadlCount as Old using (State)
Rules:

13.2.891. HrOlderArBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.892. HrOlderArBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArBasis32Completed as New
  join hist.HrOlderArBasis32Completed as Old using (State)

13.2.893. HrOlderArBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArBasis32Completed as New
  join hist.HrOlderArBasis32Completed as Old using (State)

13.2.894. HrOlderArBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderArBasis32Completed.Total, HrOlderArCodCount.Total, 3) as Rate
  from HrOlderArBasis32Completed
  join HrOlderArCodCount using (State)

13.2.895. HrOlderArBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderArBasis32CompletionRate as New
  join hist.HrOlderArBasis32CompletionRate as Old using (State)
Rules:

13.2.896. HrOlderArBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.897. HrOlderArBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArBasis32Count as New
  join hist.HrOlderArBasis32Count as Old using (State)

13.2.898. HrOlderArBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArBasis32Count as New
  join hist.HrOlderArBasis32Count as Old using (State)
Rules:

13.2.899. HrOlderArCodCount

Base:

HR

Title:

HR-level count of collection occasions for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.900. HrOlderArHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.901. HrOlderArHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArHonosCompleted as New
  join hist.HrOlderArHonosCompleted as Old using (State)

13.2.902. HrOlderArHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArHonosCompleted as New
  join hist.HrOlderArHonosCompleted as Old using (State)

13.2.903. HrOlderArHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderArHonosCompleted.Total, HrOlderArCodCount.Total, 3) as Rate
  from HrOlderArHonosCompleted
  join HrOlderArCodCount using (State)

13.2.904. HrOlderArHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderArHonosCompletionRate as New
  join hist.HrOlderArHonosCompletionRate as Old using (State)
Rules:

13.2.905. HrOlderArHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.906. HrOlderArHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArHonosCount as New
  join hist.HrOlderArHonosCount as Old using (State)

13.2.907. HrOlderArHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArHonosCount as New
  join hist.HrOlderArHonosCount as Old using (State)
Rules:

13.2.908. HrOlderArK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.909. HrOlderArK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArK10l3dCompleted as New
  join hist.HrOlderArK10l3dCompleted as Old using (State)

13.2.910. HrOlderArK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArK10l3dCompleted as New
  join hist.HrOlderArK10l3dCompleted as Old using (State)

13.2.911. HrOlderArK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderArK10l3dCompleted.Total, HrOlderArCodCount.Total, 3) as Rate
  from HrOlderArK10l3dCompleted
  join HrOlderArCodCount using (State)

13.2.912. HrOlderArK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderArK10l3dCompletionRate as New
  join hist.HrOlderArK10l3dCompletionRate as Old using (State)
Rules:

13.2.913. HrOlderArK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.914. HrOlderArK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArK10l3dCount as New
  join hist.HrOlderArK10l3dCount as Old using (State)

13.2.915. HrOlderArK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArK10l3dCount as New
  join hist.HrOlderArK10l3dCount as Old using (State)
Rules:

13.2.916. HrOlderArK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.917. HrOlderArK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArK10lmCompleted as New
  join hist.HrOlderArK10lmCompleted as Old using (State)

13.2.918. HrOlderArK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArK10lmCompleted as New
  join hist.HrOlderArK10lmCompleted as Old using (State)

13.2.919. HrOlderArK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderArK10lmCompleted.Total, HrOlderArCodCount.Total, 3) as Rate
  from HrOlderArK10lmCompleted
  join HrOlderArCodCount using (State)

13.2.920. HrOlderArK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderArK10lmCompletionRate as New
  join hist.HrOlderArK10lmCompletionRate as Old using (State)
Rules:

13.2.921. HrOlderArK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.922. HrOlderArK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArK10lmCount as New
  join hist.HrOlderArK10lmCount as Old using (State)

13.2.923. HrOlderArK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArK10lmCount as New
  join hist.HrOlderArK10lmCount as Old using (State)
Rules:

13.2.924. HrOlderArLsp16Completed

Base:

HR

Title:

HR-level count of completed LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.925. HrOlderArLsp16CompletedChange

Base:

HR

Title:

Change in HR-level count of completed LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArLsp16Completed as New
  join hist.HrOlderArLsp16Completed as Old using (State)

13.2.926. HrOlderArLsp16CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArLsp16Completed as New
  join hist.HrOlderArLsp16Completed as Old using (State)

13.2.927. HrOlderArLsp16CompletionRate

Base:

HR

Title:

HR-level completion rate of LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderArLsp16Completed.Total, HrOlderArCodCount.Total, 3) as Rate
  from HrOlderArLsp16Completed
  join HrOlderArCodCount using (State)

13.2.928. HrOlderArLsp16CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderArLsp16CompletionRate as New
  join hist.HrOlderArLsp16CompletionRate as Old using (State)
Rules:

13.2.929. HrOlderArLsp16Count

Base:

HR

Title:

HR-level count of all LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.930. HrOlderArLsp16CountChange

Base:

HR

Title:

Change in HR-level count of all LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArLsp16Count as New
  join hist.HrOlderArLsp16Count as Old using (State)

13.2.931. HrOlderArLsp16CountGrowth

Base:

HR

Title:

Growth in HR-level count of all LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArLsp16Count as New
  join hist.HrOlderArLsp16Count as Old using (State)
Rules:

13.2.932. HrOlderArMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.933. HrOlderArMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArMhi38Completed as New
  join hist.HrOlderArMhi38Completed as Old using (State)

13.2.934. HrOlderArMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArMhi38Completed as New
  join hist.HrOlderArMhi38Completed as Old using (State)

13.2.935. HrOlderArMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderArMhi38Completed.Total, HrOlderArCodCount.Total, 3) as Rate
  from HrOlderArMhi38Completed
  join HrOlderArCodCount using (State)

13.2.936. HrOlderArMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderArMhi38CompletionRate as New
  join hist.HrOlderArMhi38CompletionRate as Old using (State)
Rules:

13.2.937. HrOlderArMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.938. HrOlderArMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArMhi38Count as New
  join hist.HrOlderArMhi38Count as Old using (State)

13.2.939. HrOlderArMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArMhi38Count as New
  join hist.HrOlderArMhi38Count as Old using (State)
Rules:

13.2.940. HrOlderArPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)
Rules:

13.2.941. HrOlderArPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArPocCompleted as New
  join hist.HrOlderArPocCompleted as Old using (State)

13.2.942. HrOlderArPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArPocCompleted as New
  join hist.HrOlderArPocCompleted as Old using (State)

13.2.943. HrOlderArPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(HrOlderArPocCompleted.Total, HrOlderArCodCount.Total, 3) as Rate
  from HrOlderArPocCompleted
  join HrOlderArCodCount using (State)

13.2.944. HrOlderArPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderArPocCompletionRate as New
  join hist.HrOlderArPocCompletionRate as Old using (State)
Rules:

13.2.945. HrOlderArPocCount

Base:

HR

Title:

HR-level count of all POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State
       ) tmpinner using (State)

13.2.946. HrOlderArPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderArPocCount as New
  join hist.HrOlderArPocCount as Old using (State)

13.2.947. HrOlderArPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderArPocCount as New
  join hist.HrOlderArPocCount as Old using (State)
Rules:

13.2.948. HrOlderDaBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.949. HrOlderDaBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaBasis32Completed as New
  join hist.HrOlderDaBasis32Completed as Old using (State)

13.2.950. HrOlderDaBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaBasis32Completed as New
  join hist.HrOlderDaBasis32Completed as Old using (State)

13.2.951. HrOlderDaBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDaBasis32Completed.Total, HrOlderDaCodCount.Total, 3) as Rate
  from HrOlderDaBasis32Completed
  join HrOlderDaCodCount using (State)

13.2.952. HrOlderDaBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDaBasis32CompletionRate as New
  join hist.HrOlderDaBasis32CompletionRate as Old using (State)
Rules:

13.2.953. HrOlderDaBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.954. HrOlderDaBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaBasis32Count as New
  join hist.HrOlderDaBasis32Count as Old using (State)

13.2.955. HrOlderDaBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaBasis32Count as New
  join hist.HrOlderDaBasis32Count as Old using (State)
Rules:

13.2.956. HrOlderDaCodCount

Base:

HR

Title:

HR-level count of collection occasions for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.957. HrOlderDaDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.958. HrOlderDaDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaDiagCompleted as New
  join hist.HrOlderDaDiagCompleted as Old using (State)

13.2.959. HrOlderDaDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaDiagCompleted as New
  join hist.HrOlderDaDiagCompleted as Old using (State)

13.2.960. HrOlderDaDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDaDiagCompleted.Total, HrOlderDaCodCount.Total, 3) as Rate
  from HrOlderDaDiagCompleted
  join HrOlderDaCodCount using (State)

13.2.961. HrOlderDaDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDaDiagCompletionRate as New
  join hist.HrOlderDaDiagCompletionRate as Old using (State)
Rules:

13.2.962. HrOlderDaDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.963. HrOlderDaDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaDiagCount as New
  join hist.HrOlderDaDiagCount as Old using (State)

13.2.964. HrOlderDaDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaDiagCount as New
  join hist.HrOlderDaDiagCount as Old using (State)
Rules:

13.2.965. HrOlderDaHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.966. HrOlderDaHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaHonosCompleted as New
  join hist.HrOlderDaHonosCompleted as Old using (State)

13.2.967. HrOlderDaHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaHonosCompleted as New
  join hist.HrOlderDaHonosCompleted as Old using (State)

13.2.968. HrOlderDaHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDaHonosCompleted.Total, HrOlderDaCodCount.Total, 3) as Rate
  from HrOlderDaHonosCompleted
  join HrOlderDaCodCount using (State)

13.2.969. HrOlderDaHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDaHonosCompletionRate as New
  join hist.HrOlderDaHonosCompletionRate as Old using (State)
Rules:

13.2.970. HrOlderDaHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.971. HrOlderDaHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaHonosCount as New
  join hist.HrOlderDaHonosCount as Old using (State)

13.2.972. HrOlderDaHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaHonosCount as New
  join hist.HrOlderDaHonosCount as Old using (State)
Rules:

13.2.973. HrOlderDaK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.974. HrOlderDaK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaK10l3dCompleted as New
  join hist.HrOlderDaK10l3dCompleted as Old using (State)

13.2.975. HrOlderDaK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaK10l3dCompleted as New
  join hist.HrOlderDaK10l3dCompleted as Old using (State)

13.2.976. HrOlderDaK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDaK10l3dCompleted.Total, HrOlderDaCodCount.Total, 3) as Rate
  from HrOlderDaK10l3dCompleted
  join HrOlderDaCodCount using (State)

13.2.977. HrOlderDaK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDaK10l3dCompletionRate as New
  join hist.HrOlderDaK10l3dCompletionRate as Old using (State)
Rules:

13.2.978. HrOlderDaK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.979. HrOlderDaK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaK10l3dCount as New
  join hist.HrOlderDaK10l3dCount as Old using (State)

13.2.980. HrOlderDaK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaK10l3dCount as New
  join hist.HrOlderDaK10l3dCount as Old using (State)
Rules:

13.2.981. HrOlderDaK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.982. HrOlderDaK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaK10lmCompleted as New
  join hist.HrOlderDaK10lmCompleted as Old using (State)

13.2.983. HrOlderDaK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaK10lmCompleted as New
  join hist.HrOlderDaK10lmCompleted as Old using (State)

13.2.984. HrOlderDaK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDaK10lmCompleted.Total, HrOlderDaCodCount.Total, 3) as Rate
  from HrOlderDaK10lmCompleted
  join HrOlderDaCodCount using (State)

13.2.985. HrOlderDaK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDaK10lmCompletionRate as New
  join hist.HrOlderDaK10lmCompletionRate as Old using (State)
Rules:

13.2.986. HrOlderDaK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.987. HrOlderDaK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaK10lmCount as New
  join hist.HrOlderDaK10lmCount as Old using (State)

13.2.988. HrOlderDaK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaK10lmCount as New
  join hist.HrOlderDaK10lmCount as Old using (State)
Rules:

13.2.989. HrOlderDaLsp16Completed

Base:

HR

Title:

HR-level count of completed LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.990. HrOlderDaLsp16CompletedChange

Base:

HR

Title:

Change in HR-level count of completed LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaLsp16Completed as New
  join hist.HrOlderDaLsp16Completed as Old using (State)

13.2.991. HrOlderDaLsp16CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaLsp16Completed as New
  join hist.HrOlderDaLsp16Completed as Old using (State)

13.2.992. HrOlderDaLsp16CompletionRate

Base:

HR

Title:

HR-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDaLsp16Completed.Total, HrOlderDaCodCount.Total, 3) as Rate
  from HrOlderDaLsp16Completed
  join HrOlderDaCodCount using (State)

13.2.993. HrOlderDaLsp16CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDaLsp16CompletionRate as New
  join hist.HrOlderDaLsp16CompletionRate as Old using (State)
Rules:

13.2.994. HrOlderDaLsp16Count

Base:

HR

Title:

HR-level count of all LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.995. HrOlderDaLsp16CountChange

Base:

HR

Title:

Change in HR-level count of all LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaLsp16Count as New
  join hist.HrOlderDaLsp16Count as Old using (State)

13.2.996. HrOlderDaLsp16CountGrowth

Base:

HR

Title:

Growth in HR-level count of all LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaLsp16Count as New
  join hist.HrOlderDaLsp16Count as Old using (State)
Rules:

13.2.997. HrOlderDaMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.998. HrOlderDaMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaMhi38Completed as New
  join hist.HrOlderDaMhi38Completed as Old using (State)

13.2.999. HrOlderDaMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaMhi38Completed as New
  join hist.HrOlderDaMhi38Completed as Old using (State)

13.2.1000. HrOlderDaMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDaMhi38Completed.Total, HrOlderDaCodCount.Total, 3) as Rate
  from HrOlderDaMhi38Completed
  join HrOlderDaCodCount using (State)

13.2.1001. HrOlderDaMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDaMhi38CompletionRate as New
  join hist.HrOlderDaMhi38CompletionRate as Old using (State)
Rules:

13.2.1002. HrOlderDaMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1003. HrOlderDaMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaMhi38Count as New
  join hist.HrOlderDaMhi38Count as Old using (State)

13.2.1004. HrOlderDaMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaMhi38Count as New
  join hist.HrOlderDaMhi38Count as Old using (State)
Rules:

13.2.1005. HrOlderDaMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1006. HrOlderDaMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaMhlsCompleted as New
  join hist.HrOlderDaMhlsCompleted as Old using (State)

13.2.1007. HrOlderDaMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaMhlsCompleted as New
  join hist.HrOlderDaMhlsCompleted as Old using (State)

13.2.1008. HrOlderDaMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDaMhlsCompleted.Total, HrOlderDaCodCount.Total, 3) as Rate
  from HrOlderDaMhlsCompleted
  join HrOlderDaCodCount using (State)

13.2.1009. HrOlderDaMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDaMhlsCompletionRate as New
  join hist.HrOlderDaMhlsCompletionRate as Old using (State)
Rules:

13.2.1010. HrOlderDaMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1011. HrOlderDaMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDaMhlsCount as New
  join hist.HrOlderDaMhlsCount as Old using (State)

13.2.1012. HrOlderDaMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDaMhlsCount as New
  join hist.HrOlderDaMhlsCount as Old using (State)
Rules:

13.2.1013. HrOlderDiCodCount

Base:

HR

Title:

HR-level count of collection occasions for Older age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1014. HrOlderDiDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1015. HrOlderDiDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDiDiagCompleted as New
  join hist.HrOlderDiDiagCompleted as Old using (State)

13.2.1016. HrOlderDiDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDiDiagCompleted as New
  join hist.HrOlderDiDiagCompleted as Old using (State)

13.2.1017. HrOlderDiDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDiDiagCompleted.Total, HrOlderDiCodCount.Total, 3) as Rate
  from HrOlderDiDiagCompleted
  join HrOlderDiCodCount using (State)

13.2.1018. HrOlderDiDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDiDiagCompletionRate as New
  join hist.HrOlderDiDiagCompletionRate as Old using (State)
Rules:

13.2.1019. HrOlderDiDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1020. HrOlderDiDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDiDiagCount as New
  join hist.HrOlderDiDiagCount as Old using (State)

13.2.1021. HrOlderDiDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDiDiagCount as New
  join hist.HrOlderDiDiagCount as Old using (State)
Rules:

13.2.1022. HrOlderDiHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1023. HrOlderDiHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDiHonosCompleted as New
  join hist.HrOlderDiHonosCompleted as Old using (State)

13.2.1024. HrOlderDiHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDiHonosCompleted as New
  join hist.HrOlderDiHonosCompleted as Old using (State)

13.2.1025. HrOlderDiHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDiHonosCompleted.Total, HrOlderDiCodCount.Total, 3) as Rate
  from HrOlderDiHonosCompleted
  join HrOlderDiCodCount using (State)

13.2.1026. HrOlderDiHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDiHonosCompletionRate as New
  join hist.HrOlderDiHonosCompletionRate as Old using (State)
Rules:

13.2.1027. HrOlderDiHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1028. HrOlderDiHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDiHonosCount as New
  join hist.HrOlderDiHonosCount as Old using (State)

13.2.1029. HrOlderDiHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDiHonosCount as New
  join hist.HrOlderDiHonosCount as Old using (State)
Rules:

13.2.1030. HrOlderDiMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1031. HrOlderDiMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDiMhlsCompleted as New
  join hist.HrOlderDiMhlsCompleted as Old using (State)

13.2.1032. HrOlderDiMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDiMhlsCompleted as New
  join hist.HrOlderDiMhlsCompleted as Old using (State)

13.2.1033. HrOlderDiMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDiMhlsCompleted.Total, HrOlderDiCodCount.Total, 3) as Rate
  from HrOlderDiMhlsCompleted
  join HrOlderDiCodCount using (State)

13.2.1034. HrOlderDiMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDiMhlsCompletionRate as New
  join hist.HrOlderDiMhlsCompletionRate as Old using (State)
Rules:

13.2.1035. HrOlderDiMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1036. HrOlderDiMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDiMhlsCount as New
  join hist.HrOlderDiMhlsCount as Old using (State)

13.2.1037. HrOlderDiMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDiMhlsCount as New
  join hist.HrOlderDiMhlsCount as Old using (State)
Rules:

13.2.1038. HrOlderDrBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1039. HrOlderDrBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrBasis32Completed as New
  join hist.HrOlderDrBasis32Completed as Old using (State)

13.2.1040. HrOlderDrBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrBasis32Completed as New
  join hist.HrOlderDrBasis32Completed as Old using (State)

13.2.1041. HrOlderDrBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDrBasis32Completed.Total, HrOlderDrCodCount.Total, 3) as Rate
  from HrOlderDrBasis32Completed
  join HrOlderDrCodCount using (State)

13.2.1042. HrOlderDrBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDrBasis32CompletionRate as New
  join hist.HrOlderDrBasis32CompletionRate as Old using (State)
Rules:

13.2.1043. HrOlderDrBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1044. HrOlderDrBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrBasis32Count as New
  join hist.HrOlderDrBasis32Count as Old using (State)

13.2.1045. HrOlderDrBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrBasis32Count as New
  join hist.HrOlderDrBasis32Count as Old using (State)
Rules:

13.2.1046. HrOlderDrCodCount

Base:

HR

Title:

HR-level count of collection occasions for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1047. HrOlderDrDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1048. HrOlderDrDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrDiagCompleted as New
  join hist.HrOlderDrDiagCompleted as Old using (State)

13.2.1049. HrOlderDrDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrDiagCompleted as New
  join hist.HrOlderDrDiagCompleted as Old using (State)

13.2.1050. HrOlderDrDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDrDiagCompleted.Total, HrOlderDrCodCount.Total, 3) as Rate
  from HrOlderDrDiagCompleted
  join HrOlderDrCodCount using (State)

13.2.1051. HrOlderDrDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDrDiagCompletionRate as New
  join hist.HrOlderDrDiagCompletionRate as Old using (State)
Rules:

13.2.1052. HrOlderDrDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1053. HrOlderDrDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrDiagCount as New
  join hist.HrOlderDrDiagCount as Old using (State)

13.2.1054. HrOlderDrDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrDiagCount as New
  join hist.HrOlderDrDiagCount as Old using (State)
Rules:

13.2.1055. HrOlderDrHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1056. HrOlderDrHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrHonosCompleted as New
  join hist.HrOlderDrHonosCompleted as Old using (State)

13.2.1057. HrOlderDrHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrHonosCompleted as New
  join hist.HrOlderDrHonosCompleted as Old using (State)

13.2.1058. HrOlderDrHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDrHonosCompleted.Total, HrOlderDrCodCount.Total, 3) as Rate
  from HrOlderDrHonosCompleted
  join HrOlderDrCodCount using (State)

13.2.1059. HrOlderDrHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDrHonosCompletionRate as New
  join hist.HrOlderDrHonosCompletionRate as Old using (State)
Rules:

13.2.1060. HrOlderDrHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1061. HrOlderDrHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrHonosCount as New
  join hist.HrOlderDrHonosCount as Old using (State)

13.2.1062. HrOlderDrHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrHonosCount as New
  join hist.HrOlderDrHonosCount as Old using (State)
Rules:

13.2.1063. HrOlderDrK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1064. HrOlderDrK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrK10l3dCompleted as New
  join hist.HrOlderDrK10l3dCompleted as Old using (State)

13.2.1065. HrOlderDrK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrK10l3dCompleted as New
  join hist.HrOlderDrK10l3dCompleted as Old using (State)

13.2.1066. HrOlderDrK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDrK10l3dCompleted.Total, HrOlderDrCodCount.Total, 3) as Rate
  from HrOlderDrK10l3dCompleted
  join HrOlderDrCodCount using (State)

13.2.1067. HrOlderDrK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDrK10l3dCompletionRate as New
  join hist.HrOlderDrK10l3dCompletionRate as Old using (State)
Rules:

13.2.1068. HrOlderDrK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1069. HrOlderDrK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrK10l3dCount as New
  join hist.HrOlderDrK10l3dCount as Old using (State)

13.2.1070. HrOlderDrK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrK10l3dCount as New
  join hist.HrOlderDrK10l3dCount as Old using (State)
Rules:

13.2.1071. HrOlderDrK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1072. HrOlderDrK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrK10lmCompleted as New
  join hist.HrOlderDrK10lmCompleted as Old using (State)

13.2.1073. HrOlderDrK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrK10lmCompleted as New
  join hist.HrOlderDrK10lmCompleted as Old using (State)

13.2.1074. HrOlderDrK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDrK10lmCompleted.Total, HrOlderDrCodCount.Total, 3) as Rate
  from HrOlderDrK10lmCompleted
  join HrOlderDrCodCount using (State)

13.2.1075. HrOlderDrK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDrK10lmCompletionRate as New
  join hist.HrOlderDrK10lmCompletionRate as Old using (State)
Rules:

13.2.1076. HrOlderDrK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1077. HrOlderDrK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrK10lmCount as New
  join hist.HrOlderDrK10lmCount as Old using (State)

13.2.1078. HrOlderDrK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrK10lmCount as New
  join hist.HrOlderDrK10lmCount as Old using (State)
Rules:

13.2.1079. HrOlderDrLsp16Completed

Base:

HR

Title:

HR-level count of completed LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1080. HrOlderDrLsp16CompletedChange

Base:

HR

Title:

Change in HR-level count of completed LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrLsp16Completed as New
  join hist.HrOlderDrLsp16Completed as Old using (State)

13.2.1081. HrOlderDrLsp16CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrLsp16Completed as New
  join hist.HrOlderDrLsp16Completed as Old using (State)

13.2.1082. HrOlderDrLsp16CompletionRate

Base:

HR

Title:

HR-level completion rate of LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDrLsp16Completed.Total, HrOlderDrCodCount.Total, 3) as Rate
  from HrOlderDrLsp16Completed
  join HrOlderDrCodCount using (State)

13.2.1083. HrOlderDrLsp16CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDrLsp16CompletionRate as New
  join hist.HrOlderDrLsp16CompletionRate as Old using (State)
Rules:

13.2.1084. HrOlderDrLsp16Count

Base:

HR

Title:

HR-level count of all LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1085. HrOlderDrLsp16CountChange

Base:

HR

Title:

Change in HR-level count of all LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrLsp16Count as New
  join hist.HrOlderDrLsp16Count as Old using (State)

13.2.1086. HrOlderDrLsp16CountGrowth

Base:

HR

Title:

Growth in HR-level count of all LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrLsp16Count as New
  join hist.HrOlderDrLsp16Count as Old using (State)
Rules:

13.2.1087. HrOlderDrMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1088. HrOlderDrMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrMhi38Completed as New
  join hist.HrOlderDrMhi38Completed as Old using (State)

13.2.1089. HrOlderDrMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrMhi38Completed as New
  join hist.HrOlderDrMhi38Completed as Old using (State)

13.2.1090. HrOlderDrMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDrMhi38Completed.Total, HrOlderDrCodCount.Total, 3) as Rate
  from HrOlderDrMhi38Completed
  join HrOlderDrCodCount using (State)

13.2.1091. HrOlderDrMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDrMhi38CompletionRate as New
  join hist.HrOlderDrMhi38CompletionRate as Old using (State)
Rules:

13.2.1092. HrOlderDrMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1093. HrOlderDrMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrMhi38Count as New
  join hist.HrOlderDrMhi38Count as Old using (State)

13.2.1094. HrOlderDrMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrMhi38Count as New
  join hist.HrOlderDrMhi38Count as Old using (State)
Rules:

13.2.1095. HrOlderDrMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1096. HrOlderDrMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrMhlsCompleted as New
  join hist.HrOlderDrMhlsCompleted as Old using (State)

13.2.1097. HrOlderDrMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrMhlsCompleted as New
  join hist.HrOlderDrMhlsCompleted as Old using (State)

13.2.1098. HrOlderDrMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(HrOlderDrMhlsCompleted.Total, HrOlderDrCodCount.Total, 3) as Rate
  from HrOlderDrMhlsCompleted
  join HrOlderDrCodCount using (State)

13.2.1099. HrOlderDrMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderDrMhlsCompletionRate as New
  join hist.HrOlderDrMhlsCompletionRate as Old using (State)
Rules:

13.2.1100. HrOlderDrMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State
       ) tmpinner using (State)

13.2.1101. HrOlderDrMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderDrMhlsCount as New
  join hist.HrOlderDrMhlsCount as Old using (State)

13.2.1102. HrOlderDrMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderDrMhlsCount as New
  join hist.HrOlderDrMhlsCount as Old using (State)
Rules:

13.2.1103. HrOlderRaBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1104. HrOlderRaBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaBasis32Completed as New
  join hist.HrOlderRaBasis32Completed as Old using (State)

13.2.1105. HrOlderRaBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaBasis32Completed as New
  join hist.HrOlderRaBasis32Completed as Old using (State)

13.2.1106. HrOlderRaBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRaBasis32Completed.Total, HrOlderRaCodCount.Total, 3) as Rate
  from HrOlderRaBasis32Completed
  join HrOlderRaCodCount using (State)

13.2.1107. HrOlderRaBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRaBasis32CompletionRate as New
  join hist.HrOlderRaBasis32CompletionRate as Old using (State)
Rules:

13.2.1108. HrOlderRaBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1109. HrOlderRaBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaBasis32Count as New
  join hist.HrOlderRaBasis32Count as Old using (State)

13.2.1110. HrOlderRaBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaBasis32Count as New
  join hist.HrOlderRaBasis32Count as Old using (State)
Rules:

13.2.1111. HrOlderRaCodCount

Base:

HR

Title:

HR-level count of collection occasions for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1112. HrOlderRaDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1113. HrOlderRaDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaDiagCompleted as New
  join hist.HrOlderRaDiagCompleted as Old using (State)

13.2.1114. HrOlderRaDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaDiagCompleted as New
  join hist.HrOlderRaDiagCompleted as Old using (State)

13.2.1115. HrOlderRaDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRaDiagCompleted.Total, HrOlderRaCodCount.Total, 3) as Rate
  from HrOlderRaDiagCompleted
  join HrOlderRaCodCount using (State)

13.2.1116. HrOlderRaDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRaDiagCompletionRate as New
  join hist.HrOlderRaDiagCompletionRate as Old using (State)
Rules:

13.2.1117. HrOlderRaDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1118. HrOlderRaDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaDiagCount as New
  join hist.HrOlderRaDiagCount as Old using (State)

13.2.1119. HrOlderRaDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaDiagCount as New
  join hist.HrOlderRaDiagCount as Old using (State)
Rules:

13.2.1120. HrOlderRaHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1121. HrOlderRaHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaHonosCompleted as New
  join hist.HrOlderRaHonosCompleted as Old using (State)

13.2.1122. HrOlderRaHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaHonosCompleted as New
  join hist.HrOlderRaHonosCompleted as Old using (State)

13.2.1123. HrOlderRaHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRaHonosCompleted.Total, HrOlderRaCodCount.Total, 3) as Rate
  from HrOlderRaHonosCompleted
  join HrOlderRaCodCount using (State)

13.2.1124. HrOlderRaHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRaHonosCompletionRate as New
  join hist.HrOlderRaHonosCompletionRate as Old using (State)
Rules:

13.2.1125. HrOlderRaHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1126. HrOlderRaHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaHonosCount as New
  join hist.HrOlderRaHonosCount as Old using (State)

13.2.1127. HrOlderRaHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaHonosCount as New
  join hist.HrOlderRaHonosCount as Old using (State)
Rules:

13.2.1128. HrOlderRaK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1129. HrOlderRaK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaK10l3dCompleted as New
  join hist.HrOlderRaK10l3dCompleted as Old using (State)

13.2.1130. HrOlderRaK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaK10l3dCompleted as New
  join hist.HrOlderRaK10l3dCompleted as Old using (State)

13.2.1131. HrOlderRaK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRaK10l3dCompleted.Total, HrOlderRaCodCount.Total, 3) as Rate
  from HrOlderRaK10l3dCompleted
  join HrOlderRaCodCount using (State)

13.2.1132. HrOlderRaK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRaK10l3dCompletionRate as New
  join hist.HrOlderRaK10l3dCompletionRate as Old using (State)
Rules:

13.2.1133. HrOlderRaK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1134. HrOlderRaK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaK10l3dCount as New
  join hist.HrOlderRaK10l3dCount as Old using (State)

13.2.1135. HrOlderRaK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaK10l3dCount as New
  join hist.HrOlderRaK10l3dCount as Old using (State)
Rules:

13.2.1136. HrOlderRaK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1137. HrOlderRaK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaK10lmCompleted as New
  join hist.HrOlderRaK10lmCompleted as Old using (State)

13.2.1138. HrOlderRaK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaK10lmCompleted as New
  join hist.HrOlderRaK10lmCompleted as Old using (State)

13.2.1139. HrOlderRaK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRaK10lmCompleted.Total, HrOlderRaCodCount.Total, 3) as Rate
  from HrOlderRaK10lmCompleted
  join HrOlderRaCodCount using (State)

13.2.1140. HrOlderRaK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRaK10lmCompletionRate as New
  join hist.HrOlderRaK10lmCompletionRate as Old using (State)
Rules:

13.2.1141. HrOlderRaK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1142. HrOlderRaK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaK10lmCount as New
  join hist.HrOlderRaK10lmCount as Old using (State)

13.2.1143. HrOlderRaK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaK10lmCount as New
  join hist.HrOlderRaK10lmCount as Old using (State)
Rules:

13.2.1144. HrOlderRaLsp16Completed

Base:

HR

Title:

HR-level count of completed LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1145. HrOlderRaLsp16CompletedChange

Base:

HR

Title:

Change in HR-level count of completed LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaLsp16Completed as New
  join hist.HrOlderRaLsp16Completed as Old using (State)

13.2.1146. HrOlderRaLsp16CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaLsp16Completed as New
  join hist.HrOlderRaLsp16Completed as Old using (State)

13.2.1147. HrOlderRaLsp16CompletionRate

Base:

HR

Title:

HR-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRaLsp16Completed.Total, HrOlderRaCodCount.Total, 3) as Rate
  from HrOlderRaLsp16Completed
  join HrOlderRaCodCount using (State)

13.2.1148. HrOlderRaLsp16CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRaLsp16CompletionRate as New
  join hist.HrOlderRaLsp16CompletionRate as Old using (State)
Rules:

13.2.1149. HrOlderRaLsp16Count

Base:

HR

Title:

HR-level count of all LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1150. HrOlderRaLsp16CountChange

Base:

HR

Title:

Change in HR-level count of all LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaLsp16Count as New
  join hist.HrOlderRaLsp16Count as Old using (State)

13.2.1151. HrOlderRaLsp16CountGrowth

Base:

HR

Title:

Growth in HR-level count of all LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaLsp16Count as New
  join hist.HrOlderRaLsp16Count as Old using (State)
Rules:

13.2.1152. HrOlderRaMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1153. HrOlderRaMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaMhi38Completed as New
  join hist.HrOlderRaMhi38Completed as Old using (State)

13.2.1154. HrOlderRaMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaMhi38Completed as New
  join hist.HrOlderRaMhi38Completed as Old using (State)

13.2.1155. HrOlderRaMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRaMhi38Completed.Total, HrOlderRaCodCount.Total, 3) as Rate
  from HrOlderRaMhi38Completed
  join HrOlderRaCodCount using (State)

13.2.1156. HrOlderRaMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRaMhi38CompletionRate as New
  join hist.HrOlderRaMhi38CompletionRate as Old using (State)
Rules:

13.2.1157. HrOlderRaMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1158. HrOlderRaMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaMhi38Count as New
  join hist.HrOlderRaMhi38Count as Old using (State)

13.2.1159. HrOlderRaMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaMhi38Count as New
  join hist.HrOlderRaMhi38Count as Old using (State)
Rules:

13.2.1160. HrOlderRaMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1161. HrOlderRaMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaMhlsCompleted as New
  join hist.HrOlderRaMhlsCompleted as Old using (State)

13.2.1162. HrOlderRaMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaMhlsCompleted as New
  join hist.HrOlderRaMhlsCompleted as Old using (State)

13.2.1163. HrOlderRaMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRaMhlsCompleted.Total, HrOlderRaCodCount.Total, 3) as Rate
  from HrOlderRaMhlsCompleted
  join HrOlderRaCodCount using (State)

13.2.1164. HrOlderRaMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRaMhlsCompletionRate as New
  join hist.HrOlderRaMhlsCompletionRate as Old using (State)
Rules:

13.2.1165. HrOlderRaMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1166. HrOlderRaMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaMhlsCount as New
  join hist.HrOlderRaMhlsCount as Old using (State)

13.2.1167. HrOlderRaMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaMhlsCount as New
  join hist.HrOlderRaMhlsCount as Old using (State)
Rules:

13.2.1168. HrOlderRaPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1169. HrOlderRaPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaPocCompleted as New
  join hist.HrOlderRaPocCompleted as Old using (State)

13.2.1170. HrOlderRaPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaPocCompleted as New
  join hist.HrOlderRaPocCompleted as Old using (State)

13.2.1171. HrOlderRaPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRaPocCompleted.Total, HrOlderRaCodCount.Total, 3) as Rate
  from HrOlderRaPocCompleted
  join HrOlderRaCodCount using (State)

13.2.1172. HrOlderRaPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRaPocCompletionRate as New
  join hist.HrOlderRaPocCompletionRate as Old using (State)
Rules:

13.2.1173. HrOlderRaPocCount

Base:

HR

Title:

HR-level count of all POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1174. HrOlderRaPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRaPocCount as New
  join hist.HrOlderRaPocCount as Old using (State)

13.2.1175. HrOlderRaPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRaPocCount as New
  join hist.HrOlderRaPocCount as Old using (State)
Rules:

13.2.1176. HrOlderRiCodCount

Base:

HR

Title:

HR-level count of collection occasions for Older age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1177. HrOlderRiDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1178. HrOlderRiDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRiDiagCompleted as New
  join hist.HrOlderRiDiagCompleted as Old using (State)

13.2.1179. HrOlderRiDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRiDiagCompleted as New
  join hist.HrOlderRiDiagCompleted as Old using (State)

13.2.1180. HrOlderRiDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRiDiagCompleted.Total, HrOlderRiCodCount.Total, 3) as Rate
  from HrOlderRiDiagCompleted
  join HrOlderRiCodCount using (State)

13.2.1181. HrOlderRiDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRiDiagCompletionRate as New
  join hist.HrOlderRiDiagCompletionRate as Old using (State)
Rules:

13.2.1182. HrOlderRiDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1183. HrOlderRiDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRiDiagCount as New
  join hist.HrOlderRiDiagCount as Old using (State)

13.2.1184. HrOlderRiDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRiDiagCount as New
  join hist.HrOlderRiDiagCount as Old using (State)
Rules:

13.2.1185. HrOlderRiHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1186. HrOlderRiHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRiHonosCompleted as New
  join hist.HrOlderRiHonosCompleted as Old using (State)

13.2.1187. HrOlderRiHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRiHonosCompleted as New
  join hist.HrOlderRiHonosCompleted as Old using (State)

13.2.1188. HrOlderRiHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRiHonosCompleted.Total, HrOlderRiCodCount.Total, 3) as Rate
  from HrOlderRiHonosCompleted
  join HrOlderRiCodCount using (State)

13.2.1189. HrOlderRiHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRiHonosCompletionRate as New
  join hist.HrOlderRiHonosCompletionRate as Old using (State)
Rules:

13.2.1190. HrOlderRiHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1191. HrOlderRiHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRiHonosCount as New
  join hist.HrOlderRiHonosCount as Old using (State)

13.2.1192. HrOlderRiHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRiHonosCount as New
  join hist.HrOlderRiHonosCount as Old using (State)
Rules:

13.2.1193. HrOlderRiMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1194. HrOlderRiMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRiMhlsCompleted as New
  join hist.HrOlderRiMhlsCompleted as Old using (State)

13.2.1195. HrOlderRiMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRiMhlsCompleted as New
  join hist.HrOlderRiMhlsCompleted as Old using (State)

13.2.1196. HrOlderRiMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRiMhlsCompleted.Total, HrOlderRiCodCount.Total, 3) as Rate
  from HrOlderRiMhlsCompleted
  join HrOlderRiCodCount using (State)

13.2.1197. HrOlderRiMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRiMhlsCompletionRate as New
  join hist.HrOlderRiMhlsCompletionRate as Old using (State)
Rules:

13.2.1198. HrOlderRiMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1199. HrOlderRiMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRiMhlsCount as New
  join hist.HrOlderRiMhlsCount as Old using (State)

13.2.1200. HrOlderRiMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRiMhlsCount as New
  join hist.HrOlderRiMhlsCount as Old using (State)
Rules:

13.2.1201. HrOlderRiPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1202. HrOlderRiPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRiPocCompleted as New
  join hist.HrOlderRiPocCompleted as Old using (State)

13.2.1203. HrOlderRiPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRiPocCompleted as New
  join hist.HrOlderRiPocCompleted as Old using (State)

13.2.1204. HrOlderRiPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRiPocCompleted.Total, HrOlderRiCodCount.Total, 3) as Rate
  from HrOlderRiPocCompleted
  join HrOlderRiCodCount using (State)

13.2.1205. HrOlderRiPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRiPocCompletionRate as New
  join hist.HrOlderRiPocCompletionRate as Old using (State)
Rules:

13.2.1206. HrOlderRiPocCount

Base:

HR

Title:

HR-level count of all POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1207. HrOlderRiPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRiPocCount as New
  join hist.HrOlderRiPocCount as Old using (State)

13.2.1208. HrOlderRiPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRiPocCount as New
  join hist.HrOlderRiPocCount as Old using (State)
Rules:

13.2.1209. HrOlderRiRugadlCompleted

Base:

HR

Title:

HR-level count of completed RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1210. HrOlderRiRugadlCompletedChange

Base:

HR

Title:

Change in HR-level count of completed RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRiRugadlCompleted as New
  join hist.HrOlderRiRugadlCompleted as Old using (State)

13.2.1211. HrOlderRiRugadlCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRiRugadlCompleted as New
  join hist.HrOlderRiRugadlCompleted as Old using (State)

13.2.1212. HrOlderRiRugadlCompletionRate

Base:

HR

Title:

HR-level completion rate of RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRiRugadlCompleted.Total, HrOlderRiCodCount.Total, 3) as Rate
  from HrOlderRiRugadlCompleted
  join HrOlderRiCodCount using (State)

13.2.1213. HrOlderRiRugadlCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRiRugadlCompletionRate as New
  join hist.HrOlderRiRugadlCompletionRate as Old using (State)
Rules:

13.2.1214. HrOlderRiRugadlCount

Base:

HR

Title:

HR-level count of all RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1215. HrOlderRiRugadlCountChange

Base:

HR

Title:

Change in HR-level count of all RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRiRugadlCount as New
  join hist.HrOlderRiRugadlCount as Old using (State)

13.2.1216. HrOlderRiRugadlCountGrowth

Base:

HR

Title:

Growth in HR-level count of all RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRiRugadlCount as New
  join hist.HrOlderRiRugadlCount as Old using (State)
Rules:

13.2.1217. HrOlderRrBasis32Completed

Base:

HR

Title:

HR-level count of completed BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1218. HrOlderRrBasis32CompletedChange

Base:

HR

Title:

Change in HR-level count of completed BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrBasis32Completed as New
  join hist.HrOlderRrBasis32Completed as Old using (State)

13.2.1219. HrOlderRrBasis32CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrBasis32Completed as New
  join hist.HrOlderRrBasis32Completed as Old using (State)

13.2.1220. HrOlderRrBasis32CompletionRate

Base:

HR

Title:

HR-level completion rate of BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRrBasis32Completed.Total, HrOlderRrCodCount.Total, 3) as Rate
  from HrOlderRrBasis32Completed
  join HrOlderRrCodCount using (State)

13.2.1221. HrOlderRrBasis32CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRrBasis32CompletionRate as New
  join hist.HrOlderRrBasis32CompletionRate as Old using (State)
Rules:

13.2.1222. HrOlderRrBasis32Count

Base:

HR

Title:

HR-level count of all BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1223. HrOlderRrBasis32CountChange

Base:

HR

Title:

Change in HR-level count of all BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrBasis32Count as New
  join hist.HrOlderRrBasis32Count as Old using (State)

13.2.1224. HrOlderRrBasis32CountGrowth

Base:

HR

Title:

Growth in HR-level count of all BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrBasis32Count as New
  join hist.HrOlderRrBasis32Count as Old using (State)
Rules:

13.2.1225. HrOlderRrCodCount

Base:

HR

Title:

HR-level count of collection occasions for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1226. HrOlderRrDiagCompleted

Base:

HR

Title:

HR-level count of completed DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1227. HrOlderRrDiagCompletedChange

Base:

HR

Title:

Change in HR-level count of completed DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrDiagCompleted as New
  join hist.HrOlderRrDiagCompleted as Old using (State)

13.2.1228. HrOlderRrDiagCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrDiagCompleted as New
  join hist.HrOlderRrDiagCompleted as Old using (State)

13.2.1229. HrOlderRrDiagCompletionRate

Base:

HR

Title:

HR-level completion rate of DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRrDiagCompleted.Total, HrOlderRrCodCount.Total, 3) as Rate
  from HrOlderRrDiagCompleted
  join HrOlderRrCodCount using (State)

13.2.1230. HrOlderRrDiagCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRrDiagCompletionRate as New
  join hist.HrOlderRrDiagCompletionRate as Old using (State)
Rules:

13.2.1231. HrOlderRrDiagCount

Base:

HR

Title:

HR-level count of all DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1232. HrOlderRrDiagCountChange

Base:

HR

Title:

Change in HR-level count of all DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrDiagCount as New
  join hist.HrOlderRrDiagCount as Old using (State)

13.2.1233. HrOlderRrDiagCountGrowth

Base:

HR

Title:

Growth in HR-level count of all DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrDiagCount as New
  join hist.HrOlderRrDiagCount as Old using (State)
Rules:

13.2.1234. HrOlderRrHonosCompleted

Base:

HR

Title:

HR-level count of completed HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1235. HrOlderRrHonosCompletedChange

Base:

HR

Title:

Change in HR-level count of completed HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrHonosCompleted as New
  join hist.HrOlderRrHonosCompleted as Old using (State)

13.2.1236. HrOlderRrHonosCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrHonosCompleted as New
  join hist.HrOlderRrHonosCompleted as Old using (State)

13.2.1237. HrOlderRrHonosCompletionRate

Base:

HR

Title:

HR-level completion rate of HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRrHonosCompleted.Total, HrOlderRrCodCount.Total, 3) as Rate
  from HrOlderRrHonosCompleted
  join HrOlderRrCodCount using (State)

13.2.1238. HrOlderRrHonosCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRrHonosCompletionRate as New
  join hist.HrOlderRrHonosCompletionRate as Old using (State)
Rules:

13.2.1239. HrOlderRrHonosCount

Base:

HR

Title:

HR-level count of all HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1240. HrOlderRrHonosCountChange

Base:

HR

Title:

Change in HR-level count of all HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrHonosCount as New
  join hist.HrOlderRrHonosCount as Old using (State)

13.2.1241. HrOlderRrHonosCountGrowth

Base:

HR

Title:

Growth in HR-level count of all HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrHonosCount as New
  join hist.HrOlderRrHonosCount as Old using (State)
Rules:

13.2.1242. HrOlderRrK10l3dCompleted

Base:

HR

Title:

HR-level count of completed K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1243. HrOlderRrK10l3dCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrK10l3dCompleted as New
  join hist.HrOlderRrK10l3dCompleted as Old using (State)

13.2.1244. HrOlderRrK10l3dCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrK10l3dCompleted as New
  join hist.HrOlderRrK10l3dCompleted as Old using (State)

13.2.1245. HrOlderRrK10l3dCompletionRate

Base:

HR

Title:

HR-level completion rate of K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRrK10l3dCompleted.Total, HrOlderRrCodCount.Total, 3) as Rate
  from HrOlderRrK10l3dCompleted
  join HrOlderRrCodCount using (State)

13.2.1246. HrOlderRrK10l3dCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRrK10l3dCompletionRate as New
  join hist.HrOlderRrK10l3dCompletionRate as Old using (State)
Rules:

13.2.1247. HrOlderRrK10l3dCount

Base:

HR

Title:

HR-level count of all K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1248. HrOlderRrK10l3dCountChange

Base:

HR

Title:

Change in HR-level count of all K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrK10l3dCount as New
  join hist.HrOlderRrK10l3dCount as Old using (State)

13.2.1249. HrOlderRrK10l3dCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrK10l3dCount as New
  join hist.HrOlderRrK10l3dCount as Old using (State)
Rules:

13.2.1250. HrOlderRrK10lmCompleted

Base:

HR

Title:

HR-level count of completed K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1251. HrOlderRrK10lmCompletedChange

Base:

HR

Title:

Change in HR-level count of completed K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrK10lmCompleted as New
  join hist.HrOlderRrK10lmCompleted as Old using (State)

13.2.1252. HrOlderRrK10lmCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrK10lmCompleted as New
  join hist.HrOlderRrK10lmCompleted as Old using (State)

13.2.1253. HrOlderRrK10lmCompletionRate

Base:

HR

Title:

HR-level completion rate of K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRrK10lmCompleted.Total, HrOlderRrCodCount.Total, 3) as Rate
  from HrOlderRrK10lmCompleted
  join HrOlderRrCodCount using (State)

13.2.1254. HrOlderRrK10lmCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRrK10lmCompletionRate as New
  join hist.HrOlderRrK10lmCompletionRate as Old using (State)
Rules:

13.2.1255. HrOlderRrK10lmCount

Base:

HR

Title:

HR-level count of all K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1256. HrOlderRrK10lmCountChange

Base:

HR

Title:

Change in HR-level count of all K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrK10lmCount as New
  join hist.HrOlderRrK10lmCount as Old using (State)

13.2.1257. HrOlderRrK10lmCountGrowth

Base:

HR

Title:

Growth in HR-level count of all K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrK10lmCount as New
  join hist.HrOlderRrK10lmCount as Old using (State)
Rules:

13.2.1258. HrOlderRrLsp16Completed

Base:

HR

Title:

HR-level count of completed LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1259. HrOlderRrLsp16CompletedChange

Base:

HR

Title:

Change in HR-level count of completed LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrLsp16Completed as New
  join hist.HrOlderRrLsp16Completed as Old using (State)

13.2.1260. HrOlderRrLsp16CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrLsp16Completed as New
  join hist.HrOlderRrLsp16Completed as Old using (State)

13.2.1261. HrOlderRrLsp16CompletionRate

Base:

HR

Title:

HR-level completion rate of LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRrLsp16Completed.Total, HrOlderRrCodCount.Total, 3) as Rate
  from HrOlderRrLsp16Completed
  join HrOlderRrCodCount using (State)

13.2.1262. HrOlderRrLsp16CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRrLsp16CompletionRate as New
  join hist.HrOlderRrLsp16CompletionRate as Old using (State)
Rules:

13.2.1263. HrOlderRrLsp16Count

Base:

HR

Title:

HR-level count of all LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1264. HrOlderRrLsp16CountChange

Base:

HR

Title:

Change in HR-level count of all LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrLsp16Count as New
  join hist.HrOlderRrLsp16Count as Old using (State)

13.2.1265. HrOlderRrLsp16CountGrowth

Base:

HR

Title:

Growth in HR-level count of all LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrLsp16Count as New
  join hist.HrOlderRrLsp16Count as Old using (State)
Rules:

13.2.1266. HrOlderRrMhi38Completed

Base:

HR

Title:

HR-level count of completed MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1267. HrOlderRrMhi38CompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrMhi38Completed as New
  join hist.HrOlderRrMhi38Completed as Old using (State)

13.2.1268. HrOlderRrMhi38CompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrMhi38Completed as New
  join hist.HrOlderRrMhi38Completed as Old using (State)

13.2.1269. HrOlderRrMhi38CompletionRate

Base:

HR

Title:

HR-level completion rate of MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRrMhi38Completed.Total, HrOlderRrCodCount.Total, 3) as Rate
  from HrOlderRrMhi38Completed
  join HrOlderRrCodCount using (State)

13.2.1270. HrOlderRrMhi38CompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRrMhi38CompletionRate as New
  join hist.HrOlderRrMhi38CompletionRate as Old using (State)
Rules:

13.2.1271. HrOlderRrMhi38Count

Base:

HR

Title:

HR-level count of all MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1272. HrOlderRrMhi38CountChange

Base:

HR

Title:

Change in HR-level count of all MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrMhi38Count as New
  join hist.HrOlderRrMhi38Count as Old using (State)

13.2.1273. HrOlderRrMhi38CountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrMhi38Count as New
  join hist.HrOlderRrMhi38Count as Old using (State)
Rules:

13.2.1274. HrOlderRrMhlsCompleted

Base:

HR

Title:

HR-level count of completed MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1275. HrOlderRrMhlsCompletedChange

Base:

HR

Title:

Change in HR-level count of completed MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrMhlsCompleted as New
  join hist.HrOlderRrMhlsCompleted as Old using (State)

13.2.1276. HrOlderRrMhlsCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrMhlsCompleted as New
  join hist.HrOlderRrMhlsCompleted as Old using (State)

13.2.1277. HrOlderRrMhlsCompletionRate

Base:

HR

Title:

HR-level completion rate of MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRrMhlsCompleted.Total, HrOlderRrCodCount.Total, 3) as Rate
  from HrOlderRrMhlsCompleted
  join HrOlderRrCodCount using (State)

13.2.1278. HrOlderRrMhlsCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRrMhlsCompletionRate as New
  join hist.HrOlderRrMhlsCompletionRate as Old using (State)
Rules:

13.2.1279. HrOlderRrMhlsCount

Base:

HR

Title:

HR-level count of all MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1280. HrOlderRrMhlsCountChange

Base:

HR

Title:

Change in HR-level count of all MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrMhlsCount as New
  join hist.HrOlderRrMhlsCount as Old using (State)

13.2.1281. HrOlderRrMhlsCountGrowth

Base:

HR

Title:

Growth in HR-level count of all MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrMhlsCount as New
  join hist.HrOlderRrMhlsCount as Old using (State)
Rules:

13.2.1282. HrOlderRrPocCompleted

Base:

HR

Title:

HR-level count of completed POC measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)
Rules:

13.2.1283. HrOlderRrPocCompletedChange

Base:

HR

Title:

Change in HR-level count of completed POC measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrPocCompleted as New
  join hist.HrOlderRrPocCompleted as Old using (State)

13.2.1284. HrOlderRrPocCompletedGrowth

Base:

HR

Title:

Growth in HR-level count of completed POC measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrPocCompleted as New
  join hist.HrOlderRrPocCompleted as Old using (State)

13.2.1285. HrOlderRrPocCompletionRate

Base:

HR

Title:

HR-level completion rate of POC measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(HrOlderRrPocCompleted.Total, HrOlderRrCodCount.Total, 3) as Rate
  from HrOlderRrPocCompleted
  join HrOlderRrCodCount using (State)

13.2.1286. HrOlderRrPocCompletionRateChange

Base:

HR

Title:

Change in HR-level completion rate of POC measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Rate - Old.Rate) as Change
  from HrOlderRrPocCompletionRate as New
  join hist.HrOlderRrPocCompletionRate as Old using (State)
Rules:

13.2.1287. HrOlderRrPocCount

Base:

HR

Title:

HR-level count of all POC measures for Older age group in Residential setting after Review

SQL:
select State,
       coalesce(Count, 0) as Total
  from HR
  left join (
        select State,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State
       ) tmpinner using (State)

13.2.1288. HrOlderRrPocCountChange

Base:

HR

Title:

Change in HR-level count of all POC measures for Older age group in Residential setting after Review

SQL:
select State,
       (New.Total - Old.Total) as Change
  from HrOlderRrPocCount as New
  join hist.HrOlderRrPocCount as Old using (State)

13.2.1289. HrOlderRrPocCountGrowth

Base:

HR

Title:

Growth in HR-level count of all POC measures for Older age group in Residential setting after Review

SQL:
select State,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from HrOlderRrPocCount as New
  join hist.HrOlderRrPocCount as Old using (State)
Rules:

13.2.1290. K10l3dCompletion

Base:

K10L3D

Title:

K10l3d Completion Status

SQL:
select ColId,
       (cast(K10L3D01 in ('1','2','3','4','5') as integer) + cast(K10L3D02 in ('1','2','3','4','5') as integer) + cast(K10L3D03 in ('1','2','3','4','5') as integer) + cast(K10L3D04 in ('1','2','3','4','5') as integer) + cast(K10L3D05 in ('1','2','3','4','5') as integer) + cast(K10L3D06 in ('1','2','3','4','5') as integer) + cast(K10L3D07 in ('1','2','3','4','5') as integer) + cast(K10L3D08 in ('1','2','3','4','5') as integer) + cast(K10L3D09 in ('1','2','3','4','5') as integer) + cast(K10L3D10 in ('1','2','3','4','5') as integer) + 0) >= 9 as IsCompleted
  from K10L3D
Rules:

13.2.1291. K10lmCompletion

Base:

K10LM

Title:

K10lm Completion Status

SQL:
select ColId,
       (cast(K10LM01 in ('1','2','3','4','5') as integer) + cast(K10LM02 in ('1','2','3','4','5') as integer) + cast(K10LM03 in ('1','2','3','4','5') as integer) + cast(K10LM04 in ('1','2','3','4','5') as integer) + cast(K10LM05 in ('1','2','3','4','5') as integer) + cast(K10LM06 in ('1','2','3','4','5') as integer) + cast(K10LM07 in ('1','2','3','4','5') as integer) + cast(K10LM08 in ('1','2','3','4','5') as integer) + cast(K10LM09 in ('1','2','3','4','5') as integer) + cast(K10LM10 in ('1','2','3','4','5') as integer) + 0) >= 9 as IsCompleted
  from K10LM
Rules:

13.2.1292. Lsp16Completion

Base:

LSP16

Title:

Lsp16 Completion Status

SQL:
select ColId,
       (cast(Lsp01 in ('0','1','2','3') as integer) + cast(Lsp02 in ('0','1','2','3') as integer) + cast(Lsp03 in ('0','1','2','3') as integer) + cast(Lsp04 in ('0','1','2','3') as integer) + cast(Lsp05 in ('0','1','2','3') as integer) + cast(Lsp06 in ('0','1','2','3') as integer) + cast(Lsp07 in ('0','1','2','3') as integer) + cast(Lsp08 in ('0','1','2','3') as integer) + cast(Lsp09 in ('0','1','2','3') as integer) + cast(Lsp10 in ('0','1','2','3') as integer) + cast(Lsp11 in ('0','1','2','3') as integer) + cast(Lsp12 in ('0','1','2','3') as integer) + cast(Lsp13 in ('0','1','2','3') as integer) + cast(Lsp14 in ('0','1','2','3') as integer) + cast(Lsp15 in ('0','1','2','3') as integer) + cast(Lsp16 in ('0','1','2','3') as integer) + 0) >= 14 as IsCompleted
  from LSP16
Rules:

13.2.1293. Mhi38Completion

Base:

MHI38

Title:

Mhi38 Completion Status

SQL:
select ColId,
       (cast(MHI01 in ('1','2','3','4','5','6') as integer) + cast(MHI02 in ('1','2','3','4','5','6') as integer) + cast(MHI03 in ('1','2','3','4','5','6') as integer) + cast(MHI04 in ('1','2','3','4','5','6') as integer) + cast(MHI05 in ('1','2','3','4','5','6') as integer) + cast(MHI06 in ('1','2','3','4','5','6') as integer) + cast(MHI07 in ('1','2','3','4','5','6') as integer) + cast(MHI08 in ('1','2','3','4','5','6') as integer) + cast(MHI09 in ('1','2','3','4','5','6') as integer) + cast(MHI10 in ('1','2','3','4','5','6') as integer) + cast(MHI11 in ('1','2','3','4','5','6') as integer) + cast(MHI12 in ('1','2','3','4','5','6') as integer) + cast(MHI13 in ('1','2','3','4','5','6') as integer) + cast(MHI14 in ('1','2','3','4','5','6') as integer) + cast(MHI15 in ('1','2','3','4','5','6') as integer) + cast(MHI16 in ('1','2','3','4','5','6') as integer) + cast(MHI17 in ('1','2','3','4','5','6') as integer) + cast(MHI18 in ('1','2','3','4','5','6') as integer) + cast(MHI19 in ('1','2','3','4','5','6') as integer) + cast(MHI20 in ('1','2','3','4','5','6') as integer) + cast(MHI21 in ('1','2','3','4','5','6') as integer) + cast(MHI22 in ('1','2','3','4','5','6') as integer) + cast(MHI23 in ('1','2','3','4','5','6') as integer) + cast(MHI24 in ('1','2','3','4','5','6') as integer) + cast(MHI25 in ('1','2','3','4','5','6') as integer) + cast(MHI26 in ('1','2','3','4','5','6') as integer) + cast(MHI27 in ('1','2','3','4','5','6') as integer) + cast(MHI28 in ('1','2','3','4','5','6') as integer) + cast(MHI29 in ('1','2','3','4','5','6') as integer) + cast(MHI30 in ('1','2','3','4','5','6') as integer) + cast(MHI31 in ('1','2','3','4','5','6') as integer) + cast(MHI32 in ('1','2','3','4','5','6') as integer) + cast(MHI33 in ('1','2','3','4','5','6') as integer) + cast(MHI34 in ('1','2','3','4','5','6') as integer) + cast(MHI35 in ('1','2','3','4','5','6') as integer) + cast(MHI36 in ('1','2','3','4','5','6') as integer) + cast(MHI37 in ('1','2','3','4','5','6') as integer) + cast(MHI38 in ('1','2','3','4','5','6') as integer) + 0) >= 30 as IsCompleted
  from MHI38
Rules:

13.2.1294. MhlsCompletion

Base:

MHLS

Title:

Mhls Completion Status

SQL:
select ColId,
       LegalSt in ('1','2') as IsCompleted
  from MHLS
Rules:

13.2.1295. OrgAdmiCACount

Base:

ORG

Title:

SERV Child and adolescent Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '1'
           and TargetPop = '1'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1296. OrgAdmiCount

Base:

ORG

Title:

Admi Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '1'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1297. OrgAdmiForCount

Base:

ORG

Title:

SERV Forensic Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '1'
           and TargetPop = '3'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1298. OrgAdmiGenCount

Base:

ORG

Title:

SERV General Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '1'
           and TargetPop = '4'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1299. OrgAdmiOldCount

Base:

ORG

Title:

SERV Older person Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '1'
           and TargetPop = '2'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1300. OrgAdmiYthCount

Base:

ORG

Title:

SERV Youth Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '1'
           and TargetPop = '5'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1301. OrgAdultAaBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1302. OrgAdultAaBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaBasis32Completed as New
  join hist.OrgAdultAaBasis32Completed as Old using (State, RegId, OrgId)

13.2.1303. OrgAdultAaBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaBasis32Completed as New
  join hist.OrgAdultAaBasis32Completed as Old using (State, RegId, OrgId)

13.2.1304. OrgAdultAaBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultAaBasis32Completed.Total, OrgAdultAaCodCount.Total, 3) as Rate
  from OrgAdultAaBasis32Completed
  join OrgAdultAaCodCount using (State, RegId, OrgId)

13.2.1305. OrgAdultAaBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultAaBasis32CompletionRate as New
  join hist.OrgAdultAaBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.1306. OrgAdultAaBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1307. OrgAdultAaBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaBasis32Count as New
  join hist.OrgAdultAaBasis32Count as Old using (State, RegId, OrgId)

13.2.1308. OrgAdultAaBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaBasis32Count as New
  join hist.OrgAdultAaBasis32Count as Old using (State, RegId, OrgId)

13.2.1309. OrgAdultAaCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1310. OrgAdultAaHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1311. OrgAdultAaHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaHonosCompleted as New
  join hist.OrgAdultAaHonosCompleted as Old using (State, RegId, OrgId)

13.2.1312. OrgAdultAaHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaHonosCompleted as New
  join hist.OrgAdultAaHonosCompleted as Old using (State, RegId, OrgId)

13.2.1313. OrgAdultAaHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultAaHonosCompleted.Total, OrgAdultAaCodCount.Total, 3) as Rate
  from OrgAdultAaHonosCompleted
  join OrgAdultAaCodCount using (State, RegId, OrgId)

13.2.1314. OrgAdultAaHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultAaHonosCompletionRate as New
  join hist.OrgAdultAaHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.1315. OrgAdultAaHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1316. OrgAdultAaHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaHonosCount as New
  join hist.OrgAdultAaHonosCount as Old using (State, RegId, OrgId)

13.2.1317. OrgAdultAaHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaHonosCount as New
  join hist.OrgAdultAaHonosCount as Old using (State, RegId, OrgId)

13.2.1318. OrgAdultAaK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1319. OrgAdultAaK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaK10l3dCompleted as New
  join hist.OrgAdultAaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1320. OrgAdultAaK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaK10l3dCompleted as New
  join hist.OrgAdultAaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1321. OrgAdultAaK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultAaK10l3dCompleted.Total, OrgAdultAaCodCount.Total, 3) as Rate
  from OrgAdultAaK10l3dCompleted
  join OrgAdultAaCodCount using (State, RegId, OrgId)

13.2.1322. OrgAdultAaK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultAaK10l3dCompletionRate as New
  join hist.OrgAdultAaK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.1323. OrgAdultAaK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1324. OrgAdultAaK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaK10l3dCount as New
  join hist.OrgAdultAaK10l3dCount as Old using (State, RegId, OrgId)

13.2.1325. OrgAdultAaK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaK10l3dCount as New
  join hist.OrgAdultAaK10l3dCount as Old using (State, RegId, OrgId)

13.2.1326. OrgAdultAaK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1327. OrgAdultAaK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaK10lmCompleted as New
  join hist.OrgAdultAaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1328. OrgAdultAaK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaK10lmCompleted as New
  join hist.OrgAdultAaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1329. OrgAdultAaK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultAaK10lmCompleted.Total, OrgAdultAaCodCount.Total, 3) as Rate
  from OrgAdultAaK10lmCompleted
  join OrgAdultAaCodCount using (State, RegId, OrgId)

13.2.1330. OrgAdultAaK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultAaK10lmCompletionRate as New
  join hist.OrgAdultAaK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.1331. OrgAdultAaK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1332. OrgAdultAaK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaK10lmCount as New
  join hist.OrgAdultAaK10lmCount as Old using (State, RegId, OrgId)

13.2.1333. OrgAdultAaK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaK10lmCount as New
  join hist.OrgAdultAaK10lmCount as Old using (State, RegId, OrgId)

13.2.1334. OrgAdultAaMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1335. OrgAdultAaMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaMhi38Completed as New
  join hist.OrgAdultAaMhi38Completed as Old using (State, RegId, OrgId)

13.2.1336. OrgAdultAaMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaMhi38Completed as New
  join hist.OrgAdultAaMhi38Completed as Old using (State, RegId, OrgId)

13.2.1337. OrgAdultAaMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultAaMhi38Completed.Total, OrgAdultAaCodCount.Total, 3) as Rate
  from OrgAdultAaMhi38Completed
  join OrgAdultAaCodCount using (State, RegId, OrgId)

13.2.1338. OrgAdultAaMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultAaMhi38CompletionRate as New
  join hist.OrgAdultAaMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.1339. OrgAdultAaMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1340. OrgAdultAaMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaMhi38Count as New
  join hist.OrgAdultAaMhi38Count as Old using (State, RegId, OrgId)

13.2.1341. OrgAdultAaMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaMhi38Count as New
  join hist.OrgAdultAaMhi38Count as Old using (State, RegId, OrgId)

13.2.1342. OrgAdultAaPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1343. OrgAdultAaPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaPocCompleted as New
  join hist.OrgAdultAaPocCompleted as Old using (State, RegId, OrgId)

13.2.1344. OrgAdultAaPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaPocCompleted as New
  join hist.OrgAdultAaPocCompleted as Old using (State, RegId, OrgId)

13.2.1345. OrgAdultAaPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultAaPocCompleted.Total, OrgAdultAaCodCount.Total, 3) as Rate
  from OrgAdultAaPocCompleted
  join OrgAdultAaCodCount using (State, RegId, OrgId)

13.2.1346. OrgAdultAaPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultAaPocCompletionRate as New
  join hist.OrgAdultAaPocCompletionRate as Old using (State, RegId, OrgId)

13.2.1347. OrgAdultAaPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1348. OrgAdultAaPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAaPocCount as New
  join hist.OrgAdultAaPocCount as Old using (State, RegId, OrgId)

13.2.1349. OrgAdultAaPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAaPocCount as New
  join hist.OrgAdultAaPocCount as Old using (State, RegId, OrgId)

13.2.1350. OrgAdultAiCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1351. OrgAdultAiHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1352. OrgAdultAiHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAiHonosCompleted as New
  join hist.OrgAdultAiHonosCompleted as Old using (State, RegId, OrgId)

13.2.1353. OrgAdultAiHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAiHonosCompleted as New
  join hist.OrgAdultAiHonosCompleted as Old using (State, RegId, OrgId)

13.2.1354. OrgAdultAiHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultAiHonosCompleted.Total, OrgAdultAiCodCount.Total, 3) as Rate
  from OrgAdultAiHonosCompleted
  join OrgAdultAiCodCount using (State, RegId, OrgId)

13.2.1355. OrgAdultAiHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultAiHonosCompletionRate as New
  join hist.OrgAdultAiHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.1356. OrgAdultAiHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1357. OrgAdultAiHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAiHonosCount as New
  join hist.OrgAdultAiHonosCount as Old using (State, RegId, OrgId)

13.2.1358. OrgAdultAiHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAiHonosCount as New
  join hist.OrgAdultAiHonosCount as Old using (State, RegId, OrgId)

13.2.1359. OrgAdultAiPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1360. OrgAdultAiPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAiPocCompleted as New
  join hist.OrgAdultAiPocCompleted as Old using (State, RegId, OrgId)

13.2.1361. OrgAdultAiPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAiPocCompleted as New
  join hist.OrgAdultAiPocCompleted as Old using (State, RegId, OrgId)

13.2.1362. OrgAdultAiPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultAiPocCompleted.Total, OrgAdultAiCodCount.Total, 3) as Rate
  from OrgAdultAiPocCompleted
  join OrgAdultAiCodCount using (State, RegId, OrgId)

13.2.1363. OrgAdultAiPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultAiPocCompletionRate as New
  join hist.OrgAdultAiPocCompletionRate as Old using (State, RegId, OrgId)

13.2.1364. OrgAdultAiPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1365. OrgAdultAiPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultAiPocCount as New
  join hist.OrgAdultAiPocCount as Old using (State, RegId, OrgId)

13.2.1366. OrgAdultAiPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultAiPocCount as New
  join hist.OrgAdultAiPocCount as Old using (State, RegId, OrgId)

13.2.1367. OrgAdultArBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1368. OrgAdultArBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArBasis32Completed as New
  join hist.OrgAdultArBasis32Completed as Old using (State, RegId, OrgId)

13.2.1369. OrgAdultArBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArBasis32Completed as New
  join hist.OrgAdultArBasis32Completed as Old using (State, RegId, OrgId)

13.2.1370. OrgAdultArBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultArBasis32Completed.Total, OrgAdultArCodCount.Total, 3) as Rate
  from OrgAdultArBasis32Completed
  join OrgAdultArCodCount using (State, RegId, OrgId)

13.2.1371. OrgAdultArBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultArBasis32CompletionRate as New
  join hist.OrgAdultArBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.1372. OrgAdultArBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1373. OrgAdultArBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArBasis32Count as New
  join hist.OrgAdultArBasis32Count as Old using (State, RegId, OrgId)

13.2.1374. OrgAdultArBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArBasis32Count as New
  join hist.OrgAdultArBasis32Count as Old using (State, RegId, OrgId)

13.2.1375. OrgAdultArCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1376. OrgAdultArHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1377. OrgAdultArHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArHonosCompleted as New
  join hist.OrgAdultArHonosCompleted as Old using (State, RegId, OrgId)

13.2.1378. OrgAdultArHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArHonosCompleted as New
  join hist.OrgAdultArHonosCompleted as Old using (State, RegId, OrgId)

13.2.1379. OrgAdultArHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultArHonosCompleted.Total, OrgAdultArCodCount.Total, 3) as Rate
  from OrgAdultArHonosCompleted
  join OrgAdultArCodCount using (State, RegId, OrgId)

13.2.1380. OrgAdultArHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultArHonosCompletionRate as New
  join hist.OrgAdultArHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.1381. OrgAdultArHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1382. OrgAdultArHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArHonosCount as New
  join hist.OrgAdultArHonosCount as Old using (State, RegId, OrgId)

13.2.1383. OrgAdultArHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArHonosCount as New
  join hist.OrgAdultArHonosCount as Old using (State, RegId, OrgId)

13.2.1384. OrgAdultArK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1385. OrgAdultArK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArK10l3dCompleted as New
  join hist.OrgAdultArK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1386. OrgAdultArK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArK10l3dCompleted as New
  join hist.OrgAdultArK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1387. OrgAdultArK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultArK10l3dCompleted.Total, OrgAdultArCodCount.Total, 3) as Rate
  from OrgAdultArK10l3dCompleted
  join OrgAdultArCodCount using (State, RegId, OrgId)

13.2.1388. OrgAdultArK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultArK10l3dCompletionRate as New
  join hist.OrgAdultArK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.1389. OrgAdultArK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1390. OrgAdultArK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArK10l3dCount as New
  join hist.OrgAdultArK10l3dCount as Old using (State, RegId, OrgId)

13.2.1391. OrgAdultArK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArK10l3dCount as New
  join hist.OrgAdultArK10l3dCount as Old using (State, RegId, OrgId)

13.2.1392. OrgAdultArK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1393. OrgAdultArK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArK10lmCompleted as New
  join hist.OrgAdultArK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1394. OrgAdultArK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArK10lmCompleted as New
  join hist.OrgAdultArK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1395. OrgAdultArK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultArK10lmCompleted.Total, OrgAdultArCodCount.Total, 3) as Rate
  from OrgAdultArK10lmCompleted
  join OrgAdultArCodCount using (State, RegId, OrgId)

13.2.1396. OrgAdultArK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultArK10lmCompletionRate as New
  join hist.OrgAdultArK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.1397. OrgAdultArK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1398. OrgAdultArK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArK10lmCount as New
  join hist.OrgAdultArK10lmCount as Old using (State, RegId, OrgId)

13.2.1399. OrgAdultArK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArK10lmCount as New
  join hist.OrgAdultArK10lmCount as Old using (State, RegId, OrgId)

13.2.1400. OrgAdultArLsp16Completed

Base:

ORG

Title:

ORG-level count of completed LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1401. OrgAdultArLsp16CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArLsp16Completed as New
  join hist.OrgAdultArLsp16Completed as Old using (State, RegId, OrgId)

13.2.1402. OrgAdultArLsp16CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArLsp16Completed as New
  join hist.OrgAdultArLsp16Completed as Old using (State, RegId, OrgId)

13.2.1403. OrgAdultArLsp16CompletionRate

Base:

ORG

Title:

ORG-level completion rate of LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultArLsp16Completed.Total, OrgAdultArCodCount.Total, 3) as Rate
  from OrgAdultArLsp16Completed
  join OrgAdultArCodCount using (State, RegId, OrgId)

13.2.1404. OrgAdultArLsp16CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultArLsp16CompletionRate as New
  join hist.OrgAdultArLsp16CompletionRate as Old using (State, RegId, OrgId)

13.2.1405. OrgAdultArLsp16Count

Base:

ORG

Title:

ORG-level count of all LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1406. OrgAdultArLsp16CountChange

Base:

ORG

Title:

Change in ORG-level count of all LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArLsp16Count as New
  join hist.OrgAdultArLsp16Count as Old using (State, RegId, OrgId)

13.2.1407. OrgAdultArLsp16CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArLsp16Count as New
  join hist.OrgAdultArLsp16Count as Old using (State, RegId, OrgId)

13.2.1408. OrgAdultArMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1409. OrgAdultArMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArMhi38Completed as New
  join hist.OrgAdultArMhi38Completed as Old using (State, RegId, OrgId)

13.2.1410. OrgAdultArMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArMhi38Completed as New
  join hist.OrgAdultArMhi38Completed as Old using (State, RegId, OrgId)

13.2.1411. OrgAdultArMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultArMhi38Completed.Total, OrgAdultArCodCount.Total, 3) as Rate
  from OrgAdultArMhi38Completed
  join OrgAdultArCodCount using (State, RegId, OrgId)

13.2.1412. OrgAdultArMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultArMhi38CompletionRate as New
  join hist.OrgAdultArMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.1413. OrgAdultArMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1414. OrgAdultArMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArMhi38Count as New
  join hist.OrgAdultArMhi38Count as Old using (State, RegId, OrgId)

13.2.1415. OrgAdultArMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArMhi38Count as New
  join hist.OrgAdultArMhi38Count as Old using (State, RegId, OrgId)

13.2.1416. OrgAdultArPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1417. OrgAdultArPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArPocCompleted as New
  join hist.OrgAdultArPocCompleted as Old using (State, RegId, OrgId)

13.2.1418. OrgAdultArPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArPocCompleted as New
  join hist.OrgAdultArPocCompleted as Old using (State, RegId, OrgId)

13.2.1419. OrgAdultArPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultArPocCompleted.Total, OrgAdultArCodCount.Total, 3) as Rate
  from OrgAdultArPocCompleted
  join OrgAdultArCodCount using (State, RegId, OrgId)

13.2.1420. OrgAdultArPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultArPocCompletionRate as New
  join hist.OrgAdultArPocCompletionRate as Old using (State, RegId, OrgId)

13.2.1421. OrgAdultArPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1422. OrgAdultArPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultArPocCount as New
  join hist.OrgAdultArPocCount as Old using (State, RegId, OrgId)

13.2.1423. OrgAdultArPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultArPocCount as New
  join hist.OrgAdultArPocCount as Old using (State, RegId, OrgId)

13.2.1424. OrgAdultDaBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1425. OrgAdultDaBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaBasis32Completed as New
  join hist.OrgAdultDaBasis32Completed as Old using (State, RegId, OrgId)

13.2.1426. OrgAdultDaBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaBasis32Completed as New
  join hist.OrgAdultDaBasis32Completed as Old using (State, RegId, OrgId)

13.2.1427. OrgAdultDaBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDaBasis32Completed.Total, OrgAdultDaCodCount.Total, 3) as Rate
  from OrgAdultDaBasis32Completed
  join OrgAdultDaCodCount using (State, RegId, OrgId)

13.2.1428. OrgAdultDaBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDaBasis32CompletionRate as New
  join hist.OrgAdultDaBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.1429. OrgAdultDaBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1430. OrgAdultDaBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaBasis32Count as New
  join hist.OrgAdultDaBasis32Count as Old using (State, RegId, OrgId)

13.2.1431. OrgAdultDaBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaBasis32Count as New
  join hist.OrgAdultDaBasis32Count as Old using (State, RegId, OrgId)

13.2.1432. OrgAdultDaCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1433. OrgAdultDaDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1434. OrgAdultDaDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaDiagCompleted as New
  join hist.OrgAdultDaDiagCompleted as Old using (State, RegId, OrgId)

13.2.1435. OrgAdultDaDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaDiagCompleted as New
  join hist.OrgAdultDaDiagCompleted as Old using (State, RegId, OrgId)

13.2.1436. OrgAdultDaDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDaDiagCompleted.Total, OrgAdultDaCodCount.Total, 3) as Rate
  from OrgAdultDaDiagCompleted
  join OrgAdultDaCodCount using (State, RegId, OrgId)

13.2.1437. OrgAdultDaDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDaDiagCompletionRate as New
  join hist.OrgAdultDaDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.1438. OrgAdultDaDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1439. OrgAdultDaDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaDiagCount as New
  join hist.OrgAdultDaDiagCount as Old using (State, RegId, OrgId)

13.2.1440. OrgAdultDaDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaDiagCount as New
  join hist.OrgAdultDaDiagCount as Old using (State, RegId, OrgId)

13.2.1441. OrgAdultDaHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1442. OrgAdultDaHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaHonosCompleted as New
  join hist.OrgAdultDaHonosCompleted as Old using (State, RegId, OrgId)

13.2.1443. OrgAdultDaHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaHonosCompleted as New
  join hist.OrgAdultDaHonosCompleted as Old using (State, RegId, OrgId)

13.2.1444. OrgAdultDaHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDaHonosCompleted.Total, OrgAdultDaCodCount.Total, 3) as Rate
  from OrgAdultDaHonosCompleted
  join OrgAdultDaCodCount using (State, RegId, OrgId)

13.2.1445. OrgAdultDaHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDaHonosCompletionRate as New
  join hist.OrgAdultDaHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.1446. OrgAdultDaHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1447. OrgAdultDaHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaHonosCount as New
  join hist.OrgAdultDaHonosCount as Old using (State, RegId, OrgId)

13.2.1448. OrgAdultDaHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaHonosCount as New
  join hist.OrgAdultDaHonosCount as Old using (State, RegId, OrgId)

13.2.1449. OrgAdultDaK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1450. OrgAdultDaK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaK10l3dCompleted as New
  join hist.OrgAdultDaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1451. OrgAdultDaK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaK10l3dCompleted as New
  join hist.OrgAdultDaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1452. OrgAdultDaK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDaK10l3dCompleted.Total, OrgAdultDaCodCount.Total, 3) as Rate
  from OrgAdultDaK10l3dCompleted
  join OrgAdultDaCodCount using (State, RegId, OrgId)

13.2.1453. OrgAdultDaK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDaK10l3dCompletionRate as New
  join hist.OrgAdultDaK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.1454. OrgAdultDaK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1455. OrgAdultDaK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaK10l3dCount as New
  join hist.OrgAdultDaK10l3dCount as Old using (State, RegId, OrgId)

13.2.1456. OrgAdultDaK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaK10l3dCount as New
  join hist.OrgAdultDaK10l3dCount as Old using (State, RegId, OrgId)

13.2.1457. OrgAdultDaK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1458. OrgAdultDaK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaK10lmCompleted as New
  join hist.OrgAdultDaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1459. OrgAdultDaK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaK10lmCompleted as New
  join hist.OrgAdultDaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1460. OrgAdultDaK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDaK10lmCompleted.Total, OrgAdultDaCodCount.Total, 3) as Rate
  from OrgAdultDaK10lmCompleted
  join OrgAdultDaCodCount using (State, RegId, OrgId)

13.2.1461. OrgAdultDaK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDaK10lmCompletionRate as New
  join hist.OrgAdultDaK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.1462. OrgAdultDaK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1463. OrgAdultDaK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaK10lmCount as New
  join hist.OrgAdultDaK10lmCount as Old using (State, RegId, OrgId)

13.2.1464. OrgAdultDaK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaK10lmCount as New
  join hist.OrgAdultDaK10lmCount as Old using (State, RegId, OrgId)

13.2.1465. OrgAdultDaLsp16Completed

Base:

ORG

Title:

ORG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1466. OrgAdultDaLsp16CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaLsp16Completed as New
  join hist.OrgAdultDaLsp16Completed as Old using (State, RegId, OrgId)

13.2.1467. OrgAdultDaLsp16CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaLsp16Completed as New
  join hist.OrgAdultDaLsp16Completed as Old using (State, RegId, OrgId)

13.2.1468. OrgAdultDaLsp16CompletionRate

Base:

ORG

Title:

ORG-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDaLsp16Completed.Total, OrgAdultDaCodCount.Total, 3) as Rate
  from OrgAdultDaLsp16Completed
  join OrgAdultDaCodCount using (State, RegId, OrgId)

13.2.1469. OrgAdultDaLsp16CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDaLsp16CompletionRate as New
  join hist.OrgAdultDaLsp16CompletionRate as Old using (State, RegId, OrgId)

13.2.1470. OrgAdultDaLsp16Count

Base:

ORG

Title:

ORG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1471. OrgAdultDaLsp16CountChange

Base:

ORG

Title:

Change in ORG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaLsp16Count as New
  join hist.OrgAdultDaLsp16Count as Old using (State, RegId, OrgId)

13.2.1472. OrgAdultDaLsp16CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaLsp16Count as New
  join hist.OrgAdultDaLsp16Count as Old using (State, RegId, OrgId)

13.2.1473. OrgAdultDaMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1474. OrgAdultDaMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaMhi38Completed as New
  join hist.OrgAdultDaMhi38Completed as Old using (State, RegId, OrgId)

13.2.1475. OrgAdultDaMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaMhi38Completed as New
  join hist.OrgAdultDaMhi38Completed as Old using (State, RegId, OrgId)

13.2.1476. OrgAdultDaMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDaMhi38Completed.Total, OrgAdultDaCodCount.Total, 3) as Rate
  from OrgAdultDaMhi38Completed
  join OrgAdultDaCodCount using (State, RegId, OrgId)

13.2.1477. OrgAdultDaMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDaMhi38CompletionRate as New
  join hist.OrgAdultDaMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.1478. OrgAdultDaMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1479. OrgAdultDaMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaMhi38Count as New
  join hist.OrgAdultDaMhi38Count as Old using (State, RegId, OrgId)

13.2.1480. OrgAdultDaMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaMhi38Count as New
  join hist.OrgAdultDaMhi38Count as Old using (State, RegId, OrgId)

13.2.1481. OrgAdultDaMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1482. OrgAdultDaMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaMhlsCompleted as New
  join hist.OrgAdultDaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1483. OrgAdultDaMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaMhlsCompleted as New
  join hist.OrgAdultDaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1484. OrgAdultDaMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDaMhlsCompleted.Total, OrgAdultDaCodCount.Total, 3) as Rate
  from OrgAdultDaMhlsCompleted
  join OrgAdultDaCodCount using (State, RegId, OrgId)

13.2.1485. OrgAdultDaMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDaMhlsCompletionRate as New
  join hist.OrgAdultDaMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.1486. OrgAdultDaMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1487. OrgAdultDaMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDaMhlsCount as New
  join hist.OrgAdultDaMhlsCount as Old using (State, RegId, OrgId)

13.2.1488. OrgAdultDaMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDaMhlsCount as New
  join hist.OrgAdultDaMhlsCount as Old using (State, RegId, OrgId)

13.2.1489. OrgAdultDiCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1490. OrgAdultDiDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1491. OrgAdultDiDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDiDiagCompleted as New
  join hist.OrgAdultDiDiagCompleted as Old using (State, RegId, OrgId)

13.2.1492. OrgAdultDiDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDiDiagCompleted as New
  join hist.OrgAdultDiDiagCompleted as Old using (State, RegId, OrgId)

13.2.1493. OrgAdultDiDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDiDiagCompleted.Total, OrgAdultDiCodCount.Total, 3) as Rate
  from OrgAdultDiDiagCompleted
  join OrgAdultDiCodCount using (State, RegId, OrgId)

13.2.1494. OrgAdultDiDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDiDiagCompletionRate as New
  join hist.OrgAdultDiDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.1495. OrgAdultDiDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1496. OrgAdultDiDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDiDiagCount as New
  join hist.OrgAdultDiDiagCount as Old using (State, RegId, OrgId)

13.2.1497. OrgAdultDiDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDiDiagCount as New
  join hist.OrgAdultDiDiagCount as Old using (State, RegId, OrgId)

13.2.1498. OrgAdultDiHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1499. OrgAdultDiHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDiHonosCompleted as New
  join hist.OrgAdultDiHonosCompleted as Old using (State, RegId, OrgId)

13.2.1500. OrgAdultDiHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDiHonosCompleted as New
  join hist.OrgAdultDiHonosCompleted as Old using (State, RegId, OrgId)

13.2.1501. OrgAdultDiHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDiHonosCompleted.Total, OrgAdultDiCodCount.Total, 3) as Rate
  from OrgAdultDiHonosCompleted
  join OrgAdultDiCodCount using (State, RegId, OrgId)

13.2.1502. OrgAdultDiHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDiHonosCompletionRate as New
  join hist.OrgAdultDiHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.1503. OrgAdultDiHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1504. OrgAdultDiHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDiHonosCount as New
  join hist.OrgAdultDiHonosCount as Old using (State, RegId, OrgId)

13.2.1505. OrgAdultDiHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDiHonosCount as New
  join hist.OrgAdultDiHonosCount as Old using (State, RegId, OrgId)

13.2.1506. OrgAdultDiMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1507. OrgAdultDiMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDiMhlsCompleted as New
  join hist.OrgAdultDiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1508. OrgAdultDiMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDiMhlsCompleted as New
  join hist.OrgAdultDiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1509. OrgAdultDiMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDiMhlsCompleted.Total, OrgAdultDiCodCount.Total, 3) as Rate
  from OrgAdultDiMhlsCompleted
  join OrgAdultDiCodCount using (State, RegId, OrgId)

13.2.1510. OrgAdultDiMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDiMhlsCompletionRate as New
  join hist.OrgAdultDiMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.1511. OrgAdultDiMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1512. OrgAdultDiMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDiMhlsCount as New
  join hist.OrgAdultDiMhlsCount as Old using (State, RegId, OrgId)

13.2.1513. OrgAdultDiMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDiMhlsCount as New
  join hist.OrgAdultDiMhlsCount as Old using (State, RegId, OrgId)

13.2.1514. OrgAdultDrBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1515. OrgAdultDrBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrBasis32Completed as New
  join hist.OrgAdultDrBasis32Completed as Old using (State, RegId, OrgId)

13.2.1516. OrgAdultDrBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrBasis32Completed as New
  join hist.OrgAdultDrBasis32Completed as Old using (State, RegId, OrgId)

13.2.1517. OrgAdultDrBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDrBasis32Completed.Total, OrgAdultDrCodCount.Total, 3) as Rate
  from OrgAdultDrBasis32Completed
  join OrgAdultDrCodCount using (State, RegId, OrgId)

13.2.1518. OrgAdultDrBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDrBasis32CompletionRate as New
  join hist.OrgAdultDrBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.1519. OrgAdultDrBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1520. OrgAdultDrBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrBasis32Count as New
  join hist.OrgAdultDrBasis32Count as Old using (State, RegId, OrgId)

13.2.1521. OrgAdultDrBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrBasis32Count as New
  join hist.OrgAdultDrBasis32Count as Old using (State, RegId, OrgId)

13.2.1522. OrgAdultDrCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1523. OrgAdultDrDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1524. OrgAdultDrDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrDiagCompleted as New
  join hist.OrgAdultDrDiagCompleted as Old using (State, RegId, OrgId)

13.2.1525. OrgAdultDrDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrDiagCompleted as New
  join hist.OrgAdultDrDiagCompleted as Old using (State, RegId, OrgId)

13.2.1526. OrgAdultDrDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDrDiagCompleted.Total, OrgAdultDrCodCount.Total, 3) as Rate
  from OrgAdultDrDiagCompleted
  join OrgAdultDrCodCount using (State, RegId, OrgId)

13.2.1527. OrgAdultDrDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDrDiagCompletionRate as New
  join hist.OrgAdultDrDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.1528. OrgAdultDrDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1529. OrgAdultDrDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrDiagCount as New
  join hist.OrgAdultDrDiagCount as Old using (State, RegId, OrgId)

13.2.1530. OrgAdultDrDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrDiagCount as New
  join hist.OrgAdultDrDiagCount as Old using (State, RegId, OrgId)

13.2.1531. OrgAdultDrHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1532. OrgAdultDrHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrHonosCompleted as New
  join hist.OrgAdultDrHonosCompleted as Old using (State, RegId, OrgId)

13.2.1533. OrgAdultDrHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrHonosCompleted as New
  join hist.OrgAdultDrHonosCompleted as Old using (State, RegId, OrgId)

13.2.1534. OrgAdultDrHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDrHonosCompleted.Total, OrgAdultDrCodCount.Total, 3) as Rate
  from OrgAdultDrHonosCompleted
  join OrgAdultDrCodCount using (State, RegId, OrgId)

13.2.1535. OrgAdultDrHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDrHonosCompletionRate as New
  join hist.OrgAdultDrHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.1536. OrgAdultDrHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1537. OrgAdultDrHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrHonosCount as New
  join hist.OrgAdultDrHonosCount as Old using (State, RegId, OrgId)

13.2.1538. OrgAdultDrHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrHonosCount as New
  join hist.OrgAdultDrHonosCount as Old using (State, RegId, OrgId)

13.2.1539. OrgAdultDrK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1540. OrgAdultDrK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrK10l3dCompleted as New
  join hist.OrgAdultDrK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1541. OrgAdultDrK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrK10l3dCompleted as New
  join hist.OrgAdultDrK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1542. OrgAdultDrK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDrK10l3dCompleted.Total, OrgAdultDrCodCount.Total, 3) as Rate
  from OrgAdultDrK10l3dCompleted
  join OrgAdultDrCodCount using (State, RegId, OrgId)

13.2.1543. OrgAdultDrK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDrK10l3dCompletionRate as New
  join hist.OrgAdultDrK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.1544. OrgAdultDrK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1545. OrgAdultDrK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrK10l3dCount as New
  join hist.OrgAdultDrK10l3dCount as Old using (State, RegId, OrgId)

13.2.1546. OrgAdultDrK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrK10l3dCount as New
  join hist.OrgAdultDrK10l3dCount as Old using (State, RegId, OrgId)

13.2.1547. OrgAdultDrK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1548. OrgAdultDrK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrK10lmCompleted as New
  join hist.OrgAdultDrK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1549. OrgAdultDrK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrK10lmCompleted as New
  join hist.OrgAdultDrK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1550. OrgAdultDrK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDrK10lmCompleted.Total, OrgAdultDrCodCount.Total, 3) as Rate
  from OrgAdultDrK10lmCompleted
  join OrgAdultDrCodCount using (State, RegId, OrgId)

13.2.1551. OrgAdultDrK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDrK10lmCompletionRate as New
  join hist.OrgAdultDrK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.1552. OrgAdultDrK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1553. OrgAdultDrK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrK10lmCount as New
  join hist.OrgAdultDrK10lmCount as Old using (State, RegId, OrgId)

13.2.1554. OrgAdultDrK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrK10lmCount as New
  join hist.OrgAdultDrK10lmCount as Old using (State, RegId, OrgId)

13.2.1555. OrgAdultDrLsp16Completed

Base:

ORG

Title:

ORG-level count of completed LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1556. OrgAdultDrLsp16CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrLsp16Completed as New
  join hist.OrgAdultDrLsp16Completed as Old using (State, RegId, OrgId)

13.2.1557. OrgAdultDrLsp16CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrLsp16Completed as New
  join hist.OrgAdultDrLsp16Completed as Old using (State, RegId, OrgId)

13.2.1558. OrgAdultDrLsp16CompletionRate

Base:

ORG

Title:

ORG-level completion rate of LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDrLsp16Completed.Total, OrgAdultDrCodCount.Total, 3) as Rate
  from OrgAdultDrLsp16Completed
  join OrgAdultDrCodCount using (State, RegId, OrgId)

13.2.1559. OrgAdultDrLsp16CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDrLsp16CompletionRate as New
  join hist.OrgAdultDrLsp16CompletionRate as Old using (State, RegId, OrgId)

13.2.1560. OrgAdultDrLsp16Count

Base:

ORG

Title:

ORG-level count of all LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1561. OrgAdultDrLsp16CountChange

Base:

ORG

Title:

Change in ORG-level count of all LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrLsp16Count as New
  join hist.OrgAdultDrLsp16Count as Old using (State, RegId, OrgId)

13.2.1562. OrgAdultDrLsp16CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrLsp16Count as New
  join hist.OrgAdultDrLsp16Count as Old using (State, RegId, OrgId)

13.2.1563. OrgAdultDrMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1564. OrgAdultDrMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrMhi38Completed as New
  join hist.OrgAdultDrMhi38Completed as Old using (State, RegId, OrgId)

13.2.1565. OrgAdultDrMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrMhi38Completed as New
  join hist.OrgAdultDrMhi38Completed as Old using (State, RegId, OrgId)

13.2.1566. OrgAdultDrMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDrMhi38Completed.Total, OrgAdultDrCodCount.Total, 3) as Rate
  from OrgAdultDrMhi38Completed
  join OrgAdultDrCodCount using (State, RegId, OrgId)

13.2.1567. OrgAdultDrMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDrMhi38CompletionRate as New
  join hist.OrgAdultDrMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.1568. OrgAdultDrMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1569. OrgAdultDrMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrMhi38Count as New
  join hist.OrgAdultDrMhi38Count as Old using (State, RegId, OrgId)

13.2.1570. OrgAdultDrMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrMhi38Count as New
  join hist.OrgAdultDrMhi38Count as Old using (State, RegId, OrgId)

13.2.1571. OrgAdultDrMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1572. OrgAdultDrMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrMhlsCompleted as New
  join hist.OrgAdultDrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1573. OrgAdultDrMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrMhlsCompleted as New
  join hist.OrgAdultDrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1574. OrgAdultDrMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultDrMhlsCompleted.Total, OrgAdultDrCodCount.Total, 3) as Rate
  from OrgAdultDrMhlsCompleted
  join OrgAdultDrCodCount using (State, RegId, OrgId)

13.2.1575. OrgAdultDrMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultDrMhlsCompletionRate as New
  join hist.OrgAdultDrMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.1576. OrgAdultDrMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1577. OrgAdultDrMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultDrMhlsCount as New
  join hist.OrgAdultDrMhlsCount as Old using (State, RegId, OrgId)

13.2.1578. OrgAdultDrMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultDrMhlsCount as New
  join hist.OrgAdultDrMhlsCount as Old using (State, RegId, OrgId)

13.2.1579. OrgAdultRaBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1580. OrgAdultRaBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaBasis32Completed as New
  join hist.OrgAdultRaBasis32Completed as Old using (State, RegId, OrgId)

13.2.1581. OrgAdultRaBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaBasis32Completed as New
  join hist.OrgAdultRaBasis32Completed as Old using (State, RegId, OrgId)

13.2.1582. OrgAdultRaBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRaBasis32Completed.Total, OrgAdultRaCodCount.Total, 3) as Rate
  from OrgAdultRaBasis32Completed
  join OrgAdultRaCodCount using (State, RegId, OrgId)

13.2.1583. OrgAdultRaBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRaBasis32CompletionRate as New
  join hist.OrgAdultRaBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.1584. OrgAdultRaBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1585. OrgAdultRaBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaBasis32Count as New
  join hist.OrgAdultRaBasis32Count as Old using (State, RegId, OrgId)

13.2.1586. OrgAdultRaBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaBasis32Count as New
  join hist.OrgAdultRaBasis32Count as Old using (State, RegId, OrgId)

13.2.1587. OrgAdultRaCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1588. OrgAdultRaDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1589. OrgAdultRaDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaDiagCompleted as New
  join hist.OrgAdultRaDiagCompleted as Old using (State, RegId, OrgId)

13.2.1590. OrgAdultRaDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaDiagCompleted as New
  join hist.OrgAdultRaDiagCompleted as Old using (State, RegId, OrgId)

13.2.1591. OrgAdultRaDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRaDiagCompleted.Total, OrgAdultRaCodCount.Total, 3) as Rate
  from OrgAdultRaDiagCompleted
  join OrgAdultRaCodCount using (State, RegId, OrgId)

13.2.1592. OrgAdultRaDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRaDiagCompletionRate as New
  join hist.OrgAdultRaDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.1593. OrgAdultRaDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1594. OrgAdultRaDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaDiagCount as New
  join hist.OrgAdultRaDiagCount as Old using (State, RegId, OrgId)

13.2.1595. OrgAdultRaDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaDiagCount as New
  join hist.OrgAdultRaDiagCount as Old using (State, RegId, OrgId)

13.2.1596. OrgAdultRaHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1597. OrgAdultRaHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaHonosCompleted as New
  join hist.OrgAdultRaHonosCompleted as Old using (State, RegId, OrgId)

13.2.1598. OrgAdultRaHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaHonosCompleted as New
  join hist.OrgAdultRaHonosCompleted as Old using (State, RegId, OrgId)

13.2.1599. OrgAdultRaHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRaHonosCompleted.Total, OrgAdultRaCodCount.Total, 3) as Rate
  from OrgAdultRaHonosCompleted
  join OrgAdultRaCodCount using (State, RegId, OrgId)

13.2.1600. OrgAdultRaHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRaHonosCompletionRate as New
  join hist.OrgAdultRaHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.1601. OrgAdultRaHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1602. OrgAdultRaHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaHonosCount as New
  join hist.OrgAdultRaHonosCount as Old using (State, RegId, OrgId)

13.2.1603. OrgAdultRaHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaHonosCount as New
  join hist.OrgAdultRaHonosCount as Old using (State, RegId, OrgId)

13.2.1604. OrgAdultRaK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1605. OrgAdultRaK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaK10l3dCompleted as New
  join hist.OrgAdultRaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1606. OrgAdultRaK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaK10l3dCompleted as New
  join hist.OrgAdultRaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1607. OrgAdultRaK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRaK10l3dCompleted.Total, OrgAdultRaCodCount.Total, 3) as Rate
  from OrgAdultRaK10l3dCompleted
  join OrgAdultRaCodCount using (State, RegId, OrgId)

13.2.1608. OrgAdultRaK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRaK10l3dCompletionRate as New
  join hist.OrgAdultRaK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.1609. OrgAdultRaK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1610. OrgAdultRaK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaK10l3dCount as New
  join hist.OrgAdultRaK10l3dCount as Old using (State, RegId, OrgId)

13.2.1611. OrgAdultRaK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaK10l3dCount as New
  join hist.OrgAdultRaK10l3dCount as Old using (State, RegId, OrgId)

13.2.1612. OrgAdultRaK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1613. OrgAdultRaK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaK10lmCompleted as New
  join hist.OrgAdultRaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1614. OrgAdultRaK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaK10lmCompleted as New
  join hist.OrgAdultRaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1615. OrgAdultRaK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRaK10lmCompleted.Total, OrgAdultRaCodCount.Total, 3) as Rate
  from OrgAdultRaK10lmCompleted
  join OrgAdultRaCodCount using (State, RegId, OrgId)

13.2.1616. OrgAdultRaK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRaK10lmCompletionRate as New
  join hist.OrgAdultRaK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.1617. OrgAdultRaK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1618. OrgAdultRaK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaK10lmCount as New
  join hist.OrgAdultRaK10lmCount as Old using (State, RegId, OrgId)

13.2.1619. OrgAdultRaK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaK10lmCount as New
  join hist.OrgAdultRaK10lmCount as Old using (State, RegId, OrgId)

13.2.1620. OrgAdultRaLsp16Completed

Base:

ORG

Title:

ORG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1621. OrgAdultRaLsp16CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaLsp16Completed as New
  join hist.OrgAdultRaLsp16Completed as Old using (State, RegId, OrgId)

13.2.1622. OrgAdultRaLsp16CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaLsp16Completed as New
  join hist.OrgAdultRaLsp16Completed as Old using (State, RegId, OrgId)

13.2.1623. OrgAdultRaLsp16CompletionRate

Base:

ORG

Title:

ORG-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRaLsp16Completed.Total, OrgAdultRaCodCount.Total, 3) as Rate
  from OrgAdultRaLsp16Completed
  join OrgAdultRaCodCount using (State, RegId, OrgId)

13.2.1624. OrgAdultRaLsp16CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRaLsp16CompletionRate as New
  join hist.OrgAdultRaLsp16CompletionRate as Old using (State, RegId, OrgId)

13.2.1625. OrgAdultRaLsp16Count

Base:

ORG

Title:

ORG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1626. OrgAdultRaLsp16CountChange

Base:

ORG

Title:

Change in ORG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaLsp16Count as New
  join hist.OrgAdultRaLsp16Count as Old using (State, RegId, OrgId)

13.2.1627. OrgAdultRaLsp16CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaLsp16Count as New
  join hist.OrgAdultRaLsp16Count as Old using (State, RegId, OrgId)

13.2.1628. OrgAdultRaMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1629. OrgAdultRaMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaMhi38Completed as New
  join hist.OrgAdultRaMhi38Completed as Old using (State, RegId, OrgId)

13.2.1630. OrgAdultRaMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaMhi38Completed as New
  join hist.OrgAdultRaMhi38Completed as Old using (State, RegId, OrgId)

13.2.1631. OrgAdultRaMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRaMhi38Completed.Total, OrgAdultRaCodCount.Total, 3) as Rate
  from OrgAdultRaMhi38Completed
  join OrgAdultRaCodCount using (State, RegId, OrgId)

13.2.1632. OrgAdultRaMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRaMhi38CompletionRate as New
  join hist.OrgAdultRaMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.1633. OrgAdultRaMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1634. OrgAdultRaMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaMhi38Count as New
  join hist.OrgAdultRaMhi38Count as Old using (State, RegId, OrgId)

13.2.1635. OrgAdultRaMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaMhi38Count as New
  join hist.OrgAdultRaMhi38Count as Old using (State, RegId, OrgId)

13.2.1636. OrgAdultRaMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1637. OrgAdultRaMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaMhlsCompleted as New
  join hist.OrgAdultRaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1638. OrgAdultRaMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaMhlsCompleted as New
  join hist.OrgAdultRaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1639. OrgAdultRaMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRaMhlsCompleted.Total, OrgAdultRaCodCount.Total, 3) as Rate
  from OrgAdultRaMhlsCompleted
  join OrgAdultRaCodCount using (State, RegId, OrgId)

13.2.1640. OrgAdultRaMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRaMhlsCompletionRate as New
  join hist.OrgAdultRaMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.1641. OrgAdultRaMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1642. OrgAdultRaMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaMhlsCount as New
  join hist.OrgAdultRaMhlsCount as Old using (State, RegId, OrgId)

13.2.1643. OrgAdultRaMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaMhlsCount as New
  join hist.OrgAdultRaMhlsCount as Old using (State, RegId, OrgId)

13.2.1644. OrgAdultRaPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1645. OrgAdultRaPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaPocCompleted as New
  join hist.OrgAdultRaPocCompleted as Old using (State, RegId, OrgId)

13.2.1646. OrgAdultRaPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaPocCompleted as New
  join hist.OrgAdultRaPocCompleted as Old using (State, RegId, OrgId)

13.2.1647. OrgAdultRaPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRaPocCompleted.Total, OrgAdultRaCodCount.Total, 3) as Rate
  from OrgAdultRaPocCompleted
  join OrgAdultRaCodCount using (State, RegId, OrgId)

13.2.1648. OrgAdultRaPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRaPocCompletionRate as New
  join hist.OrgAdultRaPocCompletionRate as Old using (State, RegId, OrgId)

13.2.1649. OrgAdultRaPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1650. OrgAdultRaPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRaPocCount as New
  join hist.OrgAdultRaPocCount as Old using (State, RegId, OrgId)

13.2.1651. OrgAdultRaPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRaPocCount as New
  join hist.OrgAdultRaPocCount as Old using (State, RegId, OrgId)

13.2.1652. OrgAdultRiCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1653. OrgAdultRiDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1654. OrgAdultRiDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRiDiagCompleted as New
  join hist.OrgAdultRiDiagCompleted as Old using (State, RegId, OrgId)

13.2.1655. OrgAdultRiDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRiDiagCompleted as New
  join hist.OrgAdultRiDiagCompleted as Old using (State, RegId, OrgId)

13.2.1656. OrgAdultRiDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRiDiagCompleted.Total, OrgAdultRiCodCount.Total, 3) as Rate
  from OrgAdultRiDiagCompleted
  join OrgAdultRiCodCount using (State, RegId, OrgId)

13.2.1657. OrgAdultRiDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRiDiagCompletionRate as New
  join hist.OrgAdultRiDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.1658. OrgAdultRiDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1659. OrgAdultRiDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRiDiagCount as New
  join hist.OrgAdultRiDiagCount as Old using (State, RegId, OrgId)

13.2.1660. OrgAdultRiDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRiDiagCount as New
  join hist.OrgAdultRiDiagCount as Old using (State, RegId, OrgId)

13.2.1661. OrgAdultRiHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1662. OrgAdultRiHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRiHonosCompleted as New
  join hist.OrgAdultRiHonosCompleted as Old using (State, RegId, OrgId)

13.2.1663. OrgAdultRiHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRiHonosCompleted as New
  join hist.OrgAdultRiHonosCompleted as Old using (State, RegId, OrgId)

13.2.1664. OrgAdultRiHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRiHonosCompleted.Total, OrgAdultRiCodCount.Total, 3) as Rate
  from OrgAdultRiHonosCompleted
  join OrgAdultRiCodCount using (State, RegId, OrgId)

13.2.1665. OrgAdultRiHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRiHonosCompletionRate as New
  join hist.OrgAdultRiHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.1666. OrgAdultRiHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1667. OrgAdultRiHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRiHonosCount as New
  join hist.OrgAdultRiHonosCount as Old using (State, RegId, OrgId)

13.2.1668. OrgAdultRiHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRiHonosCount as New
  join hist.OrgAdultRiHonosCount as Old using (State, RegId, OrgId)

13.2.1669. OrgAdultRiMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1670. OrgAdultRiMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRiMhlsCompleted as New
  join hist.OrgAdultRiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1671. OrgAdultRiMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRiMhlsCompleted as New
  join hist.OrgAdultRiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1672. OrgAdultRiMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRiMhlsCompleted.Total, OrgAdultRiCodCount.Total, 3) as Rate
  from OrgAdultRiMhlsCompleted
  join OrgAdultRiCodCount using (State, RegId, OrgId)

13.2.1673. OrgAdultRiMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRiMhlsCompletionRate as New
  join hist.OrgAdultRiMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.1674. OrgAdultRiMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1675. OrgAdultRiMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRiMhlsCount as New
  join hist.OrgAdultRiMhlsCount as Old using (State, RegId, OrgId)

13.2.1676. OrgAdultRiMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRiMhlsCount as New
  join hist.OrgAdultRiMhlsCount as Old using (State, RegId, OrgId)

13.2.1677. OrgAdultRiPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1678. OrgAdultRiPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRiPocCompleted as New
  join hist.OrgAdultRiPocCompleted as Old using (State, RegId, OrgId)

13.2.1679. OrgAdultRiPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRiPocCompleted as New
  join hist.OrgAdultRiPocCompleted as Old using (State, RegId, OrgId)

13.2.1680. OrgAdultRiPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRiPocCompleted.Total, OrgAdultRiCodCount.Total, 3) as Rate
  from OrgAdultRiPocCompleted
  join OrgAdultRiCodCount using (State, RegId, OrgId)

13.2.1681. OrgAdultRiPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRiPocCompletionRate as New
  join hist.OrgAdultRiPocCompletionRate as Old using (State, RegId, OrgId)

13.2.1682. OrgAdultRiPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1683. OrgAdultRiPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRiPocCount as New
  join hist.OrgAdultRiPocCount as Old using (State, RegId, OrgId)

13.2.1684. OrgAdultRiPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRiPocCount as New
  join hist.OrgAdultRiPocCount as Old using (State, RegId, OrgId)

13.2.1685. OrgAdultRrBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1686. OrgAdultRrBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrBasis32Completed as New
  join hist.OrgAdultRrBasis32Completed as Old using (State, RegId, OrgId)

13.2.1687. OrgAdultRrBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrBasis32Completed as New
  join hist.OrgAdultRrBasis32Completed as Old using (State, RegId, OrgId)

13.2.1688. OrgAdultRrBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRrBasis32Completed.Total, OrgAdultRrCodCount.Total, 3) as Rate
  from OrgAdultRrBasis32Completed
  join OrgAdultRrCodCount using (State, RegId, OrgId)

13.2.1689. OrgAdultRrBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRrBasis32CompletionRate as New
  join hist.OrgAdultRrBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.1690. OrgAdultRrBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1691. OrgAdultRrBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrBasis32Count as New
  join hist.OrgAdultRrBasis32Count as Old using (State, RegId, OrgId)

13.2.1692. OrgAdultRrBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrBasis32Count as New
  join hist.OrgAdultRrBasis32Count as Old using (State, RegId, OrgId)

13.2.1693. OrgAdultRrCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1694. OrgAdultRrDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1695. OrgAdultRrDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrDiagCompleted as New
  join hist.OrgAdultRrDiagCompleted as Old using (State, RegId, OrgId)

13.2.1696. OrgAdultRrDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrDiagCompleted as New
  join hist.OrgAdultRrDiagCompleted as Old using (State, RegId, OrgId)

13.2.1697. OrgAdultRrDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRrDiagCompleted.Total, OrgAdultRrCodCount.Total, 3) as Rate
  from OrgAdultRrDiagCompleted
  join OrgAdultRrCodCount using (State, RegId, OrgId)

13.2.1698. OrgAdultRrDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRrDiagCompletionRate as New
  join hist.OrgAdultRrDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.1699. OrgAdultRrDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1700. OrgAdultRrDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrDiagCount as New
  join hist.OrgAdultRrDiagCount as Old using (State, RegId, OrgId)

13.2.1701. OrgAdultRrDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrDiagCount as New
  join hist.OrgAdultRrDiagCount as Old using (State, RegId, OrgId)

13.2.1702. OrgAdultRrHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1703. OrgAdultRrHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrHonosCompleted as New
  join hist.OrgAdultRrHonosCompleted as Old using (State, RegId, OrgId)

13.2.1704. OrgAdultRrHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrHonosCompleted as New
  join hist.OrgAdultRrHonosCompleted as Old using (State, RegId, OrgId)

13.2.1705. OrgAdultRrHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRrHonosCompleted.Total, OrgAdultRrCodCount.Total, 3) as Rate
  from OrgAdultRrHonosCompleted
  join OrgAdultRrCodCount using (State, RegId, OrgId)

13.2.1706. OrgAdultRrHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRrHonosCompletionRate as New
  join hist.OrgAdultRrHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.1707. OrgAdultRrHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1708. OrgAdultRrHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrHonosCount as New
  join hist.OrgAdultRrHonosCount as Old using (State, RegId, OrgId)

13.2.1709. OrgAdultRrHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrHonosCount as New
  join hist.OrgAdultRrHonosCount as Old using (State, RegId, OrgId)

13.2.1710. OrgAdultRrK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1711. OrgAdultRrK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrK10l3dCompleted as New
  join hist.OrgAdultRrK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1712. OrgAdultRrK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrK10l3dCompleted as New
  join hist.OrgAdultRrK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.1713. OrgAdultRrK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRrK10l3dCompleted.Total, OrgAdultRrCodCount.Total, 3) as Rate
  from OrgAdultRrK10l3dCompleted
  join OrgAdultRrCodCount using (State, RegId, OrgId)

13.2.1714. OrgAdultRrK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRrK10l3dCompletionRate as New
  join hist.OrgAdultRrK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.1715. OrgAdultRrK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1716. OrgAdultRrK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrK10l3dCount as New
  join hist.OrgAdultRrK10l3dCount as Old using (State, RegId, OrgId)

13.2.1717. OrgAdultRrK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrK10l3dCount as New
  join hist.OrgAdultRrK10l3dCount as Old using (State, RegId, OrgId)

13.2.1718. OrgAdultRrK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1719. OrgAdultRrK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrK10lmCompleted as New
  join hist.OrgAdultRrK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1720. OrgAdultRrK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrK10lmCompleted as New
  join hist.OrgAdultRrK10lmCompleted as Old using (State, RegId, OrgId)

13.2.1721. OrgAdultRrK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRrK10lmCompleted.Total, OrgAdultRrCodCount.Total, 3) as Rate
  from OrgAdultRrK10lmCompleted
  join OrgAdultRrCodCount using (State, RegId, OrgId)

13.2.1722. OrgAdultRrK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRrK10lmCompletionRate as New
  join hist.OrgAdultRrK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.1723. OrgAdultRrK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1724. OrgAdultRrK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrK10lmCount as New
  join hist.OrgAdultRrK10lmCount as Old using (State, RegId, OrgId)

13.2.1725. OrgAdultRrK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrK10lmCount as New
  join hist.OrgAdultRrK10lmCount as Old using (State, RegId, OrgId)

13.2.1726. OrgAdultRrLsp16Completed

Base:

ORG

Title:

ORG-level count of completed LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1727. OrgAdultRrLsp16CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrLsp16Completed as New
  join hist.OrgAdultRrLsp16Completed as Old using (State, RegId, OrgId)

13.2.1728. OrgAdultRrLsp16CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrLsp16Completed as New
  join hist.OrgAdultRrLsp16Completed as Old using (State, RegId, OrgId)

13.2.1729. OrgAdultRrLsp16CompletionRate

Base:

ORG

Title:

ORG-level completion rate of LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRrLsp16Completed.Total, OrgAdultRrCodCount.Total, 3) as Rate
  from OrgAdultRrLsp16Completed
  join OrgAdultRrCodCount using (State, RegId, OrgId)

13.2.1730. OrgAdultRrLsp16CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRrLsp16CompletionRate as New
  join hist.OrgAdultRrLsp16CompletionRate as Old using (State, RegId, OrgId)

13.2.1731. OrgAdultRrLsp16Count

Base:

ORG

Title:

ORG-level count of all LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1732. OrgAdultRrLsp16CountChange

Base:

ORG

Title:

Change in ORG-level count of all LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrLsp16Count as New
  join hist.OrgAdultRrLsp16Count as Old using (State, RegId, OrgId)

13.2.1733. OrgAdultRrLsp16CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrLsp16Count as New
  join hist.OrgAdultRrLsp16Count as Old using (State, RegId, OrgId)

13.2.1734. OrgAdultRrMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1735. OrgAdultRrMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrMhi38Completed as New
  join hist.OrgAdultRrMhi38Completed as Old using (State, RegId, OrgId)

13.2.1736. OrgAdultRrMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrMhi38Completed as New
  join hist.OrgAdultRrMhi38Completed as Old using (State, RegId, OrgId)

13.2.1737. OrgAdultRrMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRrMhi38Completed.Total, OrgAdultRrCodCount.Total, 3) as Rate
  from OrgAdultRrMhi38Completed
  join OrgAdultRrCodCount using (State, RegId, OrgId)

13.2.1738. OrgAdultRrMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRrMhi38CompletionRate as New
  join hist.OrgAdultRrMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.1739. OrgAdultRrMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1740. OrgAdultRrMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrMhi38Count as New
  join hist.OrgAdultRrMhi38Count as Old using (State, RegId, OrgId)

13.2.1741. OrgAdultRrMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrMhi38Count as New
  join hist.OrgAdultRrMhi38Count as Old using (State, RegId, OrgId)

13.2.1742. OrgAdultRrMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1743. OrgAdultRrMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrMhlsCompleted as New
  join hist.OrgAdultRrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1744. OrgAdultRrMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrMhlsCompleted as New
  join hist.OrgAdultRrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1745. OrgAdultRrMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRrMhlsCompleted.Total, OrgAdultRrCodCount.Total, 3) as Rate
  from OrgAdultRrMhlsCompleted
  join OrgAdultRrCodCount using (State, RegId, OrgId)

13.2.1746. OrgAdultRrMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRrMhlsCompletionRate as New
  join hist.OrgAdultRrMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.1747. OrgAdultRrMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1748. OrgAdultRrMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrMhlsCount as New
  join hist.OrgAdultRrMhlsCount as Old using (State, RegId, OrgId)

13.2.1749. OrgAdultRrMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrMhlsCount as New
  join hist.OrgAdultRrMhlsCount as Old using (State, RegId, OrgId)

13.2.1750. OrgAdultRrPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1751. OrgAdultRrPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrPocCompleted as New
  join hist.OrgAdultRrPocCompleted as Old using (State, RegId, OrgId)

13.2.1752. OrgAdultRrPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrPocCompleted as New
  join hist.OrgAdultRrPocCompleted as Old using (State, RegId, OrgId)

13.2.1753. OrgAdultRrPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgAdultRrPocCompleted.Total, OrgAdultRrCodCount.Total, 3) as Rate
  from OrgAdultRrPocCompleted
  join OrgAdultRrCodCount using (State, RegId, OrgId)

13.2.1754. OrgAdultRrPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgAdultRrPocCompletionRate as New
  join hist.OrgAdultRrPocCompletionRate as Old using (State, RegId, OrgId)

13.2.1755. OrgAdultRrPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1756. OrgAdultRrPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgAdultRrPocCount as New
  join hist.OrgAdultRrPocCount as Old using (State, RegId, OrgId)

13.2.1757. OrgAdultRrPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgAdultRrPocCount as New
  join hist.OrgAdultRrPocCount as Old using (State, RegId, OrgId)

13.2.1758. OrgAmbuCACount

Base:

ORG

Title:

SERV Child and adolescent Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '3'
           and TargetPop = '1'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1759. OrgAmbuCount

Base:

ORG

Title:

Ambu Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '3'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1760. OrgAmbuForCount

Base:

ORG

Title:

SERV Forensic Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '3'
           and TargetPop = '3'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1761. OrgAmbuGenCount

Base:

ORG

Title:

SERV General Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '3'
           and TargetPop = '4'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1762. OrgAmbuOldCount

Base:

ORG

Title:

SERV Older person Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '3'
           and TargetPop = '2'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1763. OrgAmbuYthCount

Base:

ORG

Title:

SERV Youth Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '3'
           and TargetPop = '5'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.1764. OrgChildAaCgasCompleted

Base:

ORG

Title:

ORG-level count of completed CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1765. OrgChildAaCgasCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAaCgasCompleted as New
  join hist.OrgChildAaCgasCompleted as Old using (State, RegId, OrgId)

13.2.1766. OrgChildAaCgasCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAaCgasCompleted as New
  join hist.OrgChildAaCgasCompleted as Old using (State, RegId, OrgId)

13.2.1767. OrgChildAaCgasCompletionRate

Base:

ORG

Title:

ORG-level completion rate of CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildAaCgasCompleted.Total, OrgChildAaCodCount.Total, 3) as Rate
  from OrgChildAaCgasCompleted
  join OrgChildAaCodCount using (State, RegId, OrgId)

13.2.1768. OrgChildAaCgasCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildAaCgasCompletionRate as New
  join hist.OrgChildAaCgasCompletionRate as Old using (State, RegId, OrgId)

13.2.1769. OrgChildAaCgasCount

Base:

ORG

Title:

ORG-level count of all CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1770. OrgChildAaCgasCountChange

Base:

ORG

Title:

Change in ORG-level count of all CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAaCgasCount as New
  join hist.OrgChildAaCgasCount as Old using (State, RegId, OrgId)

13.2.1771. OrgChildAaCgasCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAaCgasCount as New
  join hist.OrgChildAaCgasCount as Old using (State, RegId, OrgId)

13.2.1772. OrgChildAaCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1773. OrgChildAaHonoscaCompleted

Base:

ORG

Title:

ORG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1774. OrgChildAaHonoscaCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAaHonoscaCompleted as New
  join hist.OrgChildAaHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1775. OrgChildAaHonoscaCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAaHonoscaCompleted as New
  join hist.OrgChildAaHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1776. OrgChildAaHonoscaCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildAaHonoscaCompleted.Total, OrgChildAaCodCount.Total, 3) as Rate
  from OrgChildAaHonoscaCompleted
  join OrgChildAaCodCount using (State, RegId, OrgId)

13.2.1777. OrgChildAaHonoscaCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildAaHonoscaCompletionRate as New
  join hist.OrgChildAaHonoscaCompletionRate as Old using (State, RegId, OrgId)

13.2.1778. OrgChildAaHonoscaCount

Base:

ORG

Title:

ORG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1779. OrgChildAaHonoscaCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAaHonoscaCount as New
  join hist.OrgChildAaHonoscaCount as Old using (State, RegId, OrgId)

13.2.1780. OrgChildAaHonoscaCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAaHonoscaCount as New
  join hist.OrgChildAaHonoscaCount as Old using (State, RegId, OrgId)

13.2.1781. OrgChildAaSdqCompleted

Base:

ORG

Title:

ORG-level count of completed SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1782. OrgChildAaSdqCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAaSdqCompleted as New
  join hist.OrgChildAaSdqCompleted as Old using (State, RegId, OrgId)

13.2.1783. OrgChildAaSdqCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAaSdqCompleted as New
  join hist.OrgChildAaSdqCompleted as Old using (State, RegId, OrgId)

13.2.1784. OrgChildAaSdqCompletionRate

Base:

ORG

Title:

ORG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildAaSdqCompleted.Total, OrgChildAaCodCount.Total, 3) as Rate
  from OrgChildAaSdqCompleted
  join OrgChildAaCodCount using (State, RegId, OrgId)

13.2.1785. OrgChildAaSdqCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildAaSdqCompletionRate as New
  join hist.OrgChildAaSdqCompletionRate as Old using (State, RegId, OrgId)

13.2.1786. OrgChildAaSdqCount

Base:

ORG

Title:

ORG-level count of all SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1787. OrgChildAaSdqCountChange

Base:

ORG

Title:

Change in ORG-level count of all SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAaSdqCount as New
  join hist.OrgChildAaSdqCount as Old using (State, RegId, OrgId)

13.2.1788. OrgChildAaSdqCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAaSdqCount as New
  join hist.OrgChildAaSdqCount as Old using (State, RegId, OrgId)

13.2.1789. OrgChildAiCgasCompleted

Base:

ORG

Title:

ORG-level count of completed CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1790. OrgChildAiCgasCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAiCgasCompleted as New
  join hist.OrgChildAiCgasCompleted as Old using (State, RegId, OrgId)

13.2.1791. OrgChildAiCgasCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAiCgasCompleted as New
  join hist.OrgChildAiCgasCompleted as Old using (State, RegId, OrgId)

13.2.1792. OrgChildAiCgasCompletionRate

Base:

ORG

Title:

ORG-level completion rate of CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildAiCgasCompleted.Total, OrgChildAiCodCount.Total, 3) as Rate
  from OrgChildAiCgasCompleted
  join OrgChildAiCodCount using (State, RegId, OrgId)

13.2.1793. OrgChildAiCgasCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildAiCgasCompletionRate as New
  join hist.OrgChildAiCgasCompletionRate as Old using (State, RegId, OrgId)

13.2.1794. OrgChildAiCgasCount

Base:

ORG

Title:

ORG-level count of all CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1795. OrgChildAiCgasCountChange

Base:

ORG

Title:

Change in ORG-level count of all CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAiCgasCount as New
  join hist.OrgChildAiCgasCount as Old using (State, RegId, OrgId)

13.2.1796. OrgChildAiCgasCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAiCgasCount as New
  join hist.OrgChildAiCgasCount as Old using (State, RegId, OrgId)

13.2.1797. OrgChildAiCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1798. OrgChildAiHonoscaCompleted

Base:

ORG

Title:

ORG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1799. OrgChildAiHonoscaCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAiHonoscaCompleted as New
  join hist.OrgChildAiHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1800. OrgChildAiHonoscaCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAiHonoscaCompleted as New
  join hist.OrgChildAiHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1801. OrgChildAiHonoscaCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildAiHonoscaCompleted.Total, OrgChildAiCodCount.Total, 3) as Rate
  from OrgChildAiHonoscaCompleted
  join OrgChildAiCodCount using (State, RegId, OrgId)

13.2.1802. OrgChildAiHonoscaCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildAiHonoscaCompletionRate as New
  join hist.OrgChildAiHonoscaCompletionRate as Old using (State, RegId, OrgId)

13.2.1803. OrgChildAiHonoscaCount

Base:

ORG

Title:

ORG-level count of all HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1804. OrgChildAiHonoscaCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAiHonoscaCount as New
  join hist.OrgChildAiHonoscaCount as Old using (State, RegId, OrgId)

13.2.1805. OrgChildAiHonoscaCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAiHonoscaCount as New
  join hist.OrgChildAiHonoscaCount as Old using (State, RegId, OrgId)

13.2.1806. OrgChildAiSdqCompleted

Base:

ORG

Title:

ORG-level count of completed SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1807. OrgChildAiSdqCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAiSdqCompleted as New
  join hist.OrgChildAiSdqCompleted as Old using (State, RegId, OrgId)

13.2.1808. OrgChildAiSdqCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAiSdqCompleted as New
  join hist.OrgChildAiSdqCompleted as Old using (State, RegId, OrgId)

13.2.1809. OrgChildAiSdqCompletionRate

Base:

ORG

Title:

ORG-level completion rate of SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildAiSdqCompleted.Total, OrgChildAiCodCount.Total, 3) as Rate
  from OrgChildAiSdqCompleted
  join OrgChildAiCodCount using (State, RegId, OrgId)

13.2.1810. OrgChildAiSdqCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildAiSdqCompletionRate as New
  join hist.OrgChildAiSdqCompletionRate as Old using (State, RegId, OrgId)

13.2.1811. OrgChildAiSdqCount

Base:

ORG

Title:

ORG-level count of all SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1812. OrgChildAiSdqCountChange

Base:

ORG

Title:

Change in ORG-level count of all SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildAiSdqCount as New
  join hist.OrgChildAiSdqCount as Old using (State, RegId, OrgId)

13.2.1813. OrgChildAiSdqCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildAiSdqCount as New
  join hist.OrgChildAiSdqCount as Old using (State, RegId, OrgId)

13.2.1814. OrgChildArCgasCompleted

Base:

ORG

Title:

ORG-level count of completed CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1815. OrgChildArCgasCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildArCgasCompleted as New
  join hist.OrgChildArCgasCompleted as Old using (State, RegId, OrgId)

13.2.1816. OrgChildArCgasCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildArCgasCompleted as New
  join hist.OrgChildArCgasCompleted as Old using (State, RegId, OrgId)

13.2.1817. OrgChildArCgasCompletionRate

Base:

ORG

Title:

ORG-level completion rate of CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildArCgasCompleted.Total, OrgChildArCodCount.Total, 3) as Rate
  from OrgChildArCgasCompleted
  join OrgChildArCodCount using (State, RegId, OrgId)

13.2.1818. OrgChildArCgasCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildArCgasCompletionRate as New
  join hist.OrgChildArCgasCompletionRate as Old using (State, RegId, OrgId)

13.2.1819. OrgChildArCgasCount

Base:

ORG

Title:

ORG-level count of all CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1820. OrgChildArCgasCountChange

Base:

ORG

Title:

Change in ORG-level count of all CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildArCgasCount as New
  join hist.OrgChildArCgasCount as Old using (State, RegId, OrgId)

13.2.1821. OrgChildArCgasCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildArCgasCount as New
  join hist.OrgChildArCgasCount as Old using (State, RegId, OrgId)

13.2.1822. OrgChildArCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1823. OrgChildArHonoscaCompleted

Base:

ORG

Title:

ORG-level count of completed HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1824. OrgChildArHonoscaCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildArHonoscaCompleted as New
  join hist.OrgChildArHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1825. OrgChildArHonoscaCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildArHonoscaCompleted as New
  join hist.OrgChildArHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1826. OrgChildArHonoscaCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildArHonoscaCompleted.Total, OrgChildArCodCount.Total, 3) as Rate
  from OrgChildArHonoscaCompleted
  join OrgChildArCodCount using (State, RegId, OrgId)

13.2.1827. OrgChildArHonoscaCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildArHonoscaCompletionRate as New
  join hist.OrgChildArHonoscaCompletionRate as Old using (State, RegId, OrgId)

13.2.1828. OrgChildArHonoscaCount

Base:

ORG

Title:

ORG-level count of all HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1829. OrgChildArHonoscaCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildArHonoscaCount as New
  join hist.OrgChildArHonoscaCount as Old using (State, RegId, OrgId)

13.2.1830. OrgChildArHonoscaCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildArHonoscaCount as New
  join hist.OrgChildArHonoscaCount as Old using (State, RegId, OrgId)

13.2.1831. OrgChildArSdqCompleted

Base:

ORG

Title:

ORG-level count of completed SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1832. OrgChildArSdqCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildArSdqCompleted as New
  join hist.OrgChildArSdqCompleted as Old using (State, RegId, OrgId)

13.2.1833. OrgChildArSdqCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildArSdqCompleted as New
  join hist.OrgChildArSdqCompleted as Old using (State, RegId, OrgId)

13.2.1834. OrgChildArSdqCompletionRate

Base:

ORG

Title:

ORG-level completion rate of SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildArSdqCompleted.Total, OrgChildArCodCount.Total, 3) as Rate
  from OrgChildArSdqCompleted
  join OrgChildArCodCount using (State, RegId, OrgId)

13.2.1835. OrgChildArSdqCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildArSdqCompletionRate as New
  join hist.OrgChildArSdqCompletionRate as Old using (State, RegId, OrgId)

13.2.1836. OrgChildArSdqCount

Base:

ORG

Title:

ORG-level count of all SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1837. OrgChildArSdqCountChange

Base:

ORG

Title:

Change in ORG-level count of all SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildArSdqCount as New
  join hist.OrgChildArSdqCount as Old using (State, RegId, OrgId)

13.2.1838. OrgChildArSdqCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildArSdqCount as New
  join hist.OrgChildArSdqCount as Old using (State, RegId, OrgId)

13.2.1839. OrgChildDaCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1840. OrgChildDaDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1841. OrgChildDaDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDaDiagCompleted as New
  join hist.OrgChildDaDiagCompleted as Old using (State, RegId, OrgId)

13.2.1842. OrgChildDaDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDaDiagCompleted as New
  join hist.OrgChildDaDiagCompleted as Old using (State, RegId, OrgId)

13.2.1843. OrgChildDaDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDaDiagCompleted.Total, OrgChildDaCodCount.Total, 3) as Rate
  from OrgChildDaDiagCompleted
  join OrgChildDaCodCount using (State, RegId, OrgId)

13.2.1844. OrgChildDaDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDaDiagCompletionRate as New
  join hist.OrgChildDaDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.1845. OrgChildDaDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1846. OrgChildDaDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDaDiagCount as New
  join hist.OrgChildDaDiagCount as Old using (State, RegId, OrgId)

13.2.1847. OrgChildDaDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDaDiagCount as New
  join hist.OrgChildDaDiagCount as Old using (State, RegId, OrgId)

13.2.1848. OrgChildDaFihsCompleted

Base:

ORG

Title:

ORG-level count of completed FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1849. OrgChildDaFihsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDaFihsCompleted as New
  join hist.OrgChildDaFihsCompleted as Old using (State, RegId, OrgId)

13.2.1850. OrgChildDaFihsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDaFihsCompleted as New
  join hist.OrgChildDaFihsCompleted as Old using (State, RegId, OrgId)

13.2.1851. OrgChildDaFihsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDaFihsCompleted.Total, OrgChildDaCodCount.Total, 3) as Rate
  from OrgChildDaFihsCompleted
  join OrgChildDaCodCount using (State, RegId, OrgId)

13.2.1852. OrgChildDaFihsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDaFihsCompletionRate as New
  join hist.OrgChildDaFihsCompletionRate as Old using (State, RegId, OrgId)

13.2.1853. OrgChildDaFihsCount

Base:

ORG

Title:

ORG-level count of all FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1854. OrgChildDaFihsCountChange

Base:

ORG

Title:

Change in ORG-level count of all FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDaFihsCount as New
  join hist.OrgChildDaFihsCount as Old using (State, RegId, OrgId)

13.2.1855. OrgChildDaFihsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDaFihsCount as New
  join hist.OrgChildDaFihsCount as Old using (State, RegId, OrgId)

13.2.1856. OrgChildDaHonoscaCompleted

Base:

ORG

Title:

ORG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1857. OrgChildDaHonoscaCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDaHonoscaCompleted as New
  join hist.OrgChildDaHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1858. OrgChildDaHonoscaCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDaHonoscaCompleted as New
  join hist.OrgChildDaHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1859. OrgChildDaHonoscaCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDaHonoscaCompleted.Total, OrgChildDaCodCount.Total, 3) as Rate
  from OrgChildDaHonoscaCompleted
  join OrgChildDaCodCount using (State, RegId, OrgId)

13.2.1860. OrgChildDaHonoscaCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDaHonoscaCompletionRate as New
  join hist.OrgChildDaHonoscaCompletionRate as Old using (State, RegId, OrgId)

13.2.1861. OrgChildDaHonoscaCount

Base:

ORG

Title:

ORG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1862. OrgChildDaHonoscaCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDaHonoscaCount as New
  join hist.OrgChildDaHonoscaCount as Old using (State, RegId, OrgId)

13.2.1863. OrgChildDaHonoscaCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDaHonoscaCount as New
  join hist.OrgChildDaHonoscaCount as Old using (State, RegId, OrgId)

13.2.1864. OrgChildDaMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1865. OrgChildDaMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDaMhlsCompleted as New
  join hist.OrgChildDaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1866. OrgChildDaMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDaMhlsCompleted as New
  join hist.OrgChildDaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1867. OrgChildDaMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDaMhlsCompleted.Total, OrgChildDaCodCount.Total, 3) as Rate
  from OrgChildDaMhlsCompleted
  join OrgChildDaCodCount using (State, RegId, OrgId)

13.2.1868. OrgChildDaMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDaMhlsCompletionRate as New
  join hist.OrgChildDaMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.1869. OrgChildDaMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1870. OrgChildDaMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDaMhlsCount as New
  join hist.OrgChildDaMhlsCount as Old using (State, RegId, OrgId)

13.2.1871. OrgChildDaMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDaMhlsCount as New
  join hist.OrgChildDaMhlsCount as Old using (State, RegId, OrgId)

13.2.1872. OrgChildDaSdqCompleted

Base:

ORG

Title:

ORG-level count of completed SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1873. OrgChildDaSdqCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDaSdqCompleted as New
  join hist.OrgChildDaSdqCompleted as Old using (State, RegId, OrgId)

13.2.1874. OrgChildDaSdqCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDaSdqCompleted as New
  join hist.OrgChildDaSdqCompleted as Old using (State, RegId, OrgId)

13.2.1875. OrgChildDaSdqCompletionRate

Base:

ORG

Title:

ORG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDaSdqCompleted.Total, OrgChildDaCodCount.Total, 3) as Rate
  from OrgChildDaSdqCompleted
  join OrgChildDaCodCount using (State, RegId, OrgId)

13.2.1876. OrgChildDaSdqCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDaSdqCompletionRate as New
  join hist.OrgChildDaSdqCompletionRate as Old using (State, RegId, OrgId)

13.2.1877. OrgChildDaSdqCount

Base:

ORG

Title:

ORG-level count of all SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1878. OrgChildDaSdqCountChange

Base:

ORG

Title:

Change in ORG-level count of all SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDaSdqCount as New
  join hist.OrgChildDaSdqCount as Old using (State, RegId, OrgId)

13.2.1879. OrgChildDaSdqCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDaSdqCount as New
  join hist.OrgChildDaSdqCount as Old using (State, RegId, OrgId)

13.2.1880. OrgChildDiCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1881. OrgChildDiDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1882. OrgChildDiDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDiDiagCompleted as New
  join hist.OrgChildDiDiagCompleted as Old using (State, RegId, OrgId)

13.2.1883. OrgChildDiDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDiDiagCompleted as New
  join hist.OrgChildDiDiagCompleted as Old using (State, RegId, OrgId)

13.2.1884. OrgChildDiDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDiDiagCompleted.Total, OrgChildDiCodCount.Total, 3) as Rate
  from OrgChildDiDiagCompleted
  join OrgChildDiCodCount using (State, RegId, OrgId)

13.2.1885. OrgChildDiDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDiDiagCompletionRate as New
  join hist.OrgChildDiDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.1886. OrgChildDiDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1887. OrgChildDiDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDiDiagCount as New
  join hist.OrgChildDiDiagCount as Old using (State, RegId, OrgId)

13.2.1888. OrgChildDiDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDiDiagCount as New
  join hist.OrgChildDiDiagCount as Old using (State, RegId, OrgId)

13.2.1889. OrgChildDiFihsCompleted

Base:

ORG

Title:

ORG-level count of completed FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1890. OrgChildDiFihsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDiFihsCompleted as New
  join hist.OrgChildDiFihsCompleted as Old using (State, RegId, OrgId)

13.2.1891. OrgChildDiFihsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDiFihsCompleted as New
  join hist.OrgChildDiFihsCompleted as Old using (State, RegId, OrgId)

13.2.1892. OrgChildDiFihsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDiFihsCompleted.Total, OrgChildDiCodCount.Total, 3) as Rate
  from OrgChildDiFihsCompleted
  join OrgChildDiCodCount using (State, RegId, OrgId)

13.2.1893. OrgChildDiFihsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDiFihsCompletionRate as New
  join hist.OrgChildDiFihsCompletionRate as Old using (State, RegId, OrgId)

13.2.1894. OrgChildDiFihsCount

Base:

ORG

Title:

ORG-level count of all FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1895. OrgChildDiFihsCountChange

Base:

ORG

Title:

Change in ORG-level count of all FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDiFihsCount as New
  join hist.OrgChildDiFihsCount as Old using (State, RegId, OrgId)

13.2.1896. OrgChildDiFihsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDiFihsCount as New
  join hist.OrgChildDiFihsCount as Old using (State, RegId, OrgId)

13.2.1897. OrgChildDiHonoscaCompleted

Base:

ORG

Title:

ORG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1898. OrgChildDiHonoscaCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDiHonoscaCompleted as New
  join hist.OrgChildDiHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1899. OrgChildDiHonoscaCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDiHonoscaCompleted as New
  join hist.OrgChildDiHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1900. OrgChildDiHonoscaCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDiHonoscaCompleted.Total, OrgChildDiCodCount.Total, 3) as Rate
  from OrgChildDiHonoscaCompleted
  join OrgChildDiCodCount using (State, RegId, OrgId)

13.2.1901. OrgChildDiHonoscaCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDiHonoscaCompletionRate as New
  join hist.OrgChildDiHonoscaCompletionRate as Old using (State, RegId, OrgId)

13.2.1902. OrgChildDiHonoscaCount

Base:

ORG

Title:

ORG-level count of all HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1903. OrgChildDiHonoscaCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDiHonoscaCount as New
  join hist.OrgChildDiHonoscaCount as Old using (State, RegId, OrgId)

13.2.1904. OrgChildDiHonoscaCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDiHonoscaCount as New
  join hist.OrgChildDiHonoscaCount as Old using (State, RegId, OrgId)

13.2.1905. OrgChildDiMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1906. OrgChildDiMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDiMhlsCompleted as New
  join hist.OrgChildDiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1907. OrgChildDiMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDiMhlsCompleted as New
  join hist.OrgChildDiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1908. OrgChildDiMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDiMhlsCompleted.Total, OrgChildDiCodCount.Total, 3) as Rate
  from OrgChildDiMhlsCompleted
  join OrgChildDiCodCount using (State, RegId, OrgId)

13.2.1909. OrgChildDiMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDiMhlsCompletionRate as New
  join hist.OrgChildDiMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.1910. OrgChildDiMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1911. OrgChildDiMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDiMhlsCount as New
  join hist.OrgChildDiMhlsCount as Old using (State, RegId, OrgId)

13.2.1912. OrgChildDiMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDiMhlsCount as New
  join hist.OrgChildDiMhlsCount as Old using (State, RegId, OrgId)

13.2.1913. OrgChildDiSdqCompleted

Base:

ORG

Title:

ORG-level count of completed SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1914. OrgChildDiSdqCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDiSdqCompleted as New
  join hist.OrgChildDiSdqCompleted as Old using (State, RegId, OrgId)

13.2.1915. OrgChildDiSdqCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDiSdqCompleted as New
  join hist.OrgChildDiSdqCompleted as Old using (State, RegId, OrgId)

13.2.1916. OrgChildDiSdqCompletionRate

Base:

ORG

Title:

ORG-level completion rate of SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDiSdqCompleted.Total, OrgChildDiCodCount.Total, 3) as Rate
  from OrgChildDiSdqCompleted
  join OrgChildDiCodCount using (State, RegId, OrgId)

13.2.1917. OrgChildDiSdqCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDiSdqCompletionRate as New
  join hist.OrgChildDiSdqCompletionRate as Old using (State, RegId, OrgId)

13.2.1918. OrgChildDiSdqCount

Base:

ORG

Title:

ORG-level count of all SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1919. OrgChildDiSdqCountChange

Base:

ORG

Title:

Change in ORG-level count of all SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDiSdqCount as New
  join hist.OrgChildDiSdqCount as Old using (State, RegId, OrgId)

13.2.1920. OrgChildDiSdqCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDiSdqCount as New
  join hist.OrgChildDiSdqCount as Old using (State, RegId, OrgId)

13.2.1921. OrgChildDrCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1922. OrgChildDrDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1923. OrgChildDrDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDrDiagCompleted as New
  join hist.OrgChildDrDiagCompleted as Old using (State, RegId, OrgId)

13.2.1924. OrgChildDrDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDrDiagCompleted as New
  join hist.OrgChildDrDiagCompleted as Old using (State, RegId, OrgId)

13.2.1925. OrgChildDrDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDrDiagCompleted.Total, OrgChildDrCodCount.Total, 3) as Rate
  from OrgChildDrDiagCompleted
  join OrgChildDrCodCount using (State, RegId, OrgId)

13.2.1926. OrgChildDrDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDrDiagCompletionRate as New
  join hist.OrgChildDrDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.1927. OrgChildDrDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1928. OrgChildDrDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDrDiagCount as New
  join hist.OrgChildDrDiagCount as Old using (State, RegId, OrgId)

13.2.1929. OrgChildDrDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDrDiagCount as New
  join hist.OrgChildDrDiagCount as Old using (State, RegId, OrgId)

13.2.1930. OrgChildDrFihsCompleted

Base:

ORG

Title:

ORG-level count of completed FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1931. OrgChildDrFihsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDrFihsCompleted as New
  join hist.OrgChildDrFihsCompleted as Old using (State, RegId, OrgId)

13.2.1932. OrgChildDrFihsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDrFihsCompleted as New
  join hist.OrgChildDrFihsCompleted as Old using (State, RegId, OrgId)

13.2.1933. OrgChildDrFihsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDrFihsCompleted.Total, OrgChildDrCodCount.Total, 3) as Rate
  from OrgChildDrFihsCompleted
  join OrgChildDrCodCount using (State, RegId, OrgId)

13.2.1934. OrgChildDrFihsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDrFihsCompletionRate as New
  join hist.OrgChildDrFihsCompletionRate as Old using (State, RegId, OrgId)

13.2.1935. OrgChildDrFihsCount

Base:

ORG

Title:

ORG-level count of all FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1936. OrgChildDrFihsCountChange

Base:

ORG

Title:

Change in ORG-level count of all FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDrFihsCount as New
  join hist.OrgChildDrFihsCount as Old using (State, RegId, OrgId)

13.2.1937. OrgChildDrFihsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDrFihsCount as New
  join hist.OrgChildDrFihsCount as Old using (State, RegId, OrgId)

13.2.1938. OrgChildDrHonoscaCompleted

Base:

ORG

Title:

ORG-level count of completed HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1939. OrgChildDrHonoscaCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDrHonoscaCompleted as New
  join hist.OrgChildDrHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1940. OrgChildDrHonoscaCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDrHonoscaCompleted as New
  join hist.OrgChildDrHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1941. OrgChildDrHonoscaCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDrHonoscaCompleted.Total, OrgChildDrCodCount.Total, 3) as Rate
  from OrgChildDrHonoscaCompleted
  join OrgChildDrCodCount using (State, RegId, OrgId)

13.2.1942. OrgChildDrHonoscaCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDrHonoscaCompletionRate as New
  join hist.OrgChildDrHonoscaCompletionRate as Old using (State, RegId, OrgId)

13.2.1943. OrgChildDrHonoscaCount

Base:

ORG

Title:

ORG-level count of all HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1944. OrgChildDrHonoscaCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDrHonoscaCount as New
  join hist.OrgChildDrHonoscaCount as Old using (State, RegId, OrgId)

13.2.1945. OrgChildDrHonoscaCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDrHonoscaCount as New
  join hist.OrgChildDrHonoscaCount as Old using (State, RegId, OrgId)

13.2.1946. OrgChildDrMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1947. OrgChildDrMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDrMhlsCompleted as New
  join hist.OrgChildDrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1948. OrgChildDrMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDrMhlsCompleted as New
  join hist.OrgChildDrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1949. OrgChildDrMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDrMhlsCompleted.Total, OrgChildDrCodCount.Total, 3) as Rate
  from OrgChildDrMhlsCompleted
  join OrgChildDrCodCount using (State, RegId, OrgId)

13.2.1950. OrgChildDrMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDrMhlsCompletionRate as New
  join hist.OrgChildDrMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.1951. OrgChildDrMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1952. OrgChildDrMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDrMhlsCount as New
  join hist.OrgChildDrMhlsCount as Old using (State, RegId, OrgId)

13.2.1953. OrgChildDrMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDrMhlsCount as New
  join hist.OrgChildDrMhlsCount as Old using (State, RegId, OrgId)

13.2.1954. OrgChildDrSdqCompleted

Base:

ORG

Title:

ORG-level count of completed SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1955. OrgChildDrSdqCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDrSdqCompleted as New
  join hist.OrgChildDrSdqCompleted as Old using (State, RegId, OrgId)

13.2.1956. OrgChildDrSdqCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDrSdqCompleted as New
  join hist.OrgChildDrSdqCompleted as Old using (State, RegId, OrgId)

13.2.1957. OrgChildDrSdqCompletionRate

Base:

ORG

Title:

ORG-level completion rate of SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildDrSdqCompleted.Total, OrgChildDrCodCount.Total, 3) as Rate
  from OrgChildDrSdqCompleted
  join OrgChildDrCodCount using (State, RegId, OrgId)

13.2.1958. OrgChildDrSdqCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildDrSdqCompletionRate as New
  join hist.OrgChildDrSdqCompletionRate as Old using (State, RegId, OrgId)

13.2.1959. OrgChildDrSdqCount

Base:

ORG

Title:

ORG-level count of all SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1960. OrgChildDrSdqCountChange

Base:

ORG

Title:

Change in ORG-level count of all SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildDrSdqCount as New
  join hist.OrgChildDrSdqCount as Old using (State, RegId, OrgId)

13.2.1961. OrgChildDrSdqCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildDrSdqCount as New
  join hist.OrgChildDrSdqCount as Old using (State, RegId, OrgId)

13.2.1962. OrgChildRaCgasCompleted

Base:

ORG

Title:

ORG-level count of completed CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1963. OrgChildRaCgasCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaCgasCompleted as New
  join hist.OrgChildRaCgasCompleted as Old using (State, RegId, OrgId)

13.2.1964. OrgChildRaCgasCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaCgasCompleted as New
  join hist.OrgChildRaCgasCompleted as Old using (State, RegId, OrgId)

13.2.1965. OrgChildRaCgasCompletionRate

Base:

ORG

Title:

ORG-level completion rate of CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRaCgasCompleted.Total, OrgChildRaCodCount.Total, 3) as Rate
  from OrgChildRaCgasCompleted
  join OrgChildRaCodCount using (State, RegId, OrgId)

13.2.1966. OrgChildRaCgasCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRaCgasCompletionRate as New
  join hist.OrgChildRaCgasCompletionRate as Old using (State, RegId, OrgId)

13.2.1967. OrgChildRaCgasCount

Base:

ORG

Title:

ORG-level count of all CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1968. OrgChildRaCgasCountChange

Base:

ORG

Title:

Change in ORG-level count of all CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaCgasCount as New
  join hist.OrgChildRaCgasCount as Old using (State, RegId, OrgId)

13.2.1969. OrgChildRaCgasCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaCgasCount as New
  join hist.OrgChildRaCgasCount as Old using (State, RegId, OrgId)

13.2.1970. OrgChildRaCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1971. OrgChildRaDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1972. OrgChildRaDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaDiagCompleted as New
  join hist.OrgChildRaDiagCompleted as Old using (State, RegId, OrgId)

13.2.1973. OrgChildRaDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaDiagCompleted as New
  join hist.OrgChildRaDiagCompleted as Old using (State, RegId, OrgId)

13.2.1974. OrgChildRaDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRaDiagCompleted.Total, OrgChildRaCodCount.Total, 3) as Rate
  from OrgChildRaDiagCompleted
  join OrgChildRaCodCount using (State, RegId, OrgId)

13.2.1975. OrgChildRaDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRaDiagCompletionRate as New
  join hist.OrgChildRaDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.1976. OrgChildRaDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1977. OrgChildRaDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaDiagCount as New
  join hist.OrgChildRaDiagCount as Old using (State, RegId, OrgId)

13.2.1978. OrgChildRaDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaDiagCount as New
  join hist.OrgChildRaDiagCount as Old using (State, RegId, OrgId)

13.2.1979. OrgChildRaFihsCompleted

Base:

ORG

Title:

ORG-level count of completed FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1980. OrgChildRaFihsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaFihsCompleted as New
  join hist.OrgChildRaFihsCompleted as Old using (State, RegId, OrgId)

13.2.1981. OrgChildRaFihsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaFihsCompleted as New
  join hist.OrgChildRaFihsCompleted as Old using (State, RegId, OrgId)

13.2.1982. OrgChildRaFihsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRaFihsCompleted.Total, OrgChildRaCodCount.Total, 3) as Rate
  from OrgChildRaFihsCompleted
  join OrgChildRaCodCount using (State, RegId, OrgId)

13.2.1983. OrgChildRaFihsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRaFihsCompletionRate as New
  join hist.OrgChildRaFihsCompletionRate as Old using (State, RegId, OrgId)

13.2.1984. OrgChildRaFihsCount

Base:

ORG

Title:

ORG-level count of all FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1985. OrgChildRaFihsCountChange

Base:

ORG

Title:

Change in ORG-level count of all FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaFihsCount as New
  join hist.OrgChildRaFihsCount as Old using (State, RegId, OrgId)

13.2.1986. OrgChildRaFihsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaFihsCount as New
  join hist.OrgChildRaFihsCount as Old using (State, RegId, OrgId)

13.2.1987. OrgChildRaHonoscaCompleted

Base:

ORG

Title:

ORG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1988. OrgChildRaHonoscaCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaHonoscaCompleted as New
  join hist.OrgChildRaHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1989. OrgChildRaHonoscaCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaHonoscaCompleted as New
  join hist.OrgChildRaHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.1990. OrgChildRaHonoscaCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRaHonoscaCompleted.Total, OrgChildRaCodCount.Total, 3) as Rate
  from OrgChildRaHonoscaCompleted
  join OrgChildRaCodCount using (State, RegId, OrgId)

13.2.1991. OrgChildRaHonoscaCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRaHonoscaCompletionRate as New
  join hist.OrgChildRaHonoscaCompletionRate as Old using (State, RegId, OrgId)

13.2.1992. OrgChildRaHonoscaCount

Base:

ORG

Title:

ORG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1993. OrgChildRaHonoscaCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaHonoscaCount as New
  join hist.OrgChildRaHonoscaCount as Old using (State, RegId, OrgId)

13.2.1994. OrgChildRaHonoscaCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaHonoscaCount as New
  join hist.OrgChildRaHonoscaCount as Old using (State, RegId, OrgId)

13.2.1995. OrgChildRaMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.1996. OrgChildRaMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaMhlsCompleted as New
  join hist.OrgChildRaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1997. OrgChildRaMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaMhlsCompleted as New
  join hist.OrgChildRaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.1998. OrgChildRaMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRaMhlsCompleted.Total, OrgChildRaCodCount.Total, 3) as Rate
  from OrgChildRaMhlsCompleted
  join OrgChildRaCodCount using (State, RegId, OrgId)

13.2.1999. OrgChildRaMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRaMhlsCompletionRate as New
  join hist.OrgChildRaMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.2000. OrgChildRaMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2001. OrgChildRaMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaMhlsCount as New
  join hist.OrgChildRaMhlsCount as Old using (State, RegId, OrgId)

13.2.2002. OrgChildRaMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaMhlsCount as New
  join hist.OrgChildRaMhlsCount as Old using (State, RegId, OrgId)

13.2.2003. OrgChildRaSdqCompleted

Base:

ORG

Title:

ORG-level count of completed SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2004. OrgChildRaSdqCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaSdqCompleted as New
  join hist.OrgChildRaSdqCompleted as Old using (State, RegId, OrgId)

13.2.2005. OrgChildRaSdqCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaSdqCompleted as New
  join hist.OrgChildRaSdqCompleted as Old using (State, RegId, OrgId)

13.2.2006. OrgChildRaSdqCompletionRate

Base:

ORG

Title:

ORG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRaSdqCompleted.Total, OrgChildRaCodCount.Total, 3) as Rate
  from OrgChildRaSdqCompleted
  join OrgChildRaCodCount using (State, RegId, OrgId)

13.2.2007. OrgChildRaSdqCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRaSdqCompletionRate as New
  join hist.OrgChildRaSdqCompletionRate as Old using (State, RegId, OrgId)

13.2.2008. OrgChildRaSdqCount

Base:

ORG

Title:

ORG-level count of all SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2009. OrgChildRaSdqCountChange

Base:

ORG

Title:

Change in ORG-level count of all SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRaSdqCount as New
  join hist.OrgChildRaSdqCount as Old using (State, RegId, OrgId)

13.2.2010. OrgChildRaSdqCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRaSdqCount as New
  join hist.OrgChildRaSdqCount as Old using (State, RegId, OrgId)

13.2.2011. OrgChildRiCgasCompleted

Base:

ORG

Title:

ORG-level count of completed CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2012. OrgChildRiCgasCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiCgasCompleted as New
  join hist.OrgChildRiCgasCompleted as Old using (State, RegId, OrgId)

13.2.2013. OrgChildRiCgasCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiCgasCompleted as New
  join hist.OrgChildRiCgasCompleted as Old using (State, RegId, OrgId)

13.2.2014. OrgChildRiCgasCompletionRate

Base:

ORG

Title:

ORG-level completion rate of CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRiCgasCompleted.Total, OrgChildRiCodCount.Total, 3) as Rate
  from OrgChildRiCgasCompleted
  join OrgChildRiCodCount using (State, RegId, OrgId)

13.2.2015. OrgChildRiCgasCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRiCgasCompletionRate as New
  join hist.OrgChildRiCgasCompletionRate as Old using (State, RegId, OrgId)

13.2.2016. OrgChildRiCgasCount

Base:

ORG

Title:

ORG-level count of all CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2017. OrgChildRiCgasCountChange

Base:

ORG

Title:

Change in ORG-level count of all CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiCgasCount as New
  join hist.OrgChildRiCgasCount as Old using (State, RegId, OrgId)

13.2.2018. OrgChildRiCgasCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiCgasCount as New
  join hist.OrgChildRiCgasCount as Old using (State, RegId, OrgId)

13.2.2019. OrgChildRiCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2020. OrgChildRiDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2021. OrgChildRiDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiDiagCompleted as New
  join hist.OrgChildRiDiagCompleted as Old using (State, RegId, OrgId)

13.2.2022. OrgChildRiDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiDiagCompleted as New
  join hist.OrgChildRiDiagCompleted as Old using (State, RegId, OrgId)

13.2.2023. OrgChildRiDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRiDiagCompleted.Total, OrgChildRiCodCount.Total, 3) as Rate
  from OrgChildRiDiagCompleted
  join OrgChildRiCodCount using (State, RegId, OrgId)

13.2.2024. OrgChildRiDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRiDiagCompletionRate as New
  join hist.OrgChildRiDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.2025. OrgChildRiDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2026. OrgChildRiDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiDiagCount as New
  join hist.OrgChildRiDiagCount as Old using (State, RegId, OrgId)

13.2.2027. OrgChildRiDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiDiagCount as New
  join hist.OrgChildRiDiagCount as Old using (State, RegId, OrgId)

13.2.2028. OrgChildRiFihsCompleted

Base:

ORG

Title:

ORG-level count of completed FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2029. OrgChildRiFihsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiFihsCompleted as New
  join hist.OrgChildRiFihsCompleted as Old using (State, RegId, OrgId)

13.2.2030. OrgChildRiFihsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiFihsCompleted as New
  join hist.OrgChildRiFihsCompleted as Old using (State, RegId, OrgId)

13.2.2031. OrgChildRiFihsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRiFihsCompleted.Total, OrgChildRiCodCount.Total, 3) as Rate
  from OrgChildRiFihsCompleted
  join OrgChildRiCodCount using (State, RegId, OrgId)

13.2.2032. OrgChildRiFihsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRiFihsCompletionRate as New
  join hist.OrgChildRiFihsCompletionRate as Old using (State, RegId, OrgId)

13.2.2033. OrgChildRiFihsCount

Base:

ORG

Title:

ORG-level count of all FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2034. OrgChildRiFihsCountChange

Base:

ORG

Title:

Change in ORG-level count of all FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiFihsCount as New
  join hist.OrgChildRiFihsCount as Old using (State, RegId, OrgId)

13.2.2035. OrgChildRiFihsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiFihsCount as New
  join hist.OrgChildRiFihsCount as Old using (State, RegId, OrgId)

13.2.2036. OrgChildRiHonoscaCompleted

Base:

ORG

Title:

ORG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2037. OrgChildRiHonoscaCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiHonoscaCompleted as New
  join hist.OrgChildRiHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.2038. OrgChildRiHonoscaCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiHonoscaCompleted as New
  join hist.OrgChildRiHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.2039. OrgChildRiHonoscaCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRiHonoscaCompleted.Total, OrgChildRiCodCount.Total, 3) as Rate
  from OrgChildRiHonoscaCompleted
  join OrgChildRiCodCount using (State, RegId, OrgId)

13.2.2040. OrgChildRiHonoscaCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRiHonoscaCompletionRate as New
  join hist.OrgChildRiHonoscaCompletionRate as Old using (State, RegId, OrgId)

13.2.2041. OrgChildRiHonoscaCount

Base:

ORG

Title:

ORG-level count of all HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2042. OrgChildRiHonoscaCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiHonoscaCount as New
  join hist.OrgChildRiHonoscaCount as Old using (State, RegId, OrgId)

13.2.2043. OrgChildRiHonoscaCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiHonoscaCount as New
  join hist.OrgChildRiHonoscaCount as Old using (State, RegId, OrgId)

13.2.2044. OrgChildRiMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2045. OrgChildRiMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiMhlsCompleted as New
  join hist.OrgChildRiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2046. OrgChildRiMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiMhlsCompleted as New
  join hist.OrgChildRiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2047. OrgChildRiMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRiMhlsCompleted.Total, OrgChildRiCodCount.Total, 3) as Rate
  from OrgChildRiMhlsCompleted
  join OrgChildRiCodCount using (State, RegId, OrgId)

13.2.2048. OrgChildRiMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRiMhlsCompletionRate as New
  join hist.OrgChildRiMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.2049. OrgChildRiMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2050. OrgChildRiMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiMhlsCount as New
  join hist.OrgChildRiMhlsCount as Old using (State, RegId, OrgId)

13.2.2051. OrgChildRiMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiMhlsCount as New
  join hist.OrgChildRiMhlsCount as Old using (State, RegId, OrgId)

13.2.2052. OrgChildRiSdqCompleted

Base:

ORG

Title:

ORG-level count of completed SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2053. OrgChildRiSdqCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiSdqCompleted as New
  join hist.OrgChildRiSdqCompleted as Old using (State, RegId, OrgId)

13.2.2054. OrgChildRiSdqCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiSdqCompleted as New
  join hist.OrgChildRiSdqCompleted as Old using (State, RegId, OrgId)

13.2.2055. OrgChildRiSdqCompletionRate

Base:

ORG

Title:

ORG-level completion rate of SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRiSdqCompleted.Total, OrgChildRiCodCount.Total, 3) as Rate
  from OrgChildRiSdqCompleted
  join OrgChildRiCodCount using (State, RegId, OrgId)

13.2.2056. OrgChildRiSdqCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRiSdqCompletionRate as New
  join hist.OrgChildRiSdqCompletionRate as Old using (State, RegId, OrgId)

13.2.2057. OrgChildRiSdqCount

Base:

ORG

Title:

ORG-level count of all SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2058. OrgChildRiSdqCountChange

Base:

ORG

Title:

Change in ORG-level count of all SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRiSdqCount as New
  join hist.OrgChildRiSdqCount as Old using (State, RegId, OrgId)

13.2.2059. OrgChildRiSdqCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRiSdqCount as New
  join hist.OrgChildRiSdqCount as Old using (State, RegId, OrgId)

13.2.2060. OrgChildRrCgasCompleted

Base:

ORG

Title:

ORG-level count of completed CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2061. OrgChildRrCgasCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrCgasCompleted as New
  join hist.OrgChildRrCgasCompleted as Old using (State, RegId, OrgId)

13.2.2062. OrgChildRrCgasCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrCgasCompleted as New
  join hist.OrgChildRrCgasCompleted as Old using (State, RegId, OrgId)

13.2.2063. OrgChildRrCgasCompletionRate

Base:

ORG

Title:

ORG-level completion rate of CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRrCgasCompleted.Total, OrgChildRrCodCount.Total, 3) as Rate
  from OrgChildRrCgasCompleted
  join OrgChildRrCodCount using (State, RegId, OrgId)

13.2.2064. OrgChildRrCgasCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRrCgasCompletionRate as New
  join hist.OrgChildRrCgasCompletionRate as Old using (State, RegId, OrgId)

13.2.2065. OrgChildRrCgasCount

Base:

ORG

Title:

ORG-level count of all CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2066. OrgChildRrCgasCountChange

Base:

ORG

Title:

Change in ORG-level count of all CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrCgasCount as New
  join hist.OrgChildRrCgasCount as Old using (State, RegId, OrgId)

13.2.2067. OrgChildRrCgasCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrCgasCount as New
  join hist.OrgChildRrCgasCount as Old using (State, RegId, OrgId)

13.2.2068. OrgChildRrCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2069. OrgChildRrDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2070. OrgChildRrDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrDiagCompleted as New
  join hist.OrgChildRrDiagCompleted as Old using (State, RegId, OrgId)

13.2.2071. OrgChildRrDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrDiagCompleted as New
  join hist.OrgChildRrDiagCompleted as Old using (State, RegId, OrgId)

13.2.2072. OrgChildRrDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRrDiagCompleted.Total, OrgChildRrCodCount.Total, 3) as Rate
  from OrgChildRrDiagCompleted
  join OrgChildRrCodCount using (State, RegId, OrgId)

13.2.2073. OrgChildRrDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRrDiagCompletionRate as New
  join hist.OrgChildRrDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.2074. OrgChildRrDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2075. OrgChildRrDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrDiagCount as New
  join hist.OrgChildRrDiagCount as Old using (State, RegId, OrgId)

13.2.2076. OrgChildRrDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrDiagCount as New
  join hist.OrgChildRrDiagCount as Old using (State, RegId, OrgId)

13.2.2077. OrgChildRrFihsCompleted

Base:

ORG

Title:

ORG-level count of completed FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2078. OrgChildRrFihsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrFihsCompleted as New
  join hist.OrgChildRrFihsCompleted as Old using (State, RegId, OrgId)

13.2.2079. OrgChildRrFihsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrFihsCompleted as New
  join hist.OrgChildRrFihsCompleted as Old using (State, RegId, OrgId)

13.2.2080. OrgChildRrFihsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRrFihsCompleted.Total, OrgChildRrCodCount.Total, 3) as Rate
  from OrgChildRrFihsCompleted
  join OrgChildRrCodCount using (State, RegId, OrgId)

13.2.2081. OrgChildRrFihsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRrFihsCompletionRate as New
  join hist.OrgChildRrFihsCompletionRate as Old using (State, RegId, OrgId)

13.2.2082. OrgChildRrFihsCount

Base:

ORG

Title:

ORG-level count of all FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2083. OrgChildRrFihsCountChange

Base:

ORG

Title:

Change in ORG-level count of all FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrFihsCount as New
  join hist.OrgChildRrFihsCount as Old using (State, RegId, OrgId)

13.2.2084. OrgChildRrFihsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrFihsCount as New
  join hist.OrgChildRrFihsCount as Old using (State, RegId, OrgId)

13.2.2085. OrgChildRrHonoscaCompleted

Base:

ORG

Title:

ORG-level count of completed HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2086. OrgChildRrHonoscaCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrHonoscaCompleted as New
  join hist.OrgChildRrHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.2087. OrgChildRrHonoscaCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrHonoscaCompleted as New
  join hist.OrgChildRrHonoscaCompleted as Old using (State, RegId, OrgId)

13.2.2088. OrgChildRrHonoscaCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRrHonoscaCompleted.Total, OrgChildRrCodCount.Total, 3) as Rate
  from OrgChildRrHonoscaCompleted
  join OrgChildRrCodCount using (State, RegId, OrgId)

13.2.2089. OrgChildRrHonoscaCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRrHonoscaCompletionRate as New
  join hist.OrgChildRrHonoscaCompletionRate as Old using (State, RegId, OrgId)

13.2.2090. OrgChildRrHonoscaCount

Base:

ORG

Title:

ORG-level count of all HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2091. OrgChildRrHonoscaCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrHonoscaCount as New
  join hist.OrgChildRrHonoscaCount as Old using (State, RegId, OrgId)

13.2.2092. OrgChildRrHonoscaCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrHonoscaCount as New
  join hist.OrgChildRrHonoscaCount as Old using (State, RegId, OrgId)

13.2.2093. OrgChildRrMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2094. OrgChildRrMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrMhlsCompleted as New
  join hist.OrgChildRrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2095. OrgChildRrMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrMhlsCompleted as New
  join hist.OrgChildRrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2096. OrgChildRrMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRrMhlsCompleted.Total, OrgChildRrCodCount.Total, 3) as Rate
  from OrgChildRrMhlsCompleted
  join OrgChildRrCodCount using (State, RegId, OrgId)

13.2.2097. OrgChildRrMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRrMhlsCompletionRate as New
  join hist.OrgChildRrMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.2098. OrgChildRrMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2099. OrgChildRrMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrMhlsCount as New
  join hist.OrgChildRrMhlsCount as Old using (State, RegId, OrgId)

13.2.2100. OrgChildRrMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrMhlsCount as New
  join hist.OrgChildRrMhlsCount as Old using (State, RegId, OrgId)

13.2.2101. OrgChildRrSdqCompleted

Base:

ORG

Title:

ORG-level count of completed SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2102. OrgChildRrSdqCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrSdqCompleted as New
  join hist.OrgChildRrSdqCompleted as Old using (State, RegId, OrgId)

13.2.2103. OrgChildRrSdqCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrSdqCompleted as New
  join hist.OrgChildRrSdqCompleted as Old using (State, RegId, OrgId)

13.2.2104. OrgChildRrSdqCompletionRate

Base:

ORG

Title:

ORG-level completion rate of SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgChildRrSdqCompleted.Total, OrgChildRrCodCount.Total, 3) as Rate
  from OrgChildRrSdqCompleted
  join OrgChildRrCodCount using (State, RegId, OrgId)

13.2.2105. OrgChildRrSdqCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgChildRrSdqCompletionRate as New
  join hist.OrgChildRrSdqCompletionRate as Old using (State, RegId, OrgId)

13.2.2106. OrgChildRrSdqCount

Base:

ORG

Title:

ORG-level count of all SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2107. OrgChildRrSdqCountChange

Base:

ORG

Title:

Change in ORG-level count of all SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgChildRrSdqCount as New
  join hist.OrgChildRrSdqCount as Old using (State, RegId, OrgId)

13.2.2108. OrgChildRrSdqCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgChildRrSdqCount as New
  join hist.OrgChildRrSdqCount as Old using (State, RegId, OrgId)

13.2.2109. OrgHasAdmi

Base:

ORG

Title:

SERV Admi Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAdmiCount
 where Count > 0

13.2.2110. OrgHasAdmiCA

Base:

ORG

Title:

SERV AdmiCA Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAdmiCACount
 where Count > 0

13.2.2111. OrgHasAdmiFor

Base:

ORG

Title:

SERV AdmiFor Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAdmiForCount
 where Count > 0

13.2.2112. OrgHasAdmiGen

Base:

ORG

Title:

SERV AdmiGen Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAdmiGenCount
 where Count > 0

13.2.2113. OrgHasAdmiOld

Base:

ORG

Title:

SERV AdmiOld Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAdmiOldCount
 where Count > 0

13.2.2114. OrgHasAdmiYth

Base:

ORG

Title:

SERV AdmiYth Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAdmiYthCount
 where Count > 0

13.2.2115. OrgHasAmbu

Base:

ORG

Title:

SERV Ambu Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAmbuCount
 where Count > 0
Rules:

13.2.2116. OrgHasAmbuCA

Base:

ORG

Title:

SERV AmbuCA Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAmbuCACount
 where Count > 0
Rules:

13.2.2117. OrgHasAmbuFor

Base:

ORG

Title:

SERV AmbuFor Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAmbuForCount
 where Count > 0
Rules:

13.2.2118. OrgHasAmbuGen

Base:

ORG

Title:

SERV AmbuGen Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAmbuGenCount
 where Count > 0
Rules:

13.2.2119. OrgHasAmbuOld

Base:

ORG

Title:

SERV AmbuOld Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAmbuOldCount
 where Count > 0
Rules:

13.2.2120. OrgHasAmbuYth

Base:

ORG

Title:

SERV AmbuYth Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgAmbuYthCount
 where Count > 0
Rules:

13.2.2121. OrgHasResi

Base:

ORG

Title:

SERV Resi Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgResiCount
 where Count > 0

13.2.2122. OrgHasResiCA

Base:

ORG

Title:

SERV ResiCA Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgResiCACount
 where Count > 0

13.2.2123. OrgHasResiFor

Base:

ORG

Title:

SERV ResiFor Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgResiForCount
 where Count > 0

13.2.2124. OrgHasResiGen

Base:

ORG

Title:

SERV ResiGen Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgResiGenCount
 where Count > 0

13.2.2125. OrgHasResiOld

Base:

ORG

Title:

SERV ResiOld Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgResiOldCount
 where Count > 0

13.2.2126. OrgHasResiYth

Base:

ORG

Title:

SERV ResiYth Count below ORG

SQL:
select State,
       RegId,
       OrgId,
       Count
  from OrgResiYthCount
 where Count > 0

13.2.2127. OrgOlderAaBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2128. OrgOlderAaBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaBasis32Completed as New
  join hist.OrgOlderAaBasis32Completed as Old using (State, RegId, OrgId)

13.2.2129. OrgOlderAaBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaBasis32Completed as New
  join hist.OrgOlderAaBasis32Completed as Old using (State, RegId, OrgId)

13.2.2130. OrgOlderAaBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderAaBasis32Completed.Total, OrgOlderAaCodCount.Total, 3) as Rate
  from OrgOlderAaBasis32Completed
  join OrgOlderAaCodCount using (State, RegId, OrgId)

13.2.2131. OrgOlderAaBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderAaBasis32CompletionRate as New
  join hist.OrgOlderAaBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.2132. OrgOlderAaBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2133. OrgOlderAaBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaBasis32Count as New
  join hist.OrgOlderAaBasis32Count as Old using (State, RegId, OrgId)

13.2.2134. OrgOlderAaBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaBasis32Count as New
  join hist.OrgOlderAaBasis32Count as Old using (State, RegId, OrgId)

13.2.2135. OrgOlderAaCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2136. OrgOlderAaHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2137. OrgOlderAaHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaHonosCompleted as New
  join hist.OrgOlderAaHonosCompleted as Old using (State, RegId, OrgId)

13.2.2138. OrgOlderAaHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaHonosCompleted as New
  join hist.OrgOlderAaHonosCompleted as Old using (State, RegId, OrgId)

13.2.2139. OrgOlderAaHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderAaHonosCompleted.Total, OrgOlderAaCodCount.Total, 3) as Rate
  from OrgOlderAaHonosCompleted
  join OrgOlderAaCodCount using (State, RegId, OrgId)

13.2.2140. OrgOlderAaHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderAaHonosCompletionRate as New
  join hist.OrgOlderAaHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.2141. OrgOlderAaHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2142. OrgOlderAaHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaHonosCount as New
  join hist.OrgOlderAaHonosCount as Old using (State, RegId, OrgId)

13.2.2143. OrgOlderAaHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaHonosCount as New
  join hist.OrgOlderAaHonosCount as Old using (State, RegId, OrgId)

13.2.2144. OrgOlderAaK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2145. OrgOlderAaK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaK10l3dCompleted as New
  join hist.OrgOlderAaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2146. OrgOlderAaK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaK10l3dCompleted as New
  join hist.OrgOlderAaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2147. OrgOlderAaK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderAaK10l3dCompleted.Total, OrgOlderAaCodCount.Total, 3) as Rate
  from OrgOlderAaK10l3dCompleted
  join OrgOlderAaCodCount using (State, RegId, OrgId)

13.2.2148. OrgOlderAaK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderAaK10l3dCompletionRate as New
  join hist.OrgOlderAaK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.2149. OrgOlderAaK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2150. OrgOlderAaK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaK10l3dCount as New
  join hist.OrgOlderAaK10l3dCount as Old using (State, RegId, OrgId)

13.2.2151. OrgOlderAaK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaK10l3dCount as New
  join hist.OrgOlderAaK10l3dCount as Old using (State, RegId, OrgId)

13.2.2152. OrgOlderAaK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2153. OrgOlderAaK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaK10lmCompleted as New
  join hist.OrgOlderAaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2154. OrgOlderAaK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaK10lmCompleted as New
  join hist.OrgOlderAaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2155. OrgOlderAaK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderAaK10lmCompleted.Total, OrgOlderAaCodCount.Total, 3) as Rate
  from OrgOlderAaK10lmCompleted
  join OrgOlderAaCodCount using (State, RegId, OrgId)

13.2.2156. OrgOlderAaK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderAaK10lmCompletionRate as New
  join hist.OrgOlderAaK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.2157. OrgOlderAaK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2158. OrgOlderAaK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaK10lmCount as New
  join hist.OrgOlderAaK10lmCount as Old using (State, RegId, OrgId)

13.2.2159. OrgOlderAaK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaK10lmCount as New
  join hist.OrgOlderAaK10lmCount as Old using (State, RegId, OrgId)

13.2.2160. OrgOlderAaMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2161. OrgOlderAaMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaMhi38Completed as New
  join hist.OrgOlderAaMhi38Completed as Old using (State, RegId, OrgId)

13.2.2162. OrgOlderAaMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaMhi38Completed as New
  join hist.OrgOlderAaMhi38Completed as Old using (State, RegId, OrgId)

13.2.2163. OrgOlderAaMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderAaMhi38Completed.Total, OrgOlderAaCodCount.Total, 3) as Rate
  from OrgOlderAaMhi38Completed
  join OrgOlderAaCodCount using (State, RegId, OrgId)

13.2.2164. OrgOlderAaMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderAaMhi38CompletionRate as New
  join hist.OrgOlderAaMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.2165. OrgOlderAaMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2166. OrgOlderAaMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaMhi38Count as New
  join hist.OrgOlderAaMhi38Count as Old using (State, RegId, OrgId)

13.2.2167. OrgOlderAaMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaMhi38Count as New
  join hist.OrgOlderAaMhi38Count as Old using (State, RegId, OrgId)

13.2.2168. OrgOlderAaPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2169. OrgOlderAaPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaPocCompleted as New
  join hist.OrgOlderAaPocCompleted as Old using (State, RegId, OrgId)

13.2.2170. OrgOlderAaPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaPocCompleted as New
  join hist.OrgOlderAaPocCompleted as Old using (State, RegId, OrgId)

13.2.2171. OrgOlderAaPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderAaPocCompleted.Total, OrgOlderAaCodCount.Total, 3) as Rate
  from OrgOlderAaPocCompleted
  join OrgOlderAaCodCount using (State, RegId, OrgId)

13.2.2172. OrgOlderAaPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderAaPocCompletionRate as New
  join hist.OrgOlderAaPocCompletionRate as Old using (State, RegId, OrgId)

13.2.2173. OrgOlderAaPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2174. OrgOlderAaPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAaPocCount as New
  join hist.OrgOlderAaPocCount as Old using (State, RegId, OrgId)

13.2.2175. OrgOlderAaPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAaPocCount as New
  join hist.OrgOlderAaPocCount as Old using (State, RegId, OrgId)

13.2.2176. OrgOlderAiCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2177. OrgOlderAiHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2178. OrgOlderAiHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAiHonosCompleted as New
  join hist.OrgOlderAiHonosCompleted as Old using (State, RegId, OrgId)

13.2.2179. OrgOlderAiHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAiHonosCompleted as New
  join hist.OrgOlderAiHonosCompleted as Old using (State, RegId, OrgId)

13.2.2180. OrgOlderAiHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderAiHonosCompleted.Total, OrgOlderAiCodCount.Total, 3) as Rate
  from OrgOlderAiHonosCompleted
  join OrgOlderAiCodCount using (State, RegId, OrgId)

13.2.2181. OrgOlderAiHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderAiHonosCompletionRate as New
  join hist.OrgOlderAiHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.2182. OrgOlderAiHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2183. OrgOlderAiHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAiHonosCount as New
  join hist.OrgOlderAiHonosCount as Old using (State, RegId, OrgId)

13.2.2184. OrgOlderAiHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAiHonosCount as New
  join hist.OrgOlderAiHonosCount as Old using (State, RegId, OrgId)

13.2.2185. OrgOlderAiPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2186. OrgOlderAiPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAiPocCompleted as New
  join hist.OrgOlderAiPocCompleted as Old using (State, RegId, OrgId)

13.2.2187. OrgOlderAiPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAiPocCompleted as New
  join hist.OrgOlderAiPocCompleted as Old using (State, RegId, OrgId)

13.2.2188. OrgOlderAiPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderAiPocCompleted.Total, OrgOlderAiCodCount.Total, 3) as Rate
  from OrgOlderAiPocCompleted
  join OrgOlderAiCodCount using (State, RegId, OrgId)

13.2.2189. OrgOlderAiPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderAiPocCompletionRate as New
  join hist.OrgOlderAiPocCompletionRate as Old using (State, RegId, OrgId)

13.2.2190. OrgOlderAiPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2191. OrgOlderAiPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAiPocCount as New
  join hist.OrgOlderAiPocCount as Old using (State, RegId, OrgId)

13.2.2192. OrgOlderAiPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAiPocCount as New
  join hist.OrgOlderAiPocCount as Old using (State, RegId, OrgId)

13.2.2193. OrgOlderAiRugadlCompleted

Base:

ORG

Title:

ORG-level count of completed RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2194. OrgOlderAiRugadlCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAiRugadlCompleted as New
  join hist.OrgOlderAiRugadlCompleted as Old using (State, RegId, OrgId)

13.2.2195. OrgOlderAiRugadlCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAiRugadlCompleted as New
  join hist.OrgOlderAiRugadlCompleted as Old using (State, RegId, OrgId)

13.2.2196. OrgOlderAiRugadlCompletionRate

Base:

ORG

Title:

ORG-level completion rate of RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderAiRugadlCompleted.Total, OrgOlderAiCodCount.Total, 3) as Rate
  from OrgOlderAiRugadlCompleted
  join OrgOlderAiCodCount using (State, RegId, OrgId)

13.2.2197. OrgOlderAiRugadlCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderAiRugadlCompletionRate as New
  join hist.OrgOlderAiRugadlCompletionRate as Old using (State, RegId, OrgId)

13.2.2198. OrgOlderAiRugadlCount

Base:

ORG

Title:

ORG-level count of all RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2199. OrgOlderAiRugadlCountChange

Base:

ORG

Title:

Change in ORG-level count of all RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderAiRugadlCount as New
  join hist.OrgOlderAiRugadlCount as Old using (State, RegId, OrgId)

13.2.2200. OrgOlderAiRugadlCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderAiRugadlCount as New
  join hist.OrgOlderAiRugadlCount as Old using (State, RegId, OrgId)

13.2.2201. OrgOlderArBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2202. OrgOlderArBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArBasis32Completed as New
  join hist.OrgOlderArBasis32Completed as Old using (State, RegId, OrgId)

13.2.2203. OrgOlderArBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArBasis32Completed as New
  join hist.OrgOlderArBasis32Completed as Old using (State, RegId, OrgId)

13.2.2204. OrgOlderArBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderArBasis32Completed.Total, OrgOlderArCodCount.Total, 3) as Rate
  from OrgOlderArBasis32Completed
  join OrgOlderArCodCount using (State, RegId, OrgId)

13.2.2205. OrgOlderArBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderArBasis32CompletionRate as New
  join hist.OrgOlderArBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.2206. OrgOlderArBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2207. OrgOlderArBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArBasis32Count as New
  join hist.OrgOlderArBasis32Count as Old using (State, RegId, OrgId)

13.2.2208. OrgOlderArBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArBasis32Count as New
  join hist.OrgOlderArBasis32Count as Old using (State, RegId, OrgId)

13.2.2209. OrgOlderArCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2210. OrgOlderArHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2211. OrgOlderArHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArHonosCompleted as New
  join hist.OrgOlderArHonosCompleted as Old using (State, RegId, OrgId)

13.2.2212. OrgOlderArHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArHonosCompleted as New
  join hist.OrgOlderArHonosCompleted as Old using (State, RegId, OrgId)

13.2.2213. OrgOlderArHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderArHonosCompleted.Total, OrgOlderArCodCount.Total, 3) as Rate
  from OrgOlderArHonosCompleted
  join OrgOlderArCodCount using (State, RegId, OrgId)

13.2.2214. OrgOlderArHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderArHonosCompletionRate as New
  join hist.OrgOlderArHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.2215. OrgOlderArHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2216. OrgOlderArHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArHonosCount as New
  join hist.OrgOlderArHonosCount as Old using (State, RegId, OrgId)

13.2.2217. OrgOlderArHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArHonosCount as New
  join hist.OrgOlderArHonosCount as Old using (State, RegId, OrgId)

13.2.2218. OrgOlderArK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2219. OrgOlderArK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArK10l3dCompleted as New
  join hist.OrgOlderArK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2220. OrgOlderArK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArK10l3dCompleted as New
  join hist.OrgOlderArK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2221. OrgOlderArK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderArK10l3dCompleted.Total, OrgOlderArCodCount.Total, 3) as Rate
  from OrgOlderArK10l3dCompleted
  join OrgOlderArCodCount using (State, RegId, OrgId)

13.2.2222. OrgOlderArK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderArK10l3dCompletionRate as New
  join hist.OrgOlderArK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.2223. OrgOlderArK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2224. OrgOlderArK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArK10l3dCount as New
  join hist.OrgOlderArK10l3dCount as Old using (State, RegId, OrgId)

13.2.2225. OrgOlderArK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArK10l3dCount as New
  join hist.OrgOlderArK10l3dCount as Old using (State, RegId, OrgId)

13.2.2226. OrgOlderArK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2227. OrgOlderArK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArK10lmCompleted as New
  join hist.OrgOlderArK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2228. OrgOlderArK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArK10lmCompleted as New
  join hist.OrgOlderArK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2229. OrgOlderArK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderArK10lmCompleted.Total, OrgOlderArCodCount.Total, 3) as Rate
  from OrgOlderArK10lmCompleted
  join OrgOlderArCodCount using (State, RegId, OrgId)

13.2.2230. OrgOlderArK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderArK10lmCompletionRate as New
  join hist.OrgOlderArK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.2231. OrgOlderArK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2232. OrgOlderArK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArK10lmCount as New
  join hist.OrgOlderArK10lmCount as Old using (State, RegId, OrgId)

13.2.2233. OrgOlderArK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArK10lmCount as New
  join hist.OrgOlderArK10lmCount as Old using (State, RegId, OrgId)

13.2.2234. OrgOlderArLsp16Completed

Base:

ORG

Title:

ORG-level count of completed LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2235. OrgOlderArLsp16CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArLsp16Completed as New
  join hist.OrgOlderArLsp16Completed as Old using (State, RegId, OrgId)

13.2.2236. OrgOlderArLsp16CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArLsp16Completed as New
  join hist.OrgOlderArLsp16Completed as Old using (State, RegId, OrgId)

13.2.2237. OrgOlderArLsp16CompletionRate

Base:

ORG

Title:

ORG-level completion rate of LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderArLsp16Completed.Total, OrgOlderArCodCount.Total, 3) as Rate
  from OrgOlderArLsp16Completed
  join OrgOlderArCodCount using (State, RegId, OrgId)

13.2.2238. OrgOlderArLsp16CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderArLsp16CompletionRate as New
  join hist.OrgOlderArLsp16CompletionRate as Old using (State, RegId, OrgId)

13.2.2239. OrgOlderArLsp16Count

Base:

ORG

Title:

ORG-level count of all LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2240. OrgOlderArLsp16CountChange

Base:

ORG

Title:

Change in ORG-level count of all LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArLsp16Count as New
  join hist.OrgOlderArLsp16Count as Old using (State, RegId, OrgId)

13.2.2241. OrgOlderArLsp16CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArLsp16Count as New
  join hist.OrgOlderArLsp16Count as Old using (State, RegId, OrgId)

13.2.2242. OrgOlderArMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2243. OrgOlderArMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArMhi38Completed as New
  join hist.OrgOlderArMhi38Completed as Old using (State, RegId, OrgId)

13.2.2244. OrgOlderArMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArMhi38Completed as New
  join hist.OrgOlderArMhi38Completed as Old using (State, RegId, OrgId)

13.2.2245. OrgOlderArMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderArMhi38Completed.Total, OrgOlderArCodCount.Total, 3) as Rate
  from OrgOlderArMhi38Completed
  join OrgOlderArCodCount using (State, RegId, OrgId)

13.2.2246. OrgOlderArMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderArMhi38CompletionRate as New
  join hist.OrgOlderArMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.2247. OrgOlderArMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2248. OrgOlderArMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArMhi38Count as New
  join hist.OrgOlderArMhi38Count as Old using (State, RegId, OrgId)

13.2.2249. OrgOlderArMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArMhi38Count as New
  join hist.OrgOlderArMhi38Count as Old using (State, RegId, OrgId)

13.2.2250. OrgOlderArPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2251. OrgOlderArPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArPocCompleted as New
  join hist.OrgOlderArPocCompleted as Old using (State, RegId, OrgId)

13.2.2252. OrgOlderArPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArPocCompleted as New
  join hist.OrgOlderArPocCompleted as Old using (State, RegId, OrgId)

13.2.2253. OrgOlderArPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderArPocCompleted.Total, OrgOlderArCodCount.Total, 3) as Rate
  from OrgOlderArPocCompleted
  join OrgOlderArCodCount using (State, RegId, OrgId)

13.2.2254. OrgOlderArPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderArPocCompletionRate as New
  join hist.OrgOlderArPocCompletionRate as Old using (State, RegId, OrgId)

13.2.2255. OrgOlderArPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2256. OrgOlderArPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderArPocCount as New
  join hist.OrgOlderArPocCount as Old using (State, RegId, OrgId)

13.2.2257. OrgOlderArPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderArPocCount as New
  join hist.OrgOlderArPocCount as Old using (State, RegId, OrgId)

13.2.2258. OrgOlderDaBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2259. OrgOlderDaBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaBasis32Completed as New
  join hist.OrgOlderDaBasis32Completed as Old using (State, RegId, OrgId)

13.2.2260. OrgOlderDaBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaBasis32Completed as New
  join hist.OrgOlderDaBasis32Completed as Old using (State, RegId, OrgId)

13.2.2261. OrgOlderDaBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDaBasis32Completed.Total, OrgOlderDaCodCount.Total, 3) as Rate
  from OrgOlderDaBasis32Completed
  join OrgOlderDaCodCount using (State, RegId, OrgId)

13.2.2262. OrgOlderDaBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDaBasis32CompletionRate as New
  join hist.OrgOlderDaBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.2263. OrgOlderDaBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2264. OrgOlderDaBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaBasis32Count as New
  join hist.OrgOlderDaBasis32Count as Old using (State, RegId, OrgId)

13.2.2265. OrgOlderDaBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaBasis32Count as New
  join hist.OrgOlderDaBasis32Count as Old using (State, RegId, OrgId)

13.2.2266. OrgOlderDaCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2267. OrgOlderDaDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2268. OrgOlderDaDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaDiagCompleted as New
  join hist.OrgOlderDaDiagCompleted as Old using (State, RegId, OrgId)

13.2.2269. OrgOlderDaDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaDiagCompleted as New
  join hist.OrgOlderDaDiagCompleted as Old using (State, RegId, OrgId)

13.2.2270. OrgOlderDaDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDaDiagCompleted.Total, OrgOlderDaCodCount.Total, 3) as Rate
  from OrgOlderDaDiagCompleted
  join OrgOlderDaCodCount using (State, RegId, OrgId)

13.2.2271. OrgOlderDaDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDaDiagCompletionRate as New
  join hist.OrgOlderDaDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.2272. OrgOlderDaDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2273. OrgOlderDaDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaDiagCount as New
  join hist.OrgOlderDaDiagCount as Old using (State, RegId, OrgId)

13.2.2274. OrgOlderDaDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaDiagCount as New
  join hist.OrgOlderDaDiagCount as Old using (State, RegId, OrgId)

13.2.2275. OrgOlderDaHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2276. OrgOlderDaHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaHonosCompleted as New
  join hist.OrgOlderDaHonosCompleted as Old using (State, RegId, OrgId)

13.2.2277. OrgOlderDaHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaHonosCompleted as New
  join hist.OrgOlderDaHonosCompleted as Old using (State, RegId, OrgId)

13.2.2278. OrgOlderDaHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDaHonosCompleted.Total, OrgOlderDaCodCount.Total, 3) as Rate
  from OrgOlderDaHonosCompleted
  join OrgOlderDaCodCount using (State, RegId, OrgId)

13.2.2279. OrgOlderDaHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDaHonosCompletionRate as New
  join hist.OrgOlderDaHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.2280. OrgOlderDaHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2281. OrgOlderDaHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaHonosCount as New
  join hist.OrgOlderDaHonosCount as Old using (State, RegId, OrgId)

13.2.2282. OrgOlderDaHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaHonosCount as New
  join hist.OrgOlderDaHonosCount as Old using (State, RegId, OrgId)

13.2.2283. OrgOlderDaK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2284. OrgOlderDaK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaK10l3dCompleted as New
  join hist.OrgOlderDaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2285. OrgOlderDaK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaK10l3dCompleted as New
  join hist.OrgOlderDaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2286. OrgOlderDaK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDaK10l3dCompleted.Total, OrgOlderDaCodCount.Total, 3) as Rate
  from OrgOlderDaK10l3dCompleted
  join OrgOlderDaCodCount using (State, RegId, OrgId)

13.2.2287. OrgOlderDaK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDaK10l3dCompletionRate as New
  join hist.OrgOlderDaK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.2288. OrgOlderDaK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2289. OrgOlderDaK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaK10l3dCount as New
  join hist.OrgOlderDaK10l3dCount as Old using (State, RegId, OrgId)

13.2.2290. OrgOlderDaK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaK10l3dCount as New
  join hist.OrgOlderDaK10l3dCount as Old using (State, RegId, OrgId)

13.2.2291. OrgOlderDaK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2292. OrgOlderDaK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaK10lmCompleted as New
  join hist.OrgOlderDaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2293. OrgOlderDaK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaK10lmCompleted as New
  join hist.OrgOlderDaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2294. OrgOlderDaK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDaK10lmCompleted.Total, OrgOlderDaCodCount.Total, 3) as Rate
  from OrgOlderDaK10lmCompleted
  join OrgOlderDaCodCount using (State, RegId, OrgId)

13.2.2295. OrgOlderDaK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDaK10lmCompletionRate as New
  join hist.OrgOlderDaK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.2296. OrgOlderDaK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2297. OrgOlderDaK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaK10lmCount as New
  join hist.OrgOlderDaK10lmCount as Old using (State, RegId, OrgId)

13.2.2298. OrgOlderDaK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaK10lmCount as New
  join hist.OrgOlderDaK10lmCount as Old using (State, RegId, OrgId)

13.2.2299. OrgOlderDaLsp16Completed

Base:

ORG

Title:

ORG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2300. OrgOlderDaLsp16CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaLsp16Completed as New
  join hist.OrgOlderDaLsp16Completed as Old using (State, RegId, OrgId)

13.2.2301. OrgOlderDaLsp16CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaLsp16Completed as New
  join hist.OrgOlderDaLsp16Completed as Old using (State, RegId, OrgId)

13.2.2302. OrgOlderDaLsp16CompletionRate

Base:

ORG

Title:

ORG-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDaLsp16Completed.Total, OrgOlderDaCodCount.Total, 3) as Rate
  from OrgOlderDaLsp16Completed
  join OrgOlderDaCodCount using (State, RegId, OrgId)

13.2.2303. OrgOlderDaLsp16CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDaLsp16CompletionRate as New
  join hist.OrgOlderDaLsp16CompletionRate as Old using (State, RegId, OrgId)

13.2.2304. OrgOlderDaLsp16Count

Base:

ORG

Title:

ORG-level count of all LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2305. OrgOlderDaLsp16CountChange

Base:

ORG

Title:

Change in ORG-level count of all LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaLsp16Count as New
  join hist.OrgOlderDaLsp16Count as Old using (State, RegId, OrgId)

13.2.2306. OrgOlderDaLsp16CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaLsp16Count as New
  join hist.OrgOlderDaLsp16Count as Old using (State, RegId, OrgId)

13.2.2307. OrgOlderDaMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2308. OrgOlderDaMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaMhi38Completed as New
  join hist.OrgOlderDaMhi38Completed as Old using (State, RegId, OrgId)

13.2.2309. OrgOlderDaMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaMhi38Completed as New
  join hist.OrgOlderDaMhi38Completed as Old using (State, RegId, OrgId)

13.2.2310. OrgOlderDaMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDaMhi38Completed.Total, OrgOlderDaCodCount.Total, 3) as Rate
  from OrgOlderDaMhi38Completed
  join OrgOlderDaCodCount using (State, RegId, OrgId)

13.2.2311. OrgOlderDaMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDaMhi38CompletionRate as New
  join hist.OrgOlderDaMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.2312. OrgOlderDaMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2313. OrgOlderDaMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaMhi38Count as New
  join hist.OrgOlderDaMhi38Count as Old using (State, RegId, OrgId)

13.2.2314. OrgOlderDaMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaMhi38Count as New
  join hist.OrgOlderDaMhi38Count as Old using (State, RegId, OrgId)

13.2.2315. OrgOlderDaMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2316. OrgOlderDaMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaMhlsCompleted as New
  join hist.OrgOlderDaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2317. OrgOlderDaMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaMhlsCompleted as New
  join hist.OrgOlderDaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2318. OrgOlderDaMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDaMhlsCompleted.Total, OrgOlderDaCodCount.Total, 3) as Rate
  from OrgOlderDaMhlsCompleted
  join OrgOlderDaCodCount using (State, RegId, OrgId)

13.2.2319. OrgOlderDaMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDaMhlsCompletionRate as New
  join hist.OrgOlderDaMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.2320. OrgOlderDaMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2321. OrgOlderDaMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDaMhlsCount as New
  join hist.OrgOlderDaMhlsCount as Old using (State, RegId, OrgId)

13.2.2322. OrgOlderDaMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDaMhlsCount as New
  join hist.OrgOlderDaMhlsCount as Old using (State, RegId, OrgId)

13.2.2323. OrgOlderDiCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2324. OrgOlderDiDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2325. OrgOlderDiDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDiDiagCompleted as New
  join hist.OrgOlderDiDiagCompleted as Old using (State, RegId, OrgId)

13.2.2326. OrgOlderDiDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDiDiagCompleted as New
  join hist.OrgOlderDiDiagCompleted as Old using (State, RegId, OrgId)

13.2.2327. OrgOlderDiDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDiDiagCompleted.Total, OrgOlderDiCodCount.Total, 3) as Rate
  from OrgOlderDiDiagCompleted
  join OrgOlderDiCodCount using (State, RegId, OrgId)

13.2.2328. OrgOlderDiDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDiDiagCompletionRate as New
  join hist.OrgOlderDiDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.2329. OrgOlderDiDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2330. OrgOlderDiDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDiDiagCount as New
  join hist.OrgOlderDiDiagCount as Old using (State, RegId, OrgId)

13.2.2331. OrgOlderDiDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDiDiagCount as New
  join hist.OrgOlderDiDiagCount as Old using (State, RegId, OrgId)

13.2.2332. OrgOlderDiHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2333. OrgOlderDiHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDiHonosCompleted as New
  join hist.OrgOlderDiHonosCompleted as Old using (State, RegId, OrgId)

13.2.2334. OrgOlderDiHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDiHonosCompleted as New
  join hist.OrgOlderDiHonosCompleted as Old using (State, RegId, OrgId)

13.2.2335. OrgOlderDiHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDiHonosCompleted.Total, OrgOlderDiCodCount.Total, 3) as Rate
  from OrgOlderDiHonosCompleted
  join OrgOlderDiCodCount using (State, RegId, OrgId)

13.2.2336. OrgOlderDiHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDiHonosCompletionRate as New
  join hist.OrgOlderDiHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.2337. OrgOlderDiHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2338. OrgOlderDiHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDiHonosCount as New
  join hist.OrgOlderDiHonosCount as Old using (State, RegId, OrgId)

13.2.2339. OrgOlderDiHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDiHonosCount as New
  join hist.OrgOlderDiHonosCount as Old using (State, RegId, OrgId)

13.2.2340. OrgOlderDiMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2341. OrgOlderDiMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDiMhlsCompleted as New
  join hist.OrgOlderDiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2342. OrgOlderDiMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDiMhlsCompleted as New
  join hist.OrgOlderDiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2343. OrgOlderDiMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDiMhlsCompleted.Total, OrgOlderDiCodCount.Total, 3) as Rate
  from OrgOlderDiMhlsCompleted
  join OrgOlderDiCodCount using (State, RegId, OrgId)

13.2.2344. OrgOlderDiMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDiMhlsCompletionRate as New
  join hist.OrgOlderDiMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.2345. OrgOlderDiMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2346. OrgOlderDiMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDiMhlsCount as New
  join hist.OrgOlderDiMhlsCount as Old using (State, RegId, OrgId)

13.2.2347. OrgOlderDiMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDiMhlsCount as New
  join hist.OrgOlderDiMhlsCount as Old using (State, RegId, OrgId)

13.2.2348. OrgOlderDrBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2349. OrgOlderDrBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrBasis32Completed as New
  join hist.OrgOlderDrBasis32Completed as Old using (State, RegId, OrgId)

13.2.2350. OrgOlderDrBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrBasis32Completed as New
  join hist.OrgOlderDrBasis32Completed as Old using (State, RegId, OrgId)

13.2.2351. OrgOlderDrBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDrBasis32Completed.Total, OrgOlderDrCodCount.Total, 3) as Rate
  from OrgOlderDrBasis32Completed
  join OrgOlderDrCodCount using (State, RegId, OrgId)

13.2.2352. OrgOlderDrBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDrBasis32CompletionRate as New
  join hist.OrgOlderDrBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.2353. OrgOlderDrBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2354. OrgOlderDrBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrBasis32Count as New
  join hist.OrgOlderDrBasis32Count as Old using (State, RegId, OrgId)

13.2.2355. OrgOlderDrBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrBasis32Count as New
  join hist.OrgOlderDrBasis32Count as Old using (State, RegId, OrgId)

13.2.2356. OrgOlderDrCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2357. OrgOlderDrDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2358. OrgOlderDrDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrDiagCompleted as New
  join hist.OrgOlderDrDiagCompleted as Old using (State, RegId, OrgId)

13.2.2359. OrgOlderDrDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrDiagCompleted as New
  join hist.OrgOlderDrDiagCompleted as Old using (State, RegId, OrgId)

13.2.2360. OrgOlderDrDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDrDiagCompleted.Total, OrgOlderDrCodCount.Total, 3) as Rate
  from OrgOlderDrDiagCompleted
  join OrgOlderDrCodCount using (State, RegId, OrgId)

13.2.2361. OrgOlderDrDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDrDiagCompletionRate as New
  join hist.OrgOlderDrDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.2362. OrgOlderDrDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2363. OrgOlderDrDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrDiagCount as New
  join hist.OrgOlderDrDiagCount as Old using (State, RegId, OrgId)

13.2.2364. OrgOlderDrDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrDiagCount as New
  join hist.OrgOlderDrDiagCount as Old using (State, RegId, OrgId)

13.2.2365. OrgOlderDrHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2366. OrgOlderDrHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrHonosCompleted as New
  join hist.OrgOlderDrHonosCompleted as Old using (State, RegId, OrgId)

13.2.2367. OrgOlderDrHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrHonosCompleted as New
  join hist.OrgOlderDrHonosCompleted as Old using (State, RegId, OrgId)

13.2.2368. OrgOlderDrHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDrHonosCompleted.Total, OrgOlderDrCodCount.Total, 3) as Rate
  from OrgOlderDrHonosCompleted
  join OrgOlderDrCodCount using (State, RegId, OrgId)

13.2.2369. OrgOlderDrHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDrHonosCompletionRate as New
  join hist.OrgOlderDrHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.2370. OrgOlderDrHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2371. OrgOlderDrHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrHonosCount as New
  join hist.OrgOlderDrHonosCount as Old using (State, RegId, OrgId)

13.2.2372. OrgOlderDrHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrHonosCount as New
  join hist.OrgOlderDrHonosCount as Old using (State, RegId, OrgId)

13.2.2373. OrgOlderDrK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2374. OrgOlderDrK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrK10l3dCompleted as New
  join hist.OrgOlderDrK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2375. OrgOlderDrK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrK10l3dCompleted as New
  join hist.OrgOlderDrK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2376. OrgOlderDrK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDrK10l3dCompleted.Total, OrgOlderDrCodCount.Total, 3) as Rate
  from OrgOlderDrK10l3dCompleted
  join OrgOlderDrCodCount using (State, RegId, OrgId)

13.2.2377. OrgOlderDrK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDrK10l3dCompletionRate as New
  join hist.OrgOlderDrK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.2378. OrgOlderDrK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2379. OrgOlderDrK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrK10l3dCount as New
  join hist.OrgOlderDrK10l3dCount as Old using (State, RegId, OrgId)

13.2.2380. OrgOlderDrK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrK10l3dCount as New
  join hist.OrgOlderDrK10l3dCount as Old using (State, RegId, OrgId)

13.2.2381. OrgOlderDrK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2382. OrgOlderDrK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrK10lmCompleted as New
  join hist.OrgOlderDrK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2383. OrgOlderDrK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrK10lmCompleted as New
  join hist.OrgOlderDrK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2384. OrgOlderDrK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDrK10lmCompleted.Total, OrgOlderDrCodCount.Total, 3) as Rate
  from OrgOlderDrK10lmCompleted
  join OrgOlderDrCodCount using (State, RegId, OrgId)

13.2.2385. OrgOlderDrK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDrK10lmCompletionRate as New
  join hist.OrgOlderDrK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.2386. OrgOlderDrK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2387. OrgOlderDrK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrK10lmCount as New
  join hist.OrgOlderDrK10lmCount as Old using (State, RegId, OrgId)

13.2.2388. OrgOlderDrK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrK10lmCount as New
  join hist.OrgOlderDrK10lmCount as Old using (State, RegId, OrgId)

13.2.2389. OrgOlderDrLsp16Completed

Base:

ORG

Title:

ORG-level count of completed LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2390. OrgOlderDrLsp16CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrLsp16Completed as New
  join hist.OrgOlderDrLsp16Completed as Old using (State, RegId, OrgId)

13.2.2391. OrgOlderDrLsp16CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrLsp16Completed as New
  join hist.OrgOlderDrLsp16Completed as Old using (State, RegId, OrgId)

13.2.2392. OrgOlderDrLsp16CompletionRate

Base:

ORG

Title:

ORG-level completion rate of LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDrLsp16Completed.Total, OrgOlderDrCodCount.Total, 3) as Rate
  from OrgOlderDrLsp16Completed
  join OrgOlderDrCodCount using (State, RegId, OrgId)

13.2.2393. OrgOlderDrLsp16CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDrLsp16CompletionRate as New
  join hist.OrgOlderDrLsp16CompletionRate as Old using (State, RegId, OrgId)

13.2.2394. OrgOlderDrLsp16Count

Base:

ORG

Title:

ORG-level count of all LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2395. OrgOlderDrLsp16CountChange

Base:

ORG

Title:

Change in ORG-level count of all LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrLsp16Count as New
  join hist.OrgOlderDrLsp16Count as Old using (State, RegId, OrgId)

13.2.2396. OrgOlderDrLsp16CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrLsp16Count as New
  join hist.OrgOlderDrLsp16Count as Old using (State, RegId, OrgId)

13.2.2397. OrgOlderDrMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2398. OrgOlderDrMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrMhi38Completed as New
  join hist.OrgOlderDrMhi38Completed as Old using (State, RegId, OrgId)

13.2.2399. OrgOlderDrMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrMhi38Completed as New
  join hist.OrgOlderDrMhi38Completed as Old using (State, RegId, OrgId)

13.2.2400. OrgOlderDrMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDrMhi38Completed.Total, OrgOlderDrCodCount.Total, 3) as Rate
  from OrgOlderDrMhi38Completed
  join OrgOlderDrCodCount using (State, RegId, OrgId)

13.2.2401. OrgOlderDrMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDrMhi38CompletionRate as New
  join hist.OrgOlderDrMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.2402. OrgOlderDrMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2403. OrgOlderDrMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrMhi38Count as New
  join hist.OrgOlderDrMhi38Count as Old using (State, RegId, OrgId)

13.2.2404. OrgOlderDrMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrMhi38Count as New
  join hist.OrgOlderDrMhi38Count as Old using (State, RegId, OrgId)

13.2.2405. OrgOlderDrMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2406. OrgOlderDrMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrMhlsCompleted as New
  join hist.OrgOlderDrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2407. OrgOlderDrMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrMhlsCompleted as New
  join hist.OrgOlderDrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2408. OrgOlderDrMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderDrMhlsCompleted.Total, OrgOlderDrCodCount.Total, 3) as Rate
  from OrgOlderDrMhlsCompleted
  join OrgOlderDrCodCount using (State, RegId, OrgId)

13.2.2409. OrgOlderDrMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderDrMhlsCompletionRate as New
  join hist.OrgOlderDrMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.2410. OrgOlderDrMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2411. OrgOlderDrMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderDrMhlsCount as New
  join hist.OrgOlderDrMhlsCount as Old using (State, RegId, OrgId)

13.2.2412. OrgOlderDrMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderDrMhlsCount as New
  join hist.OrgOlderDrMhlsCount as Old using (State, RegId, OrgId)

13.2.2413. OrgOlderRaBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2414. OrgOlderRaBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaBasis32Completed as New
  join hist.OrgOlderRaBasis32Completed as Old using (State, RegId, OrgId)

13.2.2415. OrgOlderRaBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaBasis32Completed as New
  join hist.OrgOlderRaBasis32Completed as Old using (State, RegId, OrgId)

13.2.2416. OrgOlderRaBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRaBasis32Completed.Total, OrgOlderRaCodCount.Total, 3) as Rate
  from OrgOlderRaBasis32Completed
  join OrgOlderRaCodCount using (State, RegId, OrgId)

13.2.2417. OrgOlderRaBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRaBasis32CompletionRate as New
  join hist.OrgOlderRaBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.2418. OrgOlderRaBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2419. OrgOlderRaBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaBasis32Count as New
  join hist.OrgOlderRaBasis32Count as Old using (State, RegId, OrgId)

13.2.2420. OrgOlderRaBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaBasis32Count as New
  join hist.OrgOlderRaBasis32Count as Old using (State, RegId, OrgId)

13.2.2421. OrgOlderRaCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2422. OrgOlderRaDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2423. OrgOlderRaDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaDiagCompleted as New
  join hist.OrgOlderRaDiagCompleted as Old using (State, RegId, OrgId)

13.2.2424. OrgOlderRaDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaDiagCompleted as New
  join hist.OrgOlderRaDiagCompleted as Old using (State, RegId, OrgId)

13.2.2425. OrgOlderRaDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRaDiagCompleted.Total, OrgOlderRaCodCount.Total, 3) as Rate
  from OrgOlderRaDiagCompleted
  join OrgOlderRaCodCount using (State, RegId, OrgId)

13.2.2426. OrgOlderRaDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRaDiagCompletionRate as New
  join hist.OrgOlderRaDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.2427. OrgOlderRaDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2428. OrgOlderRaDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaDiagCount as New
  join hist.OrgOlderRaDiagCount as Old using (State, RegId, OrgId)

13.2.2429. OrgOlderRaDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaDiagCount as New
  join hist.OrgOlderRaDiagCount as Old using (State, RegId, OrgId)

13.2.2430. OrgOlderRaHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2431. OrgOlderRaHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaHonosCompleted as New
  join hist.OrgOlderRaHonosCompleted as Old using (State, RegId, OrgId)

13.2.2432. OrgOlderRaHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaHonosCompleted as New
  join hist.OrgOlderRaHonosCompleted as Old using (State, RegId, OrgId)

13.2.2433. OrgOlderRaHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRaHonosCompleted.Total, OrgOlderRaCodCount.Total, 3) as Rate
  from OrgOlderRaHonosCompleted
  join OrgOlderRaCodCount using (State, RegId, OrgId)

13.2.2434. OrgOlderRaHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRaHonosCompletionRate as New
  join hist.OrgOlderRaHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.2435. OrgOlderRaHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2436. OrgOlderRaHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaHonosCount as New
  join hist.OrgOlderRaHonosCount as Old using (State, RegId, OrgId)

13.2.2437. OrgOlderRaHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaHonosCount as New
  join hist.OrgOlderRaHonosCount as Old using (State, RegId, OrgId)

13.2.2438. OrgOlderRaK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2439. OrgOlderRaK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaK10l3dCompleted as New
  join hist.OrgOlderRaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2440. OrgOlderRaK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaK10l3dCompleted as New
  join hist.OrgOlderRaK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2441. OrgOlderRaK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRaK10l3dCompleted.Total, OrgOlderRaCodCount.Total, 3) as Rate
  from OrgOlderRaK10l3dCompleted
  join OrgOlderRaCodCount using (State, RegId, OrgId)

13.2.2442. OrgOlderRaK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRaK10l3dCompletionRate as New
  join hist.OrgOlderRaK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.2443. OrgOlderRaK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2444. OrgOlderRaK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaK10l3dCount as New
  join hist.OrgOlderRaK10l3dCount as Old using (State, RegId, OrgId)

13.2.2445. OrgOlderRaK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaK10l3dCount as New
  join hist.OrgOlderRaK10l3dCount as Old using (State, RegId, OrgId)

13.2.2446. OrgOlderRaK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2447. OrgOlderRaK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaK10lmCompleted as New
  join hist.OrgOlderRaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2448. OrgOlderRaK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaK10lmCompleted as New
  join hist.OrgOlderRaK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2449. OrgOlderRaK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRaK10lmCompleted.Total, OrgOlderRaCodCount.Total, 3) as Rate
  from OrgOlderRaK10lmCompleted
  join OrgOlderRaCodCount using (State, RegId, OrgId)

13.2.2450. OrgOlderRaK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRaK10lmCompletionRate as New
  join hist.OrgOlderRaK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.2451. OrgOlderRaK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2452. OrgOlderRaK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaK10lmCount as New
  join hist.OrgOlderRaK10lmCount as Old using (State, RegId, OrgId)

13.2.2453. OrgOlderRaK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaK10lmCount as New
  join hist.OrgOlderRaK10lmCount as Old using (State, RegId, OrgId)

13.2.2454. OrgOlderRaLsp16Completed

Base:

ORG

Title:

ORG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2455. OrgOlderRaLsp16CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaLsp16Completed as New
  join hist.OrgOlderRaLsp16Completed as Old using (State, RegId, OrgId)

13.2.2456. OrgOlderRaLsp16CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaLsp16Completed as New
  join hist.OrgOlderRaLsp16Completed as Old using (State, RegId, OrgId)

13.2.2457. OrgOlderRaLsp16CompletionRate

Base:

ORG

Title:

ORG-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRaLsp16Completed.Total, OrgOlderRaCodCount.Total, 3) as Rate
  from OrgOlderRaLsp16Completed
  join OrgOlderRaCodCount using (State, RegId, OrgId)

13.2.2458. OrgOlderRaLsp16CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRaLsp16CompletionRate as New
  join hist.OrgOlderRaLsp16CompletionRate as Old using (State, RegId, OrgId)

13.2.2459. OrgOlderRaLsp16Count

Base:

ORG

Title:

ORG-level count of all LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2460. OrgOlderRaLsp16CountChange

Base:

ORG

Title:

Change in ORG-level count of all LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaLsp16Count as New
  join hist.OrgOlderRaLsp16Count as Old using (State, RegId, OrgId)

13.2.2461. OrgOlderRaLsp16CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaLsp16Count as New
  join hist.OrgOlderRaLsp16Count as Old using (State, RegId, OrgId)

13.2.2462. OrgOlderRaMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2463. OrgOlderRaMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaMhi38Completed as New
  join hist.OrgOlderRaMhi38Completed as Old using (State, RegId, OrgId)

13.2.2464. OrgOlderRaMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaMhi38Completed as New
  join hist.OrgOlderRaMhi38Completed as Old using (State, RegId, OrgId)

13.2.2465. OrgOlderRaMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRaMhi38Completed.Total, OrgOlderRaCodCount.Total, 3) as Rate
  from OrgOlderRaMhi38Completed
  join OrgOlderRaCodCount using (State, RegId, OrgId)

13.2.2466. OrgOlderRaMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRaMhi38CompletionRate as New
  join hist.OrgOlderRaMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.2467. OrgOlderRaMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2468. OrgOlderRaMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaMhi38Count as New
  join hist.OrgOlderRaMhi38Count as Old using (State, RegId, OrgId)

13.2.2469. OrgOlderRaMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaMhi38Count as New
  join hist.OrgOlderRaMhi38Count as Old using (State, RegId, OrgId)

13.2.2470. OrgOlderRaMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2471. OrgOlderRaMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaMhlsCompleted as New
  join hist.OrgOlderRaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2472. OrgOlderRaMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaMhlsCompleted as New
  join hist.OrgOlderRaMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2473. OrgOlderRaMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRaMhlsCompleted.Total, OrgOlderRaCodCount.Total, 3) as Rate
  from OrgOlderRaMhlsCompleted
  join OrgOlderRaCodCount using (State, RegId, OrgId)

13.2.2474. OrgOlderRaMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRaMhlsCompletionRate as New
  join hist.OrgOlderRaMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.2475. OrgOlderRaMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2476. OrgOlderRaMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaMhlsCount as New
  join hist.OrgOlderRaMhlsCount as Old using (State, RegId, OrgId)

13.2.2477. OrgOlderRaMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaMhlsCount as New
  join hist.OrgOlderRaMhlsCount as Old using (State, RegId, OrgId)

13.2.2478. OrgOlderRaPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2479. OrgOlderRaPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaPocCompleted as New
  join hist.OrgOlderRaPocCompleted as Old using (State, RegId, OrgId)

13.2.2480. OrgOlderRaPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaPocCompleted as New
  join hist.OrgOlderRaPocCompleted as Old using (State, RegId, OrgId)

13.2.2481. OrgOlderRaPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRaPocCompleted.Total, OrgOlderRaCodCount.Total, 3) as Rate
  from OrgOlderRaPocCompleted
  join OrgOlderRaCodCount using (State, RegId, OrgId)

13.2.2482. OrgOlderRaPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRaPocCompletionRate as New
  join hist.OrgOlderRaPocCompletionRate as Old using (State, RegId, OrgId)

13.2.2483. OrgOlderRaPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2484. OrgOlderRaPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRaPocCount as New
  join hist.OrgOlderRaPocCount as Old using (State, RegId, OrgId)

13.2.2485. OrgOlderRaPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRaPocCount as New
  join hist.OrgOlderRaPocCount as Old using (State, RegId, OrgId)

13.2.2486. OrgOlderRiCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2487. OrgOlderRiDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2488. OrgOlderRiDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRiDiagCompleted as New
  join hist.OrgOlderRiDiagCompleted as Old using (State, RegId, OrgId)

13.2.2489. OrgOlderRiDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRiDiagCompleted as New
  join hist.OrgOlderRiDiagCompleted as Old using (State, RegId, OrgId)

13.2.2490. OrgOlderRiDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRiDiagCompleted.Total, OrgOlderRiCodCount.Total, 3) as Rate
  from OrgOlderRiDiagCompleted
  join OrgOlderRiCodCount using (State, RegId, OrgId)

13.2.2491. OrgOlderRiDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRiDiagCompletionRate as New
  join hist.OrgOlderRiDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.2492. OrgOlderRiDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2493. OrgOlderRiDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRiDiagCount as New
  join hist.OrgOlderRiDiagCount as Old using (State, RegId, OrgId)

13.2.2494. OrgOlderRiDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRiDiagCount as New
  join hist.OrgOlderRiDiagCount as Old using (State, RegId, OrgId)

13.2.2495. OrgOlderRiHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2496. OrgOlderRiHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRiHonosCompleted as New
  join hist.OrgOlderRiHonosCompleted as Old using (State, RegId, OrgId)

13.2.2497. OrgOlderRiHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRiHonosCompleted as New
  join hist.OrgOlderRiHonosCompleted as Old using (State, RegId, OrgId)

13.2.2498. OrgOlderRiHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRiHonosCompleted.Total, OrgOlderRiCodCount.Total, 3) as Rate
  from OrgOlderRiHonosCompleted
  join OrgOlderRiCodCount using (State, RegId, OrgId)

13.2.2499. OrgOlderRiHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRiHonosCompletionRate as New
  join hist.OrgOlderRiHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.2500. OrgOlderRiHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2501. OrgOlderRiHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRiHonosCount as New
  join hist.OrgOlderRiHonosCount as Old using (State, RegId, OrgId)

13.2.2502. OrgOlderRiHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRiHonosCount as New
  join hist.OrgOlderRiHonosCount as Old using (State, RegId, OrgId)

13.2.2503. OrgOlderRiMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2504. OrgOlderRiMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRiMhlsCompleted as New
  join hist.OrgOlderRiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2505. OrgOlderRiMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRiMhlsCompleted as New
  join hist.OrgOlderRiMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2506. OrgOlderRiMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRiMhlsCompleted.Total, OrgOlderRiCodCount.Total, 3) as Rate
  from OrgOlderRiMhlsCompleted
  join OrgOlderRiCodCount using (State, RegId, OrgId)

13.2.2507. OrgOlderRiMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRiMhlsCompletionRate as New
  join hist.OrgOlderRiMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.2508. OrgOlderRiMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2509. OrgOlderRiMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRiMhlsCount as New
  join hist.OrgOlderRiMhlsCount as Old using (State, RegId, OrgId)

13.2.2510. OrgOlderRiMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRiMhlsCount as New
  join hist.OrgOlderRiMhlsCount as Old using (State, RegId, OrgId)

13.2.2511. OrgOlderRiPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2512. OrgOlderRiPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRiPocCompleted as New
  join hist.OrgOlderRiPocCompleted as Old using (State, RegId, OrgId)

13.2.2513. OrgOlderRiPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRiPocCompleted as New
  join hist.OrgOlderRiPocCompleted as Old using (State, RegId, OrgId)

13.2.2514. OrgOlderRiPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRiPocCompleted.Total, OrgOlderRiCodCount.Total, 3) as Rate
  from OrgOlderRiPocCompleted
  join OrgOlderRiCodCount using (State, RegId, OrgId)

13.2.2515. OrgOlderRiPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRiPocCompletionRate as New
  join hist.OrgOlderRiPocCompletionRate as Old using (State, RegId, OrgId)

13.2.2516. OrgOlderRiPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2517. OrgOlderRiPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRiPocCount as New
  join hist.OrgOlderRiPocCount as Old using (State, RegId, OrgId)

13.2.2518. OrgOlderRiPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRiPocCount as New
  join hist.OrgOlderRiPocCount as Old using (State, RegId, OrgId)

13.2.2519. OrgOlderRiRugadlCompleted

Base:

ORG

Title:

ORG-level count of completed RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2520. OrgOlderRiRugadlCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRiRugadlCompleted as New
  join hist.OrgOlderRiRugadlCompleted as Old using (State, RegId, OrgId)

13.2.2521. OrgOlderRiRugadlCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRiRugadlCompleted as New
  join hist.OrgOlderRiRugadlCompleted as Old using (State, RegId, OrgId)

13.2.2522. OrgOlderRiRugadlCompletionRate

Base:

ORG

Title:

ORG-level completion rate of RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRiRugadlCompleted.Total, OrgOlderRiCodCount.Total, 3) as Rate
  from OrgOlderRiRugadlCompleted
  join OrgOlderRiCodCount using (State, RegId, OrgId)

13.2.2523. OrgOlderRiRugadlCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRiRugadlCompletionRate as New
  join hist.OrgOlderRiRugadlCompletionRate as Old using (State, RegId, OrgId)

13.2.2524. OrgOlderRiRugadlCount

Base:

ORG

Title:

ORG-level count of all RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2525. OrgOlderRiRugadlCountChange

Base:

ORG

Title:

Change in ORG-level count of all RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRiRugadlCount as New
  join hist.OrgOlderRiRugadlCount as Old using (State, RegId, OrgId)

13.2.2526. OrgOlderRiRugadlCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRiRugadlCount as New
  join hist.OrgOlderRiRugadlCount as Old using (State, RegId, OrgId)

13.2.2527. OrgOlderRrBasis32Completed

Base:

ORG

Title:

ORG-level count of completed BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2528. OrgOlderRrBasis32CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrBasis32Completed as New
  join hist.OrgOlderRrBasis32Completed as Old using (State, RegId, OrgId)

13.2.2529. OrgOlderRrBasis32CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrBasis32Completed as New
  join hist.OrgOlderRrBasis32Completed as Old using (State, RegId, OrgId)

13.2.2530. OrgOlderRrBasis32CompletionRate

Base:

ORG

Title:

ORG-level completion rate of BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRrBasis32Completed.Total, OrgOlderRrCodCount.Total, 3) as Rate
  from OrgOlderRrBasis32Completed
  join OrgOlderRrCodCount using (State, RegId, OrgId)

13.2.2531. OrgOlderRrBasis32CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRrBasis32CompletionRate as New
  join hist.OrgOlderRrBasis32CompletionRate as Old using (State, RegId, OrgId)

13.2.2532. OrgOlderRrBasis32Count

Base:

ORG

Title:

ORG-level count of all BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2533. OrgOlderRrBasis32CountChange

Base:

ORG

Title:

Change in ORG-level count of all BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrBasis32Count as New
  join hist.OrgOlderRrBasis32Count as Old using (State, RegId, OrgId)

13.2.2534. OrgOlderRrBasis32CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrBasis32Count as New
  join hist.OrgOlderRrBasis32Count as Old using (State, RegId, OrgId)

13.2.2535. OrgOlderRrCodCount

Base:

ORG

Title:

ORG-level count of collection occasions for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2536. OrgOlderRrDiagCompleted

Base:

ORG

Title:

ORG-level count of completed DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2537. OrgOlderRrDiagCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrDiagCompleted as New
  join hist.OrgOlderRrDiagCompleted as Old using (State, RegId, OrgId)

13.2.2538. OrgOlderRrDiagCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrDiagCompleted as New
  join hist.OrgOlderRrDiagCompleted as Old using (State, RegId, OrgId)

13.2.2539. OrgOlderRrDiagCompletionRate

Base:

ORG

Title:

ORG-level completion rate of DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRrDiagCompleted.Total, OrgOlderRrCodCount.Total, 3) as Rate
  from OrgOlderRrDiagCompleted
  join OrgOlderRrCodCount using (State, RegId, OrgId)

13.2.2540. OrgOlderRrDiagCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRrDiagCompletionRate as New
  join hist.OrgOlderRrDiagCompletionRate as Old using (State, RegId, OrgId)

13.2.2541. OrgOlderRrDiagCount

Base:

ORG

Title:

ORG-level count of all DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2542. OrgOlderRrDiagCountChange

Base:

ORG

Title:

Change in ORG-level count of all DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrDiagCount as New
  join hist.OrgOlderRrDiagCount as Old using (State, RegId, OrgId)

13.2.2543. OrgOlderRrDiagCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrDiagCount as New
  join hist.OrgOlderRrDiagCount as Old using (State, RegId, OrgId)

13.2.2544. OrgOlderRrHonosCompleted

Base:

ORG

Title:

ORG-level count of completed HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2545. OrgOlderRrHonosCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrHonosCompleted as New
  join hist.OrgOlderRrHonosCompleted as Old using (State, RegId, OrgId)

13.2.2546. OrgOlderRrHonosCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrHonosCompleted as New
  join hist.OrgOlderRrHonosCompleted as Old using (State, RegId, OrgId)

13.2.2547. OrgOlderRrHonosCompletionRate

Base:

ORG

Title:

ORG-level completion rate of HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRrHonosCompleted.Total, OrgOlderRrCodCount.Total, 3) as Rate
  from OrgOlderRrHonosCompleted
  join OrgOlderRrCodCount using (State, RegId, OrgId)

13.2.2548. OrgOlderRrHonosCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRrHonosCompletionRate as New
  join hist.OrgOlderRrHonosCompletionRate as Old using (State, RegId, OrgId)

13.2.2549. OrgOlderRrHonosCount

Base:

ORG

Title:

ORG-level count of all HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2550. OrgOlderRrHonosCountChange

Base:

ORG

Title:

Change in ORG-level count of all HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrHonosCount as New
  join hist.OrgOlderRrHonosCount as Old using (State, RegId, OrgId)

13.2.2551. OrgOlderRrHonosCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrHonosCount as New
  join hist.OrgOlderRrHonosCount as Old using (State, RegId, OrgId)

13.2.2552. OrgOlderRrK10l3dCompleted

Base:

ORG

Title:

ORG-level count of completed K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2553. OrgOlderRrK10l3dCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrK10l3dCompleted as New
  join hist.OrgOlderRrK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2554. OrgOlderRrK10l3dCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrK10l3dCompleted as New
  join hist.OrgOlderRrK10l3dCompleted as Old using (State, RegId, OrgId)

13.2.2555. OrgOlderRrK10l3dCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRrK10l3dCompleted.Total, OrgOlderRrCodCount.Total, 3) as Rate
  from OrgOlderRrK10l3dCompleted
  join OrgOlderRrCodCount using (State, RegId, OrgId)

13.2.2556. OrgOlderRrK10l3dCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRrK10l3dCompletionRate as New
  join hist.OrgOlderRrK10l3dCompletionRate as Old using (State, RegId, OrgId)

13.2.2557. OrgOlderRrK10l3dCount

Base:

ORG

Title:

ORG-level count of all K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2558. OrgOlderRrK10l3dCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrK10l3dCount as New
  join hist.OrgOlderRrK10l3dCount as Old using (State, RegId, OrgId)

13.2.2559. OrgOlderRrK10l3dCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrK10l3dCount as New
  join hist.OrgOlderRrK10l3dCount as Old using (State, RegId, OrgId)

13.2.2560. OrgOlderRrK10lmCompleted

Base:

ORG

Title:

ORG-level count of completed K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2561. OrgOlderRrK10lmCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrK10lmCompleted as New
  join hist.OrgOlderRrK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2562. OrgOlderRrK10lmCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrK10lmCompleted as New
  join hist.OrgOlderRrK10lmCompleted as Old using (State, RegId, OrgId)

13.2.2563. OrgOlderRrK10lmCompletionRate

Base:

ORG

Title:

ORG-level completion rate of K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRrK10lmCompleted.Total, OrgOlderRrCodCount.Total, 3) as Rate
  from OrgOlderRrK10lmCompleted
  join OrgOlderRrCodCount using (State, RegId, OrgId)

13.2.2564. OrgOlderRrK10lmCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRrK10lmCompletionRate as New
  join hist.OrgOlderRrK10lmCompletionRate as Old using (State, RegId, OrgId)

13.2.2565. OrgOlderRrK10lmCount

Base:

ORG

Title:

ORG-level count of all K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2566. OrgOlderRrK10lmCountChange

Base:

ORG

Title:

Change in ORG-level count of all K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrK10lmCount as New
  join hist.OrgOlderRrK10lmCount as Old using (State, RegId, OrgId)

13.2.2567. OrgOlderRrK10lmCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrK10lmCount as New
  join hist.OrgOlderRrK10lmCount as Old using (State, RegId, OrgId)

13.2.2568. OrgOlderRrLsp16Completed

Base:

ORG

Title:

ORG-level count of completed LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2569. OrgOlderRrLsp16CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrLsp16Completed as New
  join hist.OrgOlderRrLsp16Completed as Old using (State, RegId, OrgId)

13.2.2570. OrgOlderRrLsp16CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrLsp16Completed as New
  join hist.OrgOlderRrLsp16Completed as Old using (State, RegId, OrgId)

13.2.2571. OrgOlderRrLsp16CompletionRate

Base:

ORG

Title:

ORG-level completion rate of LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRrLsp16Completed.Total, OrgOlderRrCodCount.Total, 3) as Rate
  from OrgOlderRrLsp16Completed
  join OrgOlderRrCodCount using (State, RegId, OrgId)

13.2.2572. OrgOlderRrLsp16CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRrLsp16CompletionRate as New
  join hist.OrgOlderRrLsp16CompletionRate as Old using (State, RegId, OrgId)

13.2.2573. OrgOlderRrLsp16Count

Base:

ORG

Title:

ORG-level count of all LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2574. OrgOlderRrLsp16CountChange

Base:

ORG

Title:

Change in ORG-level count of all LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrLsp16Count as New
  join hist.OrgOlderRrLsp16Count as Old using (State, RegId, OrgId)

13.2.2575. OrgOlderRrLsp16CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrLsp16Count as New
  join hist.OrgOlderRrLsp16Count as Old using (State, RegId, OrgId)

13.2.2576. OrgOlderRrMhi38Completed

Base:

ORG

Title:

ORG-level count of completed MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2577. OrgOlderRrMhi38CompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrMhi38Completed as New
  join hist.OrgOlderRrMhi38Completed as Old using (State, RegId, OrgId)

13.2.2578. OrgOlderRrMhi38CompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrMhi38Completed as New
  join hist.OrgOlderRrMhi38Completed as Old using (State, RegId, OrgId)

13.2.2579. OrgOlderRrMhi38CompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRrMhi38Completed.Total, OrgOlderRrCodCount.Total, 3) as Rate
  from OrgOlderRrMhi38Completed
  join OrgOlderRrCodCount using (State, RegId, OrgId)

13.2.2580. OrgOlderRrMhi38CompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRrMhi38CompletionRate as New
  join hist.OrgOlderRrMhi38CompletionRate as Old using (State, RegId, OrgId)

13.2.2581. OrgOlderRrMhi38Count

Base:

ORG

Title:

ORG-level count of all MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2582. OrgOlderRrMhi38CountChange

Base:

ORG

Title:

Change in ORG-level count of all MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrMhi38Count as New
  join hist.OrgOlderRrMhi38Count as Old using (State, RegId, OrgId)

13.2.2583. OrgOlderRrMhi38CountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrMhi38Count as New
  join hist.OrgOlderRrMhi38Count as Old using (State, RegId, OrgId)

13.2.2584. OrgOlderRrMhlsCompleted

Base:

ORG

Title:

ORG-level count of completed MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2585. OrgOlderRrMhlsCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrMhlsCompleted as New
  join hist.OrgOlderRrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2586. OrgOlderRrMhlsCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrMhlsCompleted as New
  join hist.OrgOlderRrMhlsCompleted as Old using (State, RegId, OrgId)

13.2.2587. OrgOlderRrMhlsCompletionRate

Base:

ORG

Title:

ORG-level completion rate of MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRrMhlsCompleted.Total, OrgOlderRrCodCount.Total, 3) as Rate
  from OrgOlderRrMhlsCompleted
  join OrgOlderRrCodCount using (State, RegId, OrgId)

13.2.2588. OrgOlderRrMhlsCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRrMhlsCompletionRate as New
  join hist.OrgOlderRrMhlsCompletionRate as Old using (State, RegId, OrgId)

13.2.2589. OrgOlderRrMhlsCount

Base:

ORG

Title:

ORG-level count of all MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2590. OrgOlderRrMhlsCountChange

Base:

ORG

Title:

Change in ORG-level count of all MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrMhlsCount as New
  join hist.OrgOlderRrMhlsCount as Old using (State, RegId, OrgId)

13.2.2591. OrgOlderRrMhlsCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrMhlsCount as New
  join hist.OrgOlderRrMhlsCount as Old using (State, RegId, OrgId)

13.2.2592. OrgOlderRrPocCompleted

Base:

ORG

Title:

ORG-level count of completed POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2593. OrgOlderRrPocCompletedChange

Base:

ORG

Title:

Change in ORG-level count of completed POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrPocCompleted as New
  join hist.OrgOlderRrPocCompleted as Old using (State, RegId, OrgId)

13.2.2594. OrgOlderRrPocCompletedGrowth

Base:

ORG

Title:

Growth in ORG-level count of completed POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrPocCompleted as New
  join hist.OrgOlderRrPocCompleted as Old using (State, RegId, OrgId)

13.2.2595. OrgOlderRrPocCompletionRate

Base:

ORG

Title:

ORG-level completion rate of POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(OrgOlderRrPocCompleted.Total, OrgOlderRrCodCount.Total, 3) as Rate
  from OrgOlderRrPocCompleted
  join OrgOlderRrCodCount using (State, RegId, OrgId)

13.2.2596. OrgOlderRrPocCompletionRateChange

Base:

ORG

Title:

Change in ORG-level completion rate of POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Rate - Old.Rate) as Change
  from OrgOlderRrPocCompletionRate as New
  join hist.OrgOlderRrPocCompletionRate as Old using (State, RegId, OrgId)

13.2.2597. OrgOlderRrPocCount

Base:

ORG

Title:

ORG-level count of all POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Total
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId,
                  OrgId
       ) tmpinner using (State, RegId, OrgId)

13.2.2598. OrgOlderRrPocCountChange

Base:

ORG

Title:

Change in ORG-level count of all POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       (New.Total - Old.Total) as Change
  from OrgOlderRrPocCount as New
  join hist.OrgOlderRrPocCount as Old using (State, RegId, OrgId)

13.2.2599. OrgOlderRrPocCountGrowth

Base:

ORG

Title:

Growth in ORG-level count of all POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       OrgId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from OrgOlderRrPocCount as New
  join hist.OrgOlderRrPocCount as Old using (State, RegId, OrgId)

13.2.2600. OrgResiCACount

Base:

ORG

Title:

SERV Child and adolescent Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '2'
           and TargetPop = '1'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.2601. OrgResiCount

Base:

ORG

Title:

Resi Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '2'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.2602. OrgResiForCount

Base:

ORG

Title:

SERV Forensic Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '2'
           and TargetPop = '3'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.2603. OrgResiGenCount

Base:

ORG

Title:

SERV General Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '2'
           and TargetPop = '4'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.2604. OrgResiOldCount

Base:

ORG

Title:

SERV Older person Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '2'
           and TargetPop = '2'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.2605. OrgResiYthCount

Base:

ORG

Title:

SERV Youth Count at ORG Level

SQL:
select State,
       RegId,
       OrgId,
       coalesce(Count, 0) as Count
  from ORG
  left join (
        select State,
               RegId,
               OrgId,
               count(*) as Count
          from SERV
         where SUType = '2'
           and TargetPop = '5'
         group by State,
                  RegId,
                  OrgId
       ) as tmpinner using (State, RegId, OrgId)

13.2.2606. PocCompletion

Base:

POC

Title:

Poc Completion Status

SQL:
select ColId,
       PoC in ('1','2','3','4','7') as IsCompleted
  from POC
Rules:

13.2.2607. RegAdultAaBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2608. RegAdultAaBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaBasis32Completed as New
  join hist.RegAdultAaBasis32Completed as Old using (State, RegId)

13.2.2609. RegAdultAaBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaBasis32Completed as New
  join hist.RegAdultAaBasis32Completed as Old using (State, RegId)

13.2.2610. RegAdultAaBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultAaBasis32Completed.Total, RegAdultAaCodCount.Total, 3) as Rate
  from RegAdultAaBasis32Completed
  join RegAdultAaCodCount using (State, RegId)

13.2.2611. RegAdultAaBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultAaBasis32CompletionRate as New
  join hist.RegAdultAaBasis32CompletionRate as Old using (State, RegId)

13.2.2612. RegAdultAaBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2613. RegAdultAaBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaBasis32Count as New
  join hist.RegAdultAaBasis32Count as Old using (State, RegId)

13.2.2614. RegAdultAaBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaBasis32Count as New
  join hist.RegAdultAaBasis32Count as Old using (State, RegId)

13.2.2615. RegAdultAaCodCount

Base:

REG

Title:

REG-level count of collection occasions for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2616. RegAdultAaHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2617. RegAdultAaHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaHonosCompleted as New
  join hist.RegAdultAaHonosCompleted as Old using (State, RegId)

13.2.2618. RegAdultAaHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaHonosCompleted as New
  join hist.RegAdultAaHonosCompleted as Old using (State, RegId)

13.2.2619. RegAdultAaHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultAaHonosCompleted.Total, RegAdultAaCodCount.Total, 3) as Rate
  from RegAdultAaHonosCompleted
  join RegAdultAaCodCount using (State, RegId)

13.2.2620. RegAdultAaHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultAaHonosCompletionRate as New
  join hist.RegAdultAaHonosCompletionRate as Old using (State, RegId)

13.2.2621. RegAdultAaHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2622. RegAdultAaHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaHonosCount as New
  join hist.RegAdultAaHonosCount as Old using (State, RegId)

13.2.2623. RegAdultAaHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaHonosCount as New
  join hist.RegAdultAaHonosCount as Old using (State, RegId)

13.2.2624. RegAdultAaK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2625. RegAdultAaK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaK10l3dCompleted as New
  join hist.RegAdultAaK10l3dCompleted as Old using (State, RegId)

13.2.2626. RegAdultAaK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaK10l3dCompleted as New
  join hist.RegAdultAaK10l3dCompleted as Old using (State, RegId)

13.2.2627. RegAdultAaK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultAaK10l3dCompleted.Total, RegAdultAaCodCount.Total, 3) as Rate
  from RegAdultAaK10l3dCompleted
  join RegAdultAaCodCount using (State, RegId)

13.2.2628. RegAdultAaK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultAaK10l3dCompletionRate as New
  join hist.RegAdultAaK10l3dCompletionRate as Old using (State, RegId)

13.2.2629. RegAdultAaK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2630. RegAdultAaK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaK10l3dCount as New
  join hist.RegAdultAaK10l3dCount as Old using (State, RegId)

13.2.2631. RegAdultAaK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaK10l3dCount as New
  join hist.RegAdultAaK10l3dCount as Old using (State, RegId)

13.2.2632. RegAdultAaK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2633. RegAdultAaK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaK10lmCompleted as New
  join hist.RegAdultAaK10lmCompleted as Old using (State, RegId)

13.2.2634. RegAdultAaK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaK10lmCompleted as New
  join hist.RegAdultAaK10lmCompleted as Old using (State, RegId)

13.2.2635. RegAdultAaK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultAaK10lmCompleted.Total, RegAdultAaCodCount.Total, 3) as Rate
  from RegAdultAaK10lmCompleted
  join RegAdultAaCodCount using (State, RegId)

13.2.2636. RegAdultAaK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultAaK10lmCompletionRate as New
  join hist.RegAdultAaK10lmCompletionRate as Old using (State, RegId)

13.2.2637. RegAdultAaK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2638. RegAdultAaK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaK10lmCount as New
  join hist.RegAdultAaK10lmCount as Old using (State, RegId)

13.2.2639. RegAdultAaK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaK10lmCount as New
  join hist.RegAdultAaK10lmCount as Old using (State, RegId)

13.2.2640. RegAdultAaMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2641. RegAdultAaMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaMhi38Completed as New
  join hist.RegAdultAaMhi38Completed as Old using (State, RegId)

13.2.2642. RegAdultAaMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaMhi38Completed as New
  join hist.RegAdultAaMhi38Completed as Old using (State, RegId)

13.2.2643. RegAdultAaMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultAaMhi38Completed.Total, RegAdultAaCodCount.Total, 3) as Rate
  from RegAdultAaMhi38Completed
  join RegAdultAaCodCount using (State, RegId)

13.2.2644. RegAdultAaMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultAaMhi38CompletionRate as New
  join hist.RegAdultAaMhi38CompletionRate as Old using (State, RegId)

13.2.2645. RegAdultAaMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2646. RegAdultAaMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaMhi38Count as New
  join hist.RegAdultAaMhi38Count as Old using (State, RegId)

13.2.2647. RegAdultAaMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaMhi38Count as New
  join hist.RegAdultAaMhi38Count as Old using (State, RegId)

13.2.2648. RegAdultAaPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2649. RegAdultAaPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaPocCompleted as New
  join hist.RegAdultAaPocCompleted as Old using (State, RegId)

13.2.2650. RegAdultAaPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaPocCompleted as New
  join hist.RegAdultAaPocCompleted as Old using (State, RegId)

13.2.2651. RegAdultAaPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultAaPocCompleted.Total, RegAdultAaCodCount.Total, 3) as Rate
  from RegAdultAaPocCompleted
  join RegAdultAaCodCount using (State, RegId)

13.2.2652. RegAdultAaPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultAaPocCompletionRate as New
  join hist.RegAdultAaPocCompletionRate as Old using (State, RegId)

13.2.2653. RegAdultAaPocCount

Base:

REG

Title:

REG-level count of all POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2654. RegAdultAaPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAaPocCount as New
  join hist.RegAdultAaPocCount as Old using (State, RegId)

13.2.2655. RegAdultAaPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Adult age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAaPocCount as New
  join hist.RegAdultAaPocCount as Old using (State, RegId)

13.2.2656. RegAdultAiCodCount

Base:

REG

Title:

REG-level count of collection occasions for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2657. RegAdultAiHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2658. RegAdultAiHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAiHonosCompleted as New
  join hist.RegAdultAiHonosCompleted as Old using (State, RegId)

13.2.2659. RegAdultAiHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAiHonosCompleted as New
  join hist.RegAdultAiHonosCompleted as Old using (State, RegId)

13.2.2660. RegAdultAiHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultAiHonosCompleted.Total, RegAdultAiCodCount.Total, 3) as Rate
  from RegAdultAiHonosCompleted
  join RegAdultAiCodCount using (State, RegId)

13.2.2661. RegAdultAiHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultAiHonosCompletionRate as New
  join hist.RegAdultAiHonosCompletionRate as Old using (State, RegId)

13.2.2662. RegAdultAiHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2663. RegAdultAiHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAiHonosCount as New
  join hist.RegAdultAiHonosCount as Old using (State, RegId)

13.2.2664. RegAdultAiHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAiHonosCount as New
  join hist.RegAdultAiHonosCount as Old using (State, RegId)

13.2.2665. RegAdultAiPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2666. RegAdultAiPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAiPocCompleted as New
  join hist.RegAdultAiPocCompleted as Old using (State, RegId)

13.2.2667. RegAdultAiPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAiPocCompleted as New
  join hist.RegAdultAiPocCompleted as Old using (State, RegId)

13.2.2668. RegAdultAiPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultAiPocCompleted.Total, RegAdultAiCodCount.Total, 3) as Rate
  from RegAdultAiPocCompleted
  join RegAdultAiCodCount using (State, RegId)

13.2.2669. RegAdultAiPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultAiPocCompletionRate as New
  join hist.RegAdultAiPocCompletionRate as Old using (State, RegId)

13.2.2670. RegAdultAiPocCount

Base:

REG

Title:

REG-level count of all POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2671. RegAdultAiPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultAiPocCount as New
  join hist.RegAdultAiPocCount as Old using (State, RegId)

13.2.2672. RegAdultAiPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Adult age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultAiPocCount as New
  join hist.RegAdultAiPocCount as Old using (State, RegId)

13.2.2673. RegAdultArBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2674. RegAdultArBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArBasis32Completed as New
  join hist.RegAdultArBasis32Completed as Old using (State, RegId)

13.2.2675. RegAdultArBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArBasis32Completed as New
  join hist.RegAdultArBasis32Completed as Old using (State, RegId)

13.2.2676. RegAdultArBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultArBasis32Completed.Total, RegAdultArCodCount.Total, 3) as Rate
  from RegAdultArBasis32Completed
  join RegAdultArCodCount using (State, RegId)

13.2.2677. RegAdultArBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultArBasis32CompletionRate as New
  join hist.RegAdultArBasis32CompletionRate as Old using (State, RegId)

13.2.2678. RegAdultArBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2679. RegAdultArBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArBasis32Count as New
  join hist.RegAdultArBasis32Count as Old using (State, RegId)

13.2.2680. RegAdultArBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArBasis32Count as New
  join hist.RegAdultArBasis32Count as Old using (State, RegId)

13.2.2681. RegAdultArCodCount

Base:

REG

Title:

REG-level count of collection occasions for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2682. RegAdultArHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2683. RegAdultArHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArHonosCompleted as New
  join hist.RegAdultArHonosCompleted as Old using (State, RegId)

13.2.2684. RegAdultArHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArHonosCompleted as New
  join hist.RegAdultArHonosCompleted as Old using (State, RegId)

13.2.2685. RegAdultArHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultArHonosCompleted.Total, RegAdultArCodCount.Total, 3) as Rate
  from RegAdultArHonosCompleted
  join RegAdultArCodCount using (State, RegId)

13.2.2686. RegAdultArHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultArHonosCompletionRate as New
  join hist.RegAdultArHonosCompletionRate as Old using (State, RegId)

13.2.2687. RegAdultArHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2688. RegAdultArHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArHonosCount as New
  join hist.RegAdultArHonosCount as Old using (State, RegId)

13.2.2689. RegAdultArHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArHonosCount as New
  join hist.RegAdultArHonosCount as Old using (State, RegId)

13.2.2690. RegAdultArK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2691. RegAdultArK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArK10l3dCompleted as New
  join hist.RegAdultArK10l3dCompleted as Old using (State, RegId)

13.2.2692. RegAdultArK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArK10l3dCompleted as New
  join hist.RegAdultArK10l3dCompleted as Old using (State, RegId)

13.2.2693. RegAdultArK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultArK10l3dCompleted.Total, RegAdultArCodCount.Total, 3) as Rate
  from RegAdultArK10l3dCompleted
  join RegAdultArCodCount using (State, RegId)

13.2.2694. RegAdultArK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultArK10l3dCompletionRate as New
  join hist.RegAdultArK10l3dCompletionRate as Old using (State, RegId)

13.2.2695. RegAdultArK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2696. RegAdultArK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArK10l3dCount as New
  join hist.RegAdultArK10l3dCount as Old using (State, RegId)

13.2.2697. RegAdultArK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArK10l3dCount as New
  join hist.RegAdultArK10l3dCount as Old using (State, RegId)

13.2.2698. RegAdultArK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2699. RegAdultArK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArK10lmCompleted as New
  join hist.RegAdultArK10lmCompleted as Old using (State, RegId)

13.2.2700. RegAdultArK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArK10lmCompleted as New
  join hist.RegAdultArK10lmCompleted as Old using (State, RegId)

13.2.2701. RegAdultArK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultArK10lmCompleted.Total, RegAdultArCodCount.Total, 3) as Rate
  from RegAdultArK10lmCompleted
  join RegAdultArCodCount using (State, RegId)

13.2.2702. RegAdultArK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultArK10lmCompletionRate as New
  join hist.RegAdultArK10lmCompletionRate as Old using (State, RegId)

13.2.2703. RegAdultArK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2704. RegAdultArK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArK10lmCount as New
  join hist.RegAdultArK10lmCount as Old using (State, RegId)

13.2.2705. RegAdultArK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArK10lmCount as New
  join hist.RegAdultArK10lmCount as Old using (State, RegId)

13.2.2706. RegAdultArLsp16Completed

Base:

REG

Title:

REG-level count of completed LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2707. RegAdultArLsp16CompletedChange

Base:

REG

Title:

Change in REG-level count of completed LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArLsp16Completed as New
  join hist.RegAdultArLsp16Completed as Old using (State, RegId)

13.2.2708. RegAdultArLsp16CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArLsp16Completed as New
  join hist.RegAdultArLsp16Completed as Old using (State, RegId)

13.2.2709. RegAdultArLsp16CompletionRate

Base:

REG

Title:

REG-level completion rate of LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultArLsp16Completed.Total, RegAdultArCodCount.Total, 3) as Rate
  from RegAdultArLsp16Completed
  join RegAdultArCodCount using (State, RegId)

13.2.2710. RegAdultArLsp16CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultArLsp16CompletionRate as New
  join hist.RegAdultArLsp16CompletionRate as Old using (State, RegId)

13.2.2711. RegAdultArLsp16Count

Base:

REG

Title:

REG-level count of all LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2712. RegAdultArLsp16CountChange

Base:

REG

Title:

Change in REG-level count of all LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArLsp16Count as New
  join hist.RegAdultArLsp16Count as Old using (State, RegId)

13.2.2713. RegAdultArLsp16CountGrowth

Base:

REG

Title:

Growth in REG-level count of all LSP16 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArLsp16Count as New
  join hist.RegAdultArLsp16Count as Old using (State, RegId)

13.2.2714. RegAdultArMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2715. RegAdultArMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArMhi38Completed as New
  join hist.RegAdultArMhi38Completed as Old using (State, RegId)

13.2.2716. RegAdultArMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArMhi38Completed as New
  join hist.RegAdultArMhi38Completed as Old using (State, RegId)

13.2.2717. RegAdultArMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultArMhi38Completed.Total, RegAdultArCodCount.Total, 3) as Rate
  from RegAdultArMhi38Completed
  join RegAdultArCodCount using (State, RegId)

13.2.2718. RegAdultArMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultArMhi38CompletionRate as New
  join hist.RegAdultArMhi38CompletionRate as Old using (State, RegId)

13.2.2719. RegAdultArMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2720. RegAdultArMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArMhi38Count as New
  join hist.RegAdultArMhi38Count as Old using (State, RegId)

13.2.2721. RegAdultArMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArMhi38Count as New
  join hist.RegAdultArMhi38Count as Old using (State, RegId)

13.2.2722. RegAdultArPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2723. RegAdultArPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArPocCompleted as New
  join hist.RegAdultArPocCompleted as Old using (State, RegId)

13.2.2724. RegAdultArPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArPocCompleted as New
  join hist.RegAdultArPocCompleted as Old using (State, RegId)

13.2.2725. RegAdultArPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultArPocCompleted.Total, RegAdultArCodCount.Total, 3) as Rate
  from RegAdultArPocCompleted
  join RegAdultArCodCount using (State, RegId)

13.2.2726. RegAdultArPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultArPocCompletionRate as New
  join hist.RegAdultArPocCompletionRate as Old using (State, RegId)

13.2.2727. RegAdultArPocCount

Base:

REG

Title:

REG-level count of all POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2728. RegAdultArPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultArPocCount as New
  join hist.RegAdultArPocCount as Old using (State, RegId)

13.2.2729. RegAdultArPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Adult age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultArPocCount as New
  join hist.RegAdultArPocCount as Old using (State, RegId)

13.2.2730. RegAdultDaBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2731. RegAdultDaBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaBasis32Completed as New
  join hist.RegAdultDaBasis32Completed as Old using (State, RegId)

13.2.2732. RegAdultDaBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaBasis32Completed as New
  join hist.RegAdultDaBasis32Completed as Old using (State, RegId)

13.2.2733. RegAdultDaBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDaBasis32Completed.Total, RegAdultDaCodCount.Total, 3) as Rate
  from RegAdultDaBasis32Completed
  join RegAdultDaCodCount using (State, RegId)

13.2.2734. RegAdultDaBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDaBasis32CompletionRate as New
  join hist.RegAdultDaBasis32CompletionRate as Old using (State, RegId)

13.2.2735. RegAdultDaBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2736. RegAdultDaBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaBasis32Count as New
  join hist.RegAdultDaBasis32Count as Old using (State, RegId)

13.2.2737. RegAdultDaBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaBasis32Count as New
  join hist.RegAdultDaBasis32Count as Old using (State, RegId)

13.2.2738. RegAdultDaCodCount

Base:

REG

Title:

REG-level count of collection occasions for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2739. RegAdultDaDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2740. RegAdultDaDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaDiagCompleted as New
  join hist.RegAdultDaDiagCompleted as Old using (State, RegId)

13.2.2741. RegAdultDaDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaDiagCompleted as New
  join hist.RegAdultDaDiagCompleted as Old using (State, RegId)

13.2.2742. RegAdultDaDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDaDiagCompleted.Total, RegAdultDaCodCount.Total, 3) as Rate
  from RegAdultDaDiagCompleted
  join RegAdultDaCodCount using (State, RegId)

13.2.2743. RegAdultDaDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDaDiagCompletionRate as New
  join hist.RegAdultDaDiagCompletionRate as Old using (State, RegId)

13.2.2744. RegAdultDaDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2745. RegAdultDaDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaDiagCount as New
  join hist.RegAdultDaDiagCount as Old using (State, RegId)

13.2.2746. RegAdultDaDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaDiagCount as New
  join hist.RegAdultDaDiagCount as Old using (State, RegId)

13.2.2747. RegAdultDaHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2748. RegAdultDaHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaHonosCompleted as New
  join hist.RegAdultDaHonosCompleted as Old using (State, RegId)

13.2.2749. RegAdultDaHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaHonosCompleted as New
  join hist.RegAdultDaHonosCompleted as Old using (State, RegId)

13.2.2750. RegAdultDaHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDaHonosCompleted.Total, RegAdultDaCodCount.Total, 3) as Rate
  from RegAdultDaHonosCompleted
  join RegAdultDaCodCount using (State, RegId)

13.2.2751. RegAdultDaHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDaHonosCompletionRate as New
  join hist.RegAdultDaHonosCompletionRate as Old using (State, RegId)

13.2.2752. RegAdultDaHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2753. RegAdultDaHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaHonosCount as New
  join hist.RegAdultDaHonosCount as Old using (State, RegId)

13.2.2754. RegAdultDaHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaHonosCount as New
  join hist.RegAdultDaHonosCount as Old using (State, RegId)

13.2.2755. RegAdultDaK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2756. RegAdultDaK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaK10l3dCompleted as New
  join hist.RegAdultDaK10l3dCompleted as Old using (State, RegId)

13.2.2757. RegAdultDaK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaK10l3dCompleted as New
  join hist.RegAdultDaK10l3dCompleted as Old using (State, RegId)

13.2.2758. RegAdultDaK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDaK10l3dCompleted.Total, RegAdultDaCodCount.Total, 3) as Rate
  from RegAdultDaK10l3dCompleted
  join RegAdultDaCodCount using (State, RegId)

13.2.2759. RegAdultDaK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDaK10l3dCompletionRate as New
  join hist.RegAdultDaK10l3dCompletionRate as Old using (State, RegId)

13.2.2760. RegAdultDaK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2761. RegAdultDaK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaK10l3dCount as New
  join hist.RegAdultDaK10l3dCount as Old using (State, RegId)

13.2.2762. RegAdultDaK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaK10l3dCount as New
  join hist.RegAdultDaK10l3dCount as Old using (State, RegId)

13.2.2763. RegAdultDaK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2764. RegAdultDaK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaK10lmCompleted as New
  join hist.RegAdultDaK10lmCompleted as Old using (State, RegId)

13.2.2765. RegAdultDaK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaK10lmCompleted as New
  join hist.RegAdultDaK10lmCompleted as Old using (State, RegId)

13.2.2766. RegAdultDaK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDaK10lmCompleted.Total, RegAdultDaCodCount.Total, 3) as Rate
  from RegAdultDaK10lmCompleted
  join RegAdultDaCodCount using (State, RegId)

13.2.2767. RegAdultDaK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDaK10lmCompletionRate as New
  join hist.RegAdultDaK10lmCompletionRate as Old using (State, RegId)

13.2.2768. RegAdultDaK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2769. RegAdultDaK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaK10lmCount as New
  join hist.RegAdultDaK10lmCount as Old using (State, RegId)

13.2.2770. RegAdultDaK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaK10lmCount as New
  join hist.RegAdultDaK10lmCount as Old using (State, RegId)

13.2.2771. RegAdultDaLsp16Completed

Base:

REG

Title:

REG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2772. RegAdultDaLsp16CompletedChange

Base:

REG

Title:

Change in REG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaLsp16Completed as New
  join hist.RegAdultDaLsp16Completed as Old using (State, RegId)

13.2.2773. RegAdultDaLsp16CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaLsp16Completed as New
  join hist.RegAdultDaLsp16Completed as Old using (State, RegId)

13.2.2774. RegAdultDaLsp16CompletionRate

Base:

REG

Title:

REG-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDaLsp16Completed.Total, RegAdultDaCodCount.Total, 3) as Rate
  from RegAdultDaLsp16Completed
  join RegAdultDaCodCount using (State, RegId)

13.2.2775. RegAdultDaLsp16CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDaLsp16CompletionRate as New
  join hist.RegAdultDaLsp16CompletionRate as Old using (State, RegId)

13.2.2776. RegAdultDaLsp16Count

Base:

REG

Title:

REG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2777. RegAdultDaLsp16CountChange

Base:

REG

Title:

Change in REG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaLsp16Count as New
  join hist.RegAdultDaLsp16Count as Old using (State, RegId)

13.2.2778. RegAdultDaLsp16CountGrowth

Base:

REG

Title:

Growth in REG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaLsp16Count as New
  join hist.RegAdultDaLsp16Count as Old using (State, RegId)

13.2.2779. RegAdultDaMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2780. RegAdultDaMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaMhi38Completed as New
  join hist.RegAdultDaMhi38Completed as Old using (State, RegId)

13.2.2781. RegAdultDaMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaMhi38Completed as New
  join hist.RegAdultDaMhi38Completed as Old using (State, RegId)

13.2.2782. RegAdultDaMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDaMhi38Completed.Total, RegAdultDaCodCount.Total, 3) as Rate
  from RegAdultDaMhi38Completed
  join RegAdultDaCodCount using (State, RegId)

13.2.2783. RegAdultDaMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDaMhi38CompletionRate as New
  join hist.RegAdultDaMhi38CompletionRate as Old using (State, RegId)

13.2.2784. RegAdultDaMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2785. RegAdultDaMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaMhi38Count as New
  join hist.RegAdultDaMhi38Count as Old using (State, RegId)

13.2.2786. RegAdultDaMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaMhi38Count as New
  join hist.RegAdultDaMhi38Count as Old using (State, RegId)

13.2.2787. RegAdultDaMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2788. RegAdultDaMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaMhlsCompleted as New
  join hist.RegAdultDaMhlsCompleted as Old using (State, RegId)

13.2.2789. RegAdultDaMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaMhlsCompleted as New
  join hist.RegAdultDaMhlsCompleted as Old using (State, RegId)

13.2.2790. RegAdultDaMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDaMhlsCompleted.Total, RegAdultDaCodCount.Total, 3) as Rate
  from RegAdultDaMhlsCompleted
  join RegAdultDaCodCount using (State, RegId)

13.2.2791. RegAdultDaMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDaMhlsCompletionRate as New
  join hist.RegAdultDaMhlsCompletionRate as Old using (State, RegId)

13.2.2792. RegAdultDaMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2793. RegAdultDaMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDaMhlsCount as New
  join hist.RegAdultDaMhlsCount as Old using (State, RegId)

13.2.2794. RegAdultDaMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Adult age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDaMhlsCount as New
  join hist.RegAdultDaMhlsCount as Old using (State, RegId)

13.2.2795. RegAdultDiCodCount

Base:

REG

Title:

REG-level count of collection occasions for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2796. RegAdultDiDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2797. RegAdultDiDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDiDiagCompleted as New
  join hist.RegAdultDiDiagCompleted as Old using (State, RegId)

13.2.2798. RegAdultDiDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDiDiagCompleted as New
  join hist.RegAdultDiDiagCompleted as Old using (State, RegId)

13.2.2799. RegAdultDiDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDiDiagCompleted.Total, RegAdultDiCodCount.Total, 3) as Rate
  from RegAdultDiDiagCompleted
  join RegAdultDiCodCount using (State, RegId)

13.2.2800. RegAdultDiDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDiDiagCompletionRate as New
  join hist.RegAdultDiDiagCompletionRate as Old using (State, RegId)

13.2.2801. RegAdultDiDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2802. RegAdultDiDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDiDiagCount as New
  join hist.RegAdultDiDiagCount as Old using (State, RegId)

13.2.2803. RegAdultDiDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDiDiagCount as New
  join hist.RegAdultDiDiagCount as Old using (State, RegId)

13.2.2804. RegAdultDiHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2805. RegAdultDiHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDiHonosCompleted as New
  join hist.RegAdultDiHonosCompleted as Old using (State, RegId)

13.2.2806. RegAdultDiHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDiHonosCompleted as New
  join hist.RegAdultDiHonosCompleted as Old using (State, RegId)

13.2.2807. RegAdultDiHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDiHonosCompleted.Total, RegAdultDiCodCount.Total, 3) as Rate
  from RegAdultDiHonosCompleted
  join RegAdultDiCodCount using (State, RegId)

13.2.2808. RegAdultDiHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDiHonosCompletionRate as New
  join hist.RegAdultDiHonosCompletionRate as Old using (State, RegId)

13.2.2809. RegAdultDiHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2810. RegAdultDiHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDiHonosCount as New
  join hist.RegAdultDiHonosCount as Old using (State, RegId)

13.2.2811. RegAdultDiHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDiHonosCount as New
  join hist.RegAdultDiHonosCount as Old using (State, RegId)

13.2.2812. RegAdultDiMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2813. RegAdultDiMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDiMhlsCompleted as New
  join hist.RegAdultDiMhlsCompleted as Old using (State, RegId)

13.2.2814. RegAdultDiMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDiMhlsCompleted as New
  join hist.RegAdultDiMhlsCompleted as Old using (State, RegId)

13.2.2815. RegAdultDiMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDiMhlsCompleted.Total, RegAdultDiCodCount.Total, 3) as Rate
  from RegAdultDiMhlsCompleted
  join RegAdultDiCodCount using (State, RegId)

13.2.2816. RegAdultDiMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDiMhlsCompletionRate as New
  join hist.RegAdultDiMhlsCompletionRate as Old using (State, RegId)

13.2.2817. RegAdultDiMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2818. RegAdultDiMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDiMhlsCount as New
  join hist.RegAdultDiMhlsCount as Old using (State, RegId)

13.2.2819. RegAdultDiMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Adult age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDiMhlsCount as New
  join hist.RegAdultDiMhlsCount as Old using (State, RegId)

13.2.2820. RegAdultDrBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2821. RegAdultDrBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrBasis32Completed as New
  join hist.RegAdultDrBasis32Completed as Old using (State, RegId)

13.2.2822. RegAdultDrBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrBasis32Completed as New
  join hist.RegAdultDrBasis32Completed as Old using (State, RegId)

13.2.2823. RegAdultDrBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDrBasis32Completed.Total, RegAdultDrCodCount.Total, 3) as Rate
  from RegAdultDrBasis32Completed
  join RegAdultDrCodCount using (State, RegId)

13.2.2824. RegAdultDrBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDrBasis32CompletionRate as New
  join hist.RegAdultDrBasis32CompletionRate as Old using (State, RegId)

13.2.2825. RegAdultDrBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2826. RegAdultDrBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrBasis32Count as New
  join hist.RegAdultDrBasis32Count as Old using (State, RegId)

13.2.2827. RegAdultDrBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrBasis32Count as New
  join hist.RegAdultDrBasis32Count as Old using (State, RegId)

13.2.2828. RegAdultDrCodCount

Base:

REG

Title:

REG-level count of collection occasions for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2829. RegAdultDrDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2830. RegAdultDrDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrDiagCompleted as New
  join hist.RegAdultDrDiagCompleted as Old using (State, RegId)

13.2.2831. RegAdultDrDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrDiagCompleted as New
  join hist.RegAdultDrDiagCompleted as Old using (State, RegId)

13.2.2832. RegAdultDrDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDrDiagCompleted.Total, RegAdultDrCodCount.Total, 3) as Rate
  from RegAdultDrDiagCompleted
  join RegAdultDrCodCount using (State, RegId)

13.2.2833. RegAdultDrDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDrDiagCompletionRate as New
  join hist.RegAdultDrDiagCompletionRate as Old using (State, RegId)

13.2.2834. RegAdultDrDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2835. RegAdultDrDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrDiagCount as New
  join hist.RegAdultDrDiagCount as Old using (State, RegId)

13.2.2836. RegAdultDrDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrDiagCount as New
  join hist.RegAdultDrDiagCount as Old using (State, RegId)

13.2.2837. RegAdultDrHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2838. RegAdultDrHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrHonosCompleted as New
  join hist.RegAdultDrHonosCompleted as Old using (State, RegId)

13.2.2839. RegAdultDrHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrHonosCompleted as New
  join hist.RegAdultDrHonosCompleted as Old using (State, RegId)

13.2.2840. RegAdultDrHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDrHonosCompleted.Total, RegAdultDrCodCount.Total, 3) as Rate
  from RegAdultDrHonosCompleted
  join RegAdultDrCodCount using (State, RegId)

13.2.2841. RegAdultDrHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDrHonosCompletionRate as New
  join hist.RegAdultDrHonosCompletionRate as Old using (State, RegId)

13.2.2842. RegAdultDrHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2843. RegAdultDrHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrHonosCount as New
  join hist.RegAdultDrHonosCount as Old using (State, RegId)

13.2.2844. RegAdultDrHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrHonosCount as New
  join hist.RegAdultDrHonosCount as Old using (State, RegId)

13.2.2845. RegAdultDrK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2846. RegAdultDrK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrK10l3dCompleted as New
  join hist.RegAdultDrK10l3dCompleted as Old using (State, RegId)

13.2.2847. RegAdultDrK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrK10l3dCompleted as New
  join hist.RegAdultDrK10l3dCompleted as Old using (State, RegId)

13.2.2848. RegAdultDrK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDrK10l3dCompleted.Total, RegAdultDrCodCount.Total, 3) as Rate
  from RegAdultDrK10l3dCompleted
  join RegAdultDrCodCount using (State, RegId)

13.2.2849. RegAdultDrK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDrK10l3dCompletionRate as New
  join hist.RegAdultDrK10l3dCompletionRate as Old using (State, RegId)

13.2.2850. RegAdultDrK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2851. RegAdultDrK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrK10l3dCount as New
  join hist.RegAdultDrK10l3dCount as Old using (State, RegId)

13.2.2852. RegAdultDrK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrK10l3dCount as New
  join hist.RegAdultDrK10l3dCount as Old using (State, RegId)

13.2.2853. RegAdultDrK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2854. RegAdultDrK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrK10lmCompleted as New
  join hist.RegAdultDrK10lmCompleted as Old using (State, RegId)

13.2.2855. RegAdultDrK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrK10lmCompleted as New
  join hist.RegAdultDrK10lmCompleted as Old using (State, RegId)

13.2.2856. RegAdultDrK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDrK10lmCompleted.Total, RegAdultDrCodCount.Total, 3) as Rate
  from RegAdultDrK10lmCompleted
  join RegAdultDrCodCount using (State, RegId)

13.2.2857. RegAdultDrK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDrK10lmCompletionRate as New
  join hist.RegAdultDrK10lmCompletionRate as Old using (State, RegId)

13.2.2858. RegAdultDrK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2859. RegAdultDrK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrK10lmCount as New
  join hist.RegAdultDrK10lmCount as Old using (State, RegId)

13.2.2860. RegAdultDrK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrK10lmCount as New
  join hist.RegAdultDrK10lmCount as Old using (State, RegId)

13.2.2861. RegAdultDrLsp16Completed

Base:

REG

Title:

REG-level count of completed LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2862. RegAdultDrLsp16CompletedChange

Base:

REG

Title:

Change in REG-level count of completed LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrLsp16Completed as New
  join hist.RegAdultDrLsp16Completed as Old using (State, RegId)

13.2.2863. RegAdultDrLsp16CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrLsp16Completed as New
  join hist.RegAdultDrLsp16Completed as Old using (State, RegId)

13.2.2864. RegAdultDrLsp16CompletionRate

Base:

REG

Title:

REG-level completion rate of LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDrLsp16Completed.Total, RegAdultDrCodCount.Total, 3) as Rate
  from RegAdultDrLsp16Completed
  join RegAdultDrCodCount using (State, RegId)

13.2.2865. RegAdultDrLsp16CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDrLsp16CompletionRate as New
  join hist.RegAdultDrLsp16CompletionRate as Old using (State, RegId)

13.2.2866. RegAdultDrLsp16Count

Base:

REG

Title:

REG-level count of all LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2867. RegAdultDrLsp16CountChange

Base:

REG

Title:

Change in REG-level count of all LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrLsp16Count as New
  join hist.RegAdultDrLsp16Count as Old using (State, RegId)

13.2.2868. RegAdultDrLsp16CountGrowth

Base:

REG

Title:

Growth in REG-level count of all LSP16 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrLsp16Count as New
  join hist.RegAdultDrLsp16Count as Old using (State, RegId)

13.2.2869. RegAdultDrMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2870. RegAdultDrMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrMhi38Completed as New
  join hist.RegAdultDrMhi38Completed as Old using (State, RegId)

13.2.2871. RegAdultDrMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrMhi38Completed as New
  join hist.RegAdultDrMhi38Completed as Old using (State, RegId)

13.2.2872. RegAdultDrMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDrMhi38Completed.Total, RegAdultDrCodCount.Total, 3) as Rate
  from RegAdultDrMhi38Completed
  join RegAdultDrCodCount using (State, RegId)

13.2.2873. RegAdultDrMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDrMhi38CompletionRate as New
  join hist.RegAdultDrMhi38CompletionRate as Old using (State, RegId)

13.2.2874. RegAdultDrMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2875. RegAdultDrMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrMhi38Count as New
  join hist.RegAdultDrMhi38Count as Old using (State, RegId)

13.2.2876. RegAdultDrMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrMhi38Count as New
  join hist.RegAdultDrMhi38Count as Old using (State, RegId)

13.2.2877. RegAdultDrMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2878. RegAdultDrMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrMhlsCompleted as New
  join hist.RegAdultDrMhlsCompleted as Old using (State, RegId)

13.2.2879. RegAdultDrMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrMhlsCompleted as New
  join hist.RegAdultDrMhlsCompleted as Old using (State, RegId)

13.2.2880. RegAdultDrMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultDrMhlsCompleted.Total, RegAdultDrCodCount.Total, 3) as Rate
  from RegAdultDrMhlsCompleted
  join RegAdultDrCodCount using (State, RegId)

13.2.2881. RegAdultDrMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultDrMhlsCompletionRate as New
  join hist.RegAdultDrMhlsCompletionRate as Old using (State, RegId)

13.2.2882. RegAdultDrMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2883. RegAdultDrMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultDrMhlsCount as New
  join hist.RegAdultDrMhlsCount as Old using (State, RegId)

13.2.2884. RegAdultDrMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Adult age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultDrMhlsCount as New
  join hist.RegAdultDrMhlsCount as Old using (State, RegId)

13.2.2885. RegAdultRaBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2886. RegAdultRaBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaBasis32Completed as New
  join hist.RegAdultRaBasis32Completed as Old using (State, RegId)

13.2.2887. RegAdultRaBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaBasis32Completed as New
  join hist.RegAdultRaBasis32Completed as Old using (State, RegId)

13.2.2888. RegAdultRaBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRaBasis32Completed.Total, RegAdultRaCodCount.Total, 3) as Rate
  from RegAdultRaBasis32Completed
  join RegAdultRaCodCount using (State, RegId)

13.2.2889. RegAdultRaBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRaBasis32CompletionRate as New
  join hist.RegAdultRaBasis32CompletionRate as Old using (State, RegId)

13.2.2890. RegAdultRaBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2891. RegAdultRaBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaBasis32Count as New
  join hist.RegAdultRaBasis32Count as Old using (State, RegId)

13.2.2892. RegAdultRaBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaBasis32Count as New
  join hist.RegAdultRaBasis32Count as Old using (State, RegId)

13.2.2893. RegAdultRaCodCount

Base:

REG

Title:

REG-level count of collection occasions for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2894. RegAdultRaDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2895. RegAdultRaDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaDiagCompleted as New
  join hist.RegAdultRaDiagCompleted as Old using (State, RegId)

13.2.2896. RegAdultRaDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaDiagCompleted as New
  join hist.RegAdultRaDiagCompleted as Old using (State, RegId)

13.2.2897. RegAdultRaDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRaDiagCompleted.Total, RegAdultRaCodCount.Total, 3) as Rate
  from RegAdultRaDiagCompleted
  join RegAdultRaCodCount using (State, RegId)

13.2.2898. RegAdultRaDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRaDiagCompletionRate as New
  join hist.RegAdultRaDiagCompletionRate as Old using (State, RegId)

13.2.2899. RegAdultRaDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2900. RegAdultRaDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaDiagCount as New
  join hist.RegAdultRaDiagCount as Old using (State, RegId)

13.2.2901. RegAdultRaDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaDiagCount as New
  join hist.RegAdultRaDiagCount as Old using (State, RegId)

13.2.2902. RegAdultRaHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2903. RegAdultRaHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaHonosCompleted as New
  join hist.RegAdultRaHonosCompleted as Old using (State, RegId)

13.2.2904. RegAdultRaHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaHonosCompleted as New
  join hist.RegAdultRaHonosCompleted as Old using (State, RegId)

13.2.2905. RegAdultRaHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRaHonosCompleted.Total, RegAdultRaCodCount.Total, 3) as Rate
  from RegAdultRaHonosCompleted
  join RegAdultRaCodCount using (State, RegId)

13.2.2906. RegAdultRaHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRaHonosCompletionRate as New
  join hist.RegAdultRaHonosCompletionRate as Old using (State, RegId)

13.2.2907. RegAdultRaHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2908. RegAdultRaHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaHonosCount as New
  join hist.RegAdultRaHonosCount as Old using (State, RegId)

13.2.2909. RegAdultRaHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaHonosCount as New
  join hist.RegAdultRaHonosCount as Old using (State, RegId)

13.2.2910. RegAdultRaK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2911. RegAdultRaK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaK10l3dCompleted as New
  join hist.RegAdultRaK10l3dCompleted as Old using (State, RegId)

13.2.2912. RegAdultRaK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaK10l3dCompleted as New
  join hist.RegAdultRaK10l3dCompleted as Old using (State, RegId)

13.2.2913. RegAdultRaK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRaK10l3dCompleted.Total, RegAdultRaCodCount.Total, 3) as Rate
  from RegAdultRaK10l3dCompleted
  join RegAdultRaCodCount using (State, RegId)

13.2.2914. RegAdultRaK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRaK10l3dCompletionRate as New
  join hist.RegAdultRaK10l3dCompletionRate as Old using (State, RegId)

13.2.2915. RegAdultRaK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2916. RegAdultRaK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaK10l3dCount as New
  join hist.RegAdultRaK10l3dCount as Old using (State, RegId)

13.2.2917. RegAdultRaK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaK10l3dCount as New
  join hist.RegAdultRaK10l3dCount as Old using (State, RegId)

13.2.2918. RegAdultRaK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2919. RegAdultRaK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaK10lmCompleted as New
  join hist.RegAdultRaK10lmCompleted as Old using (State, RegId)

13.2.2920. RegAdultRaK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaK10lmCompleted as New
  join hist.RegAdultRaK10lmCompleted as Old using (State, RegId)

13.2.2921. RegAdultRaK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRaK10lmCompleted.Total, RegAdultRaCodCount.Total, 3) as Rate
  from RegAdultRaK10lmCompleted
  join RegAdultRaCodCount using (State, RegId)

13.2.2922. RegAdultRaK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRaK10lmCompletionRate as New
  join hist.RegAdultRaK10lmCompletionRate as Old using (State, RegId)

13.2.2923. RegAdultRaK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2924. RegAdultRaK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaK10lmCount as New
  join hist.RegAdultRaK10lmCount as Old using (State, RegId)

13.2.2925. RegAdultRaK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaK10lmCount as New
  join hist.RegAdultRaK10lmCount as Old using (State, RegId)

13.2.2926. RegAdultRaLsp16Completed

Base:

REG

Title:

REG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2927. RegAdultRaLsp16CompletedChange

Base:

REG

Title:

Change in REG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaLsp16Completed as New
  join hist.RegAdultRaLsp16Completed as Old using (State, RegId)

13.2.2928. RegAdultRaLsp16CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaLsp16Completed as New
  join hist.RegAdultRaLsp16Completed as Old using (State, RegId)

13.2.2929. RegAdultRaLsp16CompletionRate

Base:

REG

Title:

REG-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRaLsp16Completed.Total, RegAdultRaCodCount.Total, 3) as Rate
  from RegAdultRaLsp16Completed
  join RegAdultRaCodCount using (State, RegId)

13.2.2930. RegAdultRaLsp16CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRaLsp16CompletionRate as New
  join hist.RegAdultRaLsp16CompletionRate as Old using (State, RegId)

13.2.2931. RegAdultRaLsp16Count

Base:

REG

Title:

REG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2932. RegAdultRaLsp16CountChange

Base:

REG

Title:

Change in REG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaLsp16Count as New
  join hist.RegAdultRaLsp16Count as Old using (State, RegId)

13.2.2933. RegAdultRaLsp16CountGrowth

Base:

REG

Title:

Growth in REG-level count of all LSP16 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaLsp16Count as New
  join hist.RegAdultRaLsp16Count as Old using (State, RegId)

13.2.2934. RegAdultRaMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2935. RegAdultRaMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaMhi38Completed as New
  join hist.RegAdultRaMhi38Completed as Old using (State, RegId)

13.2.2936. RegAdultRaMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaMhi38Completed as New
  join hist.RegAdultRaMhi38Completed as Old using (State, RegId)

13.2.2937. RegAdultRaMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRaMhi38Completed.Total, RegAdultRaCodCount.Total, 3) as Rate
  from RegAdultRaMhi38Completed
  join RegAdultRaCodCount using (State, RegId)

13.2.2938. RegAdultRaMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRaMhi38CompletionRate as New
  join hist.RegAdultRaMhi38CompletionRate as Old using (State, RegId)

13.2.2939. RegAdultRaMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2940. RegAdultRaMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaMhi38Count as New
  join hist.RegAdultRaMhi38Count as Old using (State, RegId)

13.2.2941. RegAdultRaMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaMhi38Count as New
  join hist.RegAdultRaMhi38Count as Old using (State, RegId)

13.2.2942. RegAdultRaMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2943. RegAdultRaMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaMhlsCompleted as New
  join hist.RegAdultRaMhlsCompleted as Old using (State, RegId)

13.2.2944. RegAdultRaMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaMhlsCompleted as New
  join hist.RegAdultRaMhlsCompleted as Old using (State, RegId)

13.2.2945. RegAdultRaMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRaMhlsCompleted.Total, RegAdultRaCodCount.Total, 3) as Rate
  from RegAdultRaMhlsCompleted
  join RegAdultRaCodCount using (State, RegId)

13.2.2946. RegAdultRaMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRaMhlsCompletionRate as New
  join hist.RegAdultRaMhlsCompletionRate as Old using (State, RegId)

13.2.2947. RegAdultRaMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2948. RegAdultRaMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaMhlsCount as New
  join hist.RegAdultRaMhlsCount as Old using (State, RegId)

13.2.2949. RegAdultRaMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaMhlsCount as New
  join hist.RegAdultRaMhlsCount as Old using (State, RegId)

13.2.2950. RegAdultRaPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2951. RegAdultRaPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaPocCompleted as New
  join hist.RegAdultRaPocCompleted as Old using (State, RegId)

13.2.2952. RegAdultRaPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaPocCompleted as New
  join hist.RegAdultRaPocCompleted as Old using (State, RegId)

13.2.2953. RegAdultRaPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRaPocCompleted.Total, RegAdultRaCodCount.Total, 3) as Rate
  from RegAdultRaPocCompleted
  join RegAdultRaCodCount using (State, RegId)

13.2.2954. RegAdultRaPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRaPocCompletionRate as New
  join hist.RegAdultRaPocCompletionRate as Old using (State, RegId)

13.2.2955. RegAdultRaPocCount

Base:

REG

Title:

REG-level count of all POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2956. RegAdultRaPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRaPocCount as New
  join hist.RegAdultRaPocCount as Old using (State, RegId)

13.2.2957. RegAdultRaPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Adult age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRaPocCount as New
  join hist.RegAdultRaPocCount as Old using (State, RegId)

13.2.2958. RegAdultRiCodCount

Base:

REG

Title:

REG-level count of collection occasions for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2959. RegAdultRiDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2960. RegAdultRiDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRiDiagCompleted as New
  join hist.RegAdultRiDiagCompleted as Old using (State, RegId)

13.2.2961. RegAdultRiDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRiDiagCompleted as New
  join hist.RegAdultRiDiagCompleted as Old using (State, RegId)

13.2.2962. RegAdultRiDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRiDiagCompleted.Total, RegAdultRiCodCount.Total, 3) as Rate
  from RegAdultRiDiagCompleted
  join RegAdultRiCodCount using (State, RegId)

13.2.2963. RegAdultRiDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRiDiagCompletionRate as New
  join hist.RegAdultRiDiagCompletionRate as Old using (State, RegId)

13.2.2964. RegAdultRiDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2965. RegAdultRiDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRiDiagCount as New
  join hist.RegAdultRiDiagCount as Old using (State, RegId)

13.2.2966. RegAdultRiDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRiDiagCount as New
  join hist.RegAdultRiDiagCount as Old using (State, RegId)

13.2.2967. RegAdultRiHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2968. RegAdultRiHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRiHonosCompleted as New
  join hist.RegAdultRiHonosCompleted as Old using (State, RegId)

13.2.2969. RegAdultRiHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRiHonosCompleted as New
  join hist.RegAdultRiHonosCompleted as Old using (State, RegId)

13.2.2970. RegAdultRiHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRiHonosCompleted.Total, RegAdultRiCodCount.Total, 3) as Rate
  from RegAdultRiHonosCompleted
  join RegAdultRiCodCount using (State, RegId)

13.2.2971. RegAdultRiHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRiHonosCompletionRate as New
  join hist.RegAdultRiHonosCompletionRate as Old using (State, RegId)

13.2.2972. RegAdultRiHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2973. RegAdultRiHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRiHonosCount as New
  join hist.RegAdultRiHonosCount as Old using (State, RegId)

13.2.2974. RegAdultRiHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRiHonosCount as New
  join hist.RegAdultRiHonosCount as Old using (State, RegId)

13.2.2975. RegAdultRiMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2976. RegAdultRiMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRiMhlsCompleted as New
  join hist.RegAdultRiMhlsCompleted as Old using (State, RegId)

13.2.2977. RegAdultRiMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRiMhlsCompleted as New
  join hist.RegAdultRiMhlsCompleted as Old using (State, RegId)

13.2.2978. RegAdultRiMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRiMhlsCompleted.Total, RegAdultRiCodCount.Total, 3) as Rate
  from RegAdultRiMhlsCompleted
  join RegAdultRiCodCount using (State, RegId)

13.2.2979. RegAdultRiMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRiMhlsCompletionRate as New
  join hist.RegAdultRiMhlsCompletionRate as Old using (State, RegId)

13.2.2980. RegAdultRiMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2981. RegAdultRiMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRiMhlsCount as New
  join hist.RegAdultRiMhlsCount as Old using (State, RegId)

13.2.2982. RegAdultRiMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRiMhlsCount as New
  join hist.RegAdultRiMhlsCount as Old using (State, RegId)

13.2.2983. RegAdultRiPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2984. RegAdultRiPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRiPocCompleted as New
  join hist.RegAdultRiPocCompleted as Old using (State, RegId)

13.2.2985. RegAdultRiPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRiPocCompleted as New
  join hist.RegAdultRiPocCompleted as Old using (State, RegId)

13.2.2986. RegAdultRiPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRiPocCompleted.Total, RegAdultRiCodCount.Total, 3) as Rate
  from RegAdultRiPocCompleted
  join RegAdultRiCodCount using (State, RegId)

13.2.2987. RegAdultRiPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRiPocCompletionRate as New
  join hist.RegAdultRiPocCompletionRate as Old using (State, RegId)

13.2.2988. RegAdultRiPocCount

Base:

REG

Title:

REG-level count of all POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2989. RegAdultRiPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRiPocCount as New
  join hist.RegAdultRiPocCount as Old using (State, RegId)

13.2.2990. RegAdultRiPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Adult age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRiPocCount as New
  join hist.RegAdultRiPocCount as Old using (State, RegId)

13.2.2991. RegAdultRrBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2992. RegAdultRrBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrBasis32Completed as New
  join hist.RegAdultRrBasis32Completed as Old using (State, RegId)

13.2.2993. RegAdultRrBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrBasis32Completed as New
  join hist.RegAdultRrBasis32Completed as Old using (State, RegId)

13.2.2994. RegAdultRrBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRrBasis32Completed.Total, RegAdultRrCodCount.Total, 3) as Rate
  from RegAdultRrBasis32Completed
  join RegAdultRrCodCount using (State, RegId)

13.2.2995. RegAdultRrBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRrBasis32CompletionRate as New
  join hist.RegAdultRrBasis32CompletionRate as Old using (State, RegId)

13.2.2996. RegAdultRrBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.2997. RegAdultRrBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrBasis32Count as New
  join hist.RegAdultRrBasis32Count as Old using (State, RegId)

13.2.2998. RegAdultRrBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrBasis32Count as New
  join hist.RegAdultRrBasis32Count as Old using (State, RegId)

13.2.2999. RegAdultRrCodCount

Base:

REG

Title:

REG-level count of collection occasions for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3000. RegAdultRrDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3001. RegAdultRrDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrDiagCompleted as New
  join hist.RegAdultRrDiagCompleted as Old using (State, RegId)

13.2.3002. RegAdultRrDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrDiagCompleted as New
  join hist.RegAdultRrDiagCompleted as Old using (State, RegId)

13.2.3003. RegAdultRrDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRrDiagCompleted.Total, RegAdultRrCodCount.Total, 3) as Rate
  from RegAdultRrDiagCompleted
  join RegAdultRrCodCount using (State, RegId)

13.2.3004. RegAdultRrDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRrDiagCompletionRate as New
  join hist.RegAdultRrDiagCompletionRate as Old using (State, RegId)

13.2.3005. RegAdultRrDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3006. RegAdultRrDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrDiagCount as New
  join hist.RegAdultRrDiagCount as Old using (State, RegId)

13.2.3007. RegAdultRrDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrDiagCount as New
  join hist.RegAdultRrDiagCount as Old using (State, RegId)

13.2.3008. RegAdultRrHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3009. RegAdultRrHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrHonosCompleted as New
  join hist.RegAdultRrHonosCompleted as Old using (State, RegId)

13.2.3010. RegAdultRrHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrHonosCompleted as New
  join hist.RegAdultRrHonosCompleted as Old using (State, RegId)

13.2.3011. RegAdultRrHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRrHonosCompleted.Total, RegAdultRrCodCount.Total, 3) as Rate
  from RegAdultRrHonosCompleted
  join RegAdultRrCodCount using (State, RegId)

13.2.3012. RegAdultRrHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRrHonosCompletionRate as New
  join hist.RegAdultRrHonosCompletionRate as Old using (State, RegId)

13.2.3013. RegAdultRrHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3014. RegAdultRrHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrHonosCount as New
  join hist.RegAdultRrHonosCount as Old using (State, RegId)

13.2.3015. RegAdultRrHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrHonosCount as New
  join hist.RegAdultRrHonosCount as Old using (State, RegId)

13.2.3016. RegAdultRrK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3017. RegAdultRrK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrK10l3dCompleted as New
  join hist.RegAdultRrK10l3dCompleted as Old using (State, RegId)

13.2.3018. RegAdultRrK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrK10l3dCompleted as New
  join hist.RegAdultRrK10l3dCompleted as Old using (State, RegId)

13.2.3019. RegAdultRrK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRrK10l3dCompleted.Total, RegAdultRrCodCount.Total, 3) as Rate
  from RegAdultRrK10l3dCompleted
  join RegAdultRrCodCount using (State, RegId)

13.2.3020. RegAdultRrK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRrK10l3dCompletionRate as New
  join hist.RegAdultRrK10l3dCompletionRate as Old using (State, RegId)

13.2.3021. RegAdultRrK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3022. RegAdultRrK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrK10l3dCount as New
  join hist.RegAdultRrK10l3dCount as Old using (State, RegId)

13.2.3023. RegAdultRrK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrK10l3dCount as New
  join hist.RegAdultRrK10l3dCount as Old using (State, RegId)

13.2.3024. RegAdultRrK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3025. RegAdultRrK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrK10lmCompleted as New
  join hist.RegAdultRrK10lmCompleted as Old using (State, RegId)

13.2.3026. RegAdultRrK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrK10lmCompleted as New
  join hist.RegAdultRrK10lmCompleted as Old using (State, RegId)

13.2.3027. RegAdultRrK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRrK10lmCompleted.Total, RegAdultRrCodCount.Total, 3) as Rate
  from RegAdultRrK10lmCompleted
  join RegAdultRrCodCount using (State, RegId)

13.2.3028. RegAdultRrK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRrK10lmCompletionRate as New
  join hist.RegAdultRrK10lmCompletionRate as Old using (State, RegId)

13.2.3029. RegAdultRrK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3030. RegAdultRrK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrK10lmCount as New
  join hist.RegAdultRrK10lmCount as Old using (State, RegId)

13.2.3031. RegAdultRrK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrK10lmCount as New
  join hist.RegAdultRrK10lmCount as Old using (State, RegId)

13.2.3032. RegAdultRrLsp16Completed

Base:

REG

Title:

REG-level count of completed LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3033. RegAdultRrLsp16CompletedChange

Base:

REG

Title:

Change in REG-level count of completed LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrLsp16Completed as New
  join hist.RegAdultRrLsp16Completed as Old using (State, RegId)

13.2.3034. RegAdultRrLsp16CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrLsp16Completed as New
  join hist.RegAdultRrLsp16Completed as Old using (State, RegId)

13.2.3035. RegAdultRrLsp16CompletionRate

Base:

REG

Title:

REG-level completion rate of LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRrLsp16Completed.Total, RegAdultRrCodCount.Total, 3) as Rate
  from RegAdultRrLsp16Completed
  join RegAdultRrCodCount using (State, RegId)

13.2.3036. RegAdultRrLsp16CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRrLsp16CompletionRate as New
  join hist.RegAdultRrLsp16CompletionRate as Old using (State, RegId)

13.2.3037. RegAdultRrLsp16Count

Base:

REG

Title:

REG-level count of all LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3038. RegAdultRrLsp16CountChange

Base:

REG

Title:

Change in REG-level count of all LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrLsp16Count as New
  join hist.RegAdultRrLsp16Count as Old using (State, RegId)

13.2.3039. RegAdultRrLsp16CountGrowth

Base:

REG

Title:

Growth in REG-level count of all LSP16 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrLsp16Count as New
  join hist.RegAdultRrLsp16Count as Old using (State, RegId)

13.2.3040. RegAdultRrMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3041. RegAdultRrMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrMhi38Completed as New
  join hist.RegAdultRrMhi38Completed as Old using (State, RegId)

13.2.3042. RegAdultRrMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrMhi38Completed as New
  join hist.RegAdultRrMhi38Completed as Old using (State, RegId)

13.2.3043. RegAdultRrMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRrMhi38Completed.Total, RegAdultRrCodCount.Total, 3) as Rate
  from RegAdultRrMhi38Completed
  join RegAdultRrCodCount using (State, RegId)

13.2.3044. RegAdultRrMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRrMhi38CompletionRate as New
  join hist.RegAdultRrMhi38CompletionRate as Old using (State, RegId)

13.2.3045. RegAdultRrMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3046. RegAdultRrMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrMhi38Count as New
  join hist.RegAdultRrMhi38Count as Old using (State, RegId)

13.2.3047. RegAdultRrMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrMhi38Count as New
  join hist.RegAdultRrMhi38Count as Old using (State, RegId)

13.2.3048. RegAdultRrMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3049. RegAdultRrMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrMhlsCompleted as New
  join hist.RegAdultRrMhlsCompleted as Old using (State, RegId)

13.2.3050. RegAdultRrMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrMhlsCompleted as New
  join hist.RegAdultRrMhlsCompleted as Old using (State, RegId)

13.2.3051. RegAdultRrMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRrMhlsCompleted.Total, RegAdultRrCodCount.Total, 3) as Rate
  from RegAdultRrMhlsCompleted
  join RegAdultRrCodCount using (State, RegId)

13.2.3052. RegAdultRrMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRrMhlsCompletionRate as New
  join hist.RegAdultRrMhlsCompletionRate as Old using (State, RegId)

13.2.3053. RegAdultRrMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3054. RegAdultRrMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrMhlsCount as New
  join hist.RegAdultRrMhlsCount as Old using (State, RegId)

13.2.3055. RegAdultRrMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrMhlsCount as New
  join hist.RegAdultRrMhlsCount as Old using (State, RegId)

13.2.3056. RegAdultRrPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3057. RegAdultRrPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrPocCompleted as New
  join hist.RegAdultRrPocCompleted as Old using (State, RegId)

13.2.3058. RegAdultRrPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrPocCompleted as New
  join hist.RegAdultRrPocCompleted as Old using (State, RegId)

13.2.3059. RegAdultRrPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegAdultRrPocCompleted.Total, RegAdultRrCodCount.Total, 3) as Rate
  from RegAdultRrPocCompleted
  join RegAdultRrCodCount using (State, RegId)

13.2.3060. RegAdultRrPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegAdultRrPocCompletionRate as New
  join hist.RegAdultRrPocCompletionRate as Old using (State, RegId)

13.2.3061. RegAdultRrPocCount

Base:

REG

Title:

REG-level count of all POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '2'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3062. RegAdultRrPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegAdultRrPocCount as New
  join hist.RegAdultRrPocCount as Old using (State, RegId)

13.2.3063. RegAdultRrPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Adult age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegAdultRrPocCount as New
  join hist.RegAdultRrPocCount as Old using (State, RegId)

13.2.3064. RegChildAaCgasCompleted

Base:

REG

Title:

REG-level count of completed CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3065. RegChildAaCgasCompletedChange

Base:

REG

Title:

Change in REG-level count of completed CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAaCgasCompleted as New
  join hist.RegChildAaCgasCompleted as Old using (State, RegId)

13.2.3066. RegChildAaCgasCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAaCgasCompleted as New
  join hist.RegChildAaCgasCompleted as Old using (State, RegId)

13.2.3067. RegChildAaCgasCompletionRate

Base:

REG

Title:

REG-level completion rate of CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegChildAaCgasCompleted.Total, RegChildAaCodCount.Total, 3) as Rate
  from RegChildAaCgasCompleted
  join RegChildAaCodCount using (State, RegId)

13.2.3068. RegChildAaCgasCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildAaCgasCompletionRate as New
  join hist.RegChildAaCgasCompletionRate as Old using (State, RegId)

13.2.3069. RegChildAaCgasCount

Base:

REG

Title:

REG-level count of all CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3070. RegChildAaCgasCountChange

Base:

REG

Title:

Change in REG-level count of all CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAaCgasCount as New
  join hist.RegChildAaCgasCount as Old using (State, RegId)

13.2.3071. RegChildAaCgasCountGrowth

Base:

REG

Title:

Growth in REG-level count of all CGAS measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAaCgasCount as New
  join hist.RegChildAaCgasCount as Old using (State, RegId)

13.2.3072. RegChildAaCodCount

Base:

REG

Title:

REG-level count of collection occasions for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3073. RegChildAaHonoscaCompleted

Base:

REG

Title:

REG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3074. RegChildAaHonoscaCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAaHonoscaCompleted as New
  join hist.RegChildAaHonoscaCompleted as Old using (State, RegId)

13.2.3075. RegChildAaHonoscaCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAaHonoscaCompleted as New
  join hist.RegChildAaHonoscaCompleted as Old using (State, RegId)

13.2.3076. RegChildAaHonoscaCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegChildAaHonoscaCompleted.Total, RegChildAaCodCount.Total, 3) as Rate
  from RegChildAaHonoscaCompleted
  join RegChildAaCodCount using (State, RegId)

13.2.3077. RegChildAaHonoscaCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildAaHonoscaCompletionRate as New
  join hist.RegChildAaHonoscaCompletionRate as Old using (State, RegId)

13.2.3078. RegChildAaHonoscaCount

Base:

REG

Title:

REG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3079. RegChildAaHonoscaCountChange

Base:

REG

Title:

Change in REG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAaHonoscaCount as New
  join hist.RegChildAaHonoscaCount as Old using (State, RegId)

13.2.3080. RegChildAaHonoscaCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAaHonoscaCount as New
  join hist.RegChildAaHonoscaCount as Old using (State, RegId)

13.2.3081. RegChildAaSdqCompleted

Base:

REG

Title:

REG-level count of completed SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3082. RegChildAaSdqCompletedChange

Base:

REG

Title:

Change in REG-level count of completed SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAaSdqCompleted as New
  join hist.RegChildAaSdqCompleted as Old using (State, RegId)

13.2.3083. RegChildAaSdqCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAaSdqCompleted as New
  join hist.RegChildAaSdqCompleted as Old using (State, RegId)

13.2.3084. RegChildAaSdqCompletionRate

Base:

REG

Title:

REG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegChildAaSdqCompleted.Total, RegChildAaCodCount.Total, 3) as Rate
  from RegChildAaSdqCompleted
  join RegChildAaCodCount using (State, RegId)

13.2.3085. RegChildAaSdqCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildAaSdqCompletionRate as New
  join hist.RegChildAaSdqCompletionRate as Old using (State, RegId)

13.2.3086. RegChildAaSdqCount

Base:

REG

Title:

REG-level count of all SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3087. RegChildAaSdqCountChange

Base:

REG

Title:

Change in REG-level count of all SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAaSdqCount as New
  join hist.RegChildAaSdqCount as Old using (State, RegId)

13.2.3088. RegChildAaSdqCountGrowth

Base:

REG

Title:

Growth in REG-level count of all SDQ measures for Child age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAaSdqCount as New
  join hist.RegChildAaSdqCount as Old using (State, RegId)

13.2.3089. RegChildAiCgasCompleted

Base:

REG

Title:

REG-level count of completed CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3090. RegChildAiCgasCompletedChange

Base:

REG

Title:

Change in REG-level count of completed CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAiCgasCompleted as New
  join hist.RegChildAiCgasCompleted as Old using (State, RegId)

13.2.3091. RegChildAiCgasCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAiCgasCompleted as New
  join hist.RegChildAiCgasCompleted as Old using (State, RegId)

13.2.3092. RegChildAiCgasCompletionRate

Base:

REG

Title:

REG-level completion rate of CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegChildAiCgasCompleted.Total, RegChildAiCodCount.Total, 3) as Rate
  from RegChildAiCgasCompleted
  join RegChildAiCodCount using (State, RegId)

13.2.3093. RegChildAiCgasCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildAiCgasCompletionRate as New
  join hist.RegChildAiCgasCompletionRate as Old using (State, RegId)

13.2.3094. RegChildAiCgasCount

Base:

REG

Title:

REG-level count of all CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3095. RegChildAiCgasCountChange

Base:

REG

Title:

Change in REG-level count of all CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAiCgasCount as New
  join hist.RegChildAiCgasCount as Old using (State, RegId)

13.2.3096. RegChildAiCgasCountGrowth

Base:

REG

Title:

Growth in REG-level count of all CGAS measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAiCgasCount as New
  join hist.RegChildAiCgasCount as Old using (State, RegId)

13.2.3097. RegChildAiCodCount

Base:

REG

Title:

REG-level count of collection occasions for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3098. RegChildAiHonoscaCompleted

Base:

REG

Title:

REG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3099. RegChildAiHonoscaCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAiHonoscaCompleted as New
  join hist.RegChildAiHonoscaCompleted as Old using (State, RegId)

13.2.3100. RegChildAiHonoscaCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAiHonoscaCompleted as New
  join hist.RegChildAiHonoscaCompleted as Old using (State, RegId)

13.2.3101. RegChildAiHonoscaCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegChildAiHonoscaCompleted.Total, RegChildAiCodCount.Total, 3) as Rate
  from RegChildAiHonoscaCompleted
  join RegChildAiCodCount using (State, RegId)

13.2.3102. RegChildAiHonoscaCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildAiHonoscaCompletionRate as New
  join hist.RegChildAiHonoscaCompletionRate as Old using (State, RegId)

13.2.3103. RegChildAiHonoscaCount

Base:

REG

Title:

REG-level count of all HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3104. RegChildAiHonoscaCountChange

Base:

REG

Title:

Change in REG-level count of all HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAiHonoscaCount as New
  join hist.RegChildAiHonoscaCount as Old using (State, RegId)

13.2.3105. RegChildAiHonoscaCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOSCA measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAiHonoscaCount as New
  join hist.RegChildAiHonoscaCount as Old using (State, RegId)

13.2.3106. RegChildAiSdqCompleted

Base:

REG

Title:

REG-level count of completed SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3107. RegChildAiSdqCompletedChange

Base:

REG

Title:

Change in REG-level count of completed SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAiSdqCompleted as New
  join hist.RegChildAiSdqCompleted as Old using (State, RegId)

13.2.3108. RegChildAiSdqCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAiSdqCompleted as New
  join hist.RegChildAiSdqCompleted as Old using (State, RegId)

13.2.3109. RegChildAiSdqCompletionRate

Base:

REG

Title:

REG-level completion rate of SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegChildAiSdqCompleted.Total, RegChildAiCodCount.Total, 3) as Rate
  from RegChildAiSdqCompleted
  join RegChildAiCodCount using (State, RegId)

13.2.3110. RegChildAiSdqCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildAiSdqCompletionRate as New
  join hist.RegChildAiSdqCompletionRate as Old using (State, RegId)

13.2.3111. RegChildAiSdqCount

Base:

REG

Title:

REG-level count of all SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3112. RegChildAiSdqCountChange

Base:

REG

Title:

Change in REG-level count of all SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildAiSdqCount as New
  join hist.RegChildAiSdqCount as Old using (State, RegId)

13.2.3113. RegChildAiSdqCountGrowth

Base:

REG

Title:

Growth in REG-level count of all SDQ measures for Child age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildAiSdqCount as New
  join hist.RegChildAiSdqCount as Old using (State, RegId)

13.2.3114. RegChildArCgasCompleted

Base:

REG

Title:

REG-level count of completed CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3115. RegChildArCgasCompletedChange

Base:

REG

Title:

Change in REG-level count of completed CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildArCgasCompleted as New
  join hist.RegChildArCgasCompleted as Old using (State, RegId)

13.2.3116. RegChildArCgasCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildArCgasCompleted as New
  join hist.RegChildArCgasCompleted as Old using (State, RegId)

13.2.3117. RegChildArCgasCompletionRate

Base:

REG

Title:

REG-level completion rate of CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegChildArCgasCompleted.Total, RegChildArCodCount.Total, 3) as Rate
  from RegChildArCgasCompleted
  join RegChildArCodCount using (State, RegId)

13.2.3118. RegChildArCgasCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildArCgasCompletionRate as New
  join hist.RegChildArCgasCompletionRate as Old using (State, RegId)

13.2.3119. RegChildArCgasCount

Base:

REG

Title:

REG-level count of all CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3120. RegChildArCgasCountChange

Base:

REG

Title:

Change in REG-level count of all CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildArCgasCount as New
  join hist.RegChildArCgasCount as Old using (State, RegId)

13.2.3121. RegChildArCgasCountGrowth

Base:

REG

Title:

Growth in REG-level count of all CGAS measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildArCgasCount as New
  join hist.RegChildArCgasCount as Old using (State, RegId)

13.2.3122. RegChildArCodCount

Base:

REG

Title:

REG-level count of collection occasions for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3123. RegChildArHonoscaCompleted

Base:

REG

Title:

REG-level count of completed HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3124. RegChildArHonoscaCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildArHonoscaCompleted as New
  join hist.RegChildArHonoscaCompleted as Old using (State, RegId)

13.2.3125. RegChildArHonoscaCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildArHonoscaCompleted as New
  join hist.RegChildArHonoscaCompleted as Old using (State, RegId)

13.2.3126. RegChildArHonoscaCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegChildArHonoscaCompleted.Total, RegChildArCodCount.Total, 3) as Rate
  from RegChildArHonoscaCompleted
  join RegChildArCodCount using (State, RegId)

13.2.3127. RegChildArHonoscaCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildArHonoscaCompletionRate as New
  join hist.RegChildArHonoscaCompletionRate as Old using (State, RegId)

13.2.3128. RegChildArHonoscaCount

Base:

REG

Title:

REG-level count of all HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3129. RegChildArHonoscaCountChange

Base:

REG

Title:

Change in REG-level count of all HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildArHonoscaCount as New
  join hist.RegChildArHonoscaCount as Old using (State, RegId)

13.2.3130. RegChildArHonoscaCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOSCA measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildArHonoscaCount as New
  join hist.RegChildArHonoscaCount as Old using (State, RegId)

13.2.3131. RegChildArSdqCompleted

Base:

REG

Title:

REG-level count of completed SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3132. RegChildArSdqCompletedChange

Base:

REG

Title:

Change in REG-level count of completed SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildArSdqCompleted as New
  join hist.RegChildArSdqCompleted as Old using (State, RegId)

13.2.3133. RegChildArSdqCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildArSdqCompleted as New
  join hist.RegChildArSdqCompleted as Old using (State, RegId)

13.2.3134. RegChildArSdqCompletionRate

Base:

REG

Title:

REG-level completion rate of SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegChildArSdqCompleted.Total, RegChildArCodCount.Total, 3) as Rate
  from RegChildArSdqCompleted
  join RegChildArCodCount using (State, RegId)

13.2.3135. RegChildArSdqCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildArSdqCompletionRate as New
  join hist.RegChildArSdqCompletionRate as Old using (State, RegId)

13.2.3136. RegChildArSdqCount

Base:

REG

Title:

REG-level count of all SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3137. RegChildArSdqCountChange

Base:

REG

Title:

Change in REG-level count of all SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildArSdqCount as New
  join hist.RegChildArSdqCount as Old using (State, RegId)

13.2.3138. RegChildArSdqCountGrowth

Base:

REG

Title:

Growth in REG-level count of all SDQ measures for Child age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildArSdqCount as New
  join hist.RegChildArSdqCount as Old using (State, RegId)

13.2.3139. RegChildDaCodCount

Base:

REG

Title:

REG-level count of collection occasions for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3140. RegChildDaDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3141. RegChildDaDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDaDiagCompleted as New
  join hist.RegChildDaDiagCompleted as Old using (State, RegId)

13.2.3142. RegChildDaDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDaDiagCompleted as New
  join hist.RegChildDaDiagCompleted as Old using (State, RegId)

13.2.3143. RegChildDaDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDaDiagCompleted.Total, RegChildDaCodCount.Total, 3) as Rate
  from RegChildDaDiagCompleted
  join RegChildDaCodCount using (State, RegId)

13.2.3144. RegChildDaDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDaDiagCompletionRate as New
  join hist.RegChildDaDiagCompletionRate as Old using (State, RegId)

13.2.3145. RegChildDaDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3146. RegChildDaDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDaDiagCount as New
  join hist.RegChildDaDiagCount as Old using (State, RegId)

13.2.3147. RegChildDaDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDaDiagCount as New
  join hist.RegChildDaDiagCount as Old using (State, RegId)

13.2.3148. RegChildDaFihsCompleted

Base:

REG

Title:

REG-level count of completed FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3149. RegChildDaFihsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDaFihsCompleted as New
  join hist.RegChildDaFihsCompleted as Old using (State, RegId)

13.2.3150. RegChildDaFihsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDaFihsCompleted as New
  join hist.RegChildDaFihsCompleted as Old using (State, RegId)

13.2.3151. RegChildDaFihsCompletionRate

Base:

REG

Title:

REG-level completion rate of FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDaFihsCompleted.Total, RegChildDaCodCount.Total, 3) as Rate
  from RegChildDaFihsCompleted
  join RegChildDaCodCount using (State, RegId)

13.2.3152. RegChildDaFihsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDaFihsCompletionRate as New
  join hist.RegChildDaFihsCompletionRate as Old using (State, RegId)

13.2.3153. RegChildDaFihsCount

Base:

REG

Title:

REG-level count of all FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3154. RegChildDaFihsCountChange

Base:

REG

Title:

Change in REG-level count of all FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDaFihsCount as New
  join hist.RegChildDaFihsCount as Old using (State, RegId)

13.2.3155. RegChildDaFihsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all FIHS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDaFihsCount as New
  join hist.RegChildDaFihsCount as Old using (State, RegId)

13.2.3156. RegChildDaHonoscaCompleted

Base:

REG

Title:

REG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3157. RegChildDaHonoscaCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDaHonoscaCompleted as New
  join hist.RegChildDaHonoscaCompleted as Old using (State, RegId)

13.2.3158. RegChildDaHonoscaCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDaHonoscaCompleted as New
  join hist.RegChildDaHonoscaCompleted as Old using (State, RegId)

13.2.3159. RegChildDaHonoscaCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDaHonoscaCompleted.Total, RegChildDaCodCount.Total, 3) as Rate
  from RegChildDaHonoscaCompleted
  join RegChildDaCodCount using (State, RegId)

13.2.3160. RegChildDaHonoscaCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDaHonoscaCompletionRate as New
  join hist.RegChildDaHonoscaCompletionRate as Old using (State, RegId)

13.2.3161. RegChildDaHonoscaCount

Base:

REG

Title:

REG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3162. RegChildDaHonoscaCountChange

Base:

REG

Title:

Change in REG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDaHonoscaCount as New
  join hist.RegChildDaHonoscaCount as Old using (State, RegId)

13.2.3163. RegChildDaHonoscaCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDaHonoscaCount as New
  join hist.RegChildDaHonoscaCount as Old using (State, RegId)

13.2.3164. RegChildDaMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3165. RegChildDaMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDaMhlsCompleted as New
  join hist.RegChildDaMhlsCompleted as Old using (State, RegId)

13.2.3166. RegChildDaMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDaMhlsCompleted as New
  join hist.RegChildDaMhlsCompleted as Old using (State, RegId)

13.2.3167. RegChildDaMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDaMhlsCompleted.Total, RegChildDaCodCount.Total, 3) as Rate
  from RegChildDaMhlsCompleted
  join RegChildDaCodCount using (State, RegId)

13.2.3168. RegChildDaMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDaMhlsCompletionRate as New
  join hist.RegChildDaMhlsCompletionRate as Old using (State, RegId)

13.2.3169. RegChildDaMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3170. RegChildDaMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDaMhlsCount as New
  join hist.RegChildDaMhlsCount as Old using (State, RegId)

13.2.3171. RegChildDaMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDaMhlsCount as New
  join hist.RegChildDaMhlsCount as Old using (State, RegId)

13.2.3172. RegChildDaSdqCompleted

Base:

REG

Title:

REG-level count of completed SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3173. RegChildDaSdqCompletedChange

Base:

REG

Title:

Change in REG-level count of completed SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDaSdqCompleted as New
  join hist.RegChildDaSdqCompleted as Old using (State, RegId)

13.2.3174. RegChildDaSdqCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDaSdqCompleted as New
  join hist.RegChildDaSdqCompleted as Old using (State, RegId)

13.2.3175. RegChildDaSdqCompletionRate

Base:

REG

Title:

REG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDaSdqCompleted.Total, RegChildDaCodCount.Total, 3) as Rate
  from RegChildDaSdqCompleted
  join RegChildDaCodCount using (State, RegId)

13.2.3176. RegChildDaSdqCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDaSdqCompletionRate as New
  join hist.RegChildDaSdqCompletionRate as Old using (State, RegId)

13.2.3177. RegChildDaSdqCount

Base:

REG

Title:

REG-level count of all SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3178. RegChildDaSdqCountChange

Base:

REG

Title:

Change in REG-level count of all SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDaSdqCount as New
  join hist.RegChildDaSdqCount as Old using (State, RegId)

13.2.3179. RegChildDaSdqCountGrowth

Base:

REG

Title:

Growth in REG-level count of all SDQ measures for Child age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDaSdqCount as New
  join hist.RegChildDaSdqCount as Old using (State, RegId)

13.2.3180. RegChildDiCodCount

Base:

REG

Title:

REG-level count of collection occasions for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3181. RegChildDiDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3182. RegChildDiDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDiDiagCompleted as New
  join hist.RegChildDiDiagCompleted as Old using (State, RegId)

13.2.3183. RegChildDiDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDiDiagCompleted as New
  join hist.RegChildDiDiagCompleted as Old using (State, RegId)

13.2.3184. RegChildDiDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDiDiagCompleted.Total, RegChildDiCodCount.Total, 3) as Rate
  from RegChildDiDiagCompleted
  join RegChildDiCodCount using (State, RegId)

13.2.3185. RegChildDiDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDiDiagCompletionRate as New
  join hist.RegChildDiDiagCompletionRate as Old using (State, RegId)

13.2.3186. RegChildDiDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3187. RegChildDiDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDiDiagCount as New
  join hist.RegChildDiDiagCount as Old using (State, RegId)

13.2.3188. RegChildDiDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDiDiagCount as New
  join hist.RegChildDiDiagCount as Old using (State, RegId)

13.2.3189. RegChildDiFihsCompleted

Base:

REG

Title:

REG-level count of completed FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3190. RegChildDiFihsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDiFihsCompleted as New
  join hist.RegChildDiFihsCompleted as Old using (State, RegId)

13.2.3191. RegChildDiFihsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDiFihsCompleted as New
  join hist.RegChildDiFihsCompleted as Old using (State, RegId)

13.2.3192. RegChildDiFihsCompletionRate

Base:

REG

Title:

REG-level completion rate of FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDiFihsCompleted.Total, RegChildDiCodCount.Total, 3) as Rate
  from RegChildDiFihsCompleted
  join RegChildDiCodCount using (State, RegId)

13.2.3193. RegChildDiFihsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDiFihsCompletionRate as New
  join hist.RegChildDiFihsCompletionRate as Old using (State, RegId)

13.2.3194. RegChildDiFihsCount

Base:

REG

Title:

REG-level count of all FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3195. RegChildDiFihsCountChange

Base:

REG

Title:

Change in REG-level count of all FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDiFihsCount as New
  join hist.RegChildDiFihsCount as Old using (State, RegId)

13.2.3196. RegChildDiFihsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all FIHS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDiFihsCount as New
  join hist.RegChildDiFihsCount as Old using (State, RegId)

13.2.3197. RegChildDiHonoscaCompleted

Base:

REG

Title:

REG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3198. RegChildDiHonoscaCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDiHonoscaCompleted as New
  join hist.RegChildDiHonoscaCompleted as Old using (State, RegId)

13.2.3199. RegChildDiHonoscaCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDiHonoscaCompleted as New
  join hist.RegChildDiHonoscaCompleted as Old using (State, RegId)

13.2.3200. RegChildDiHonoscaCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDiHonoscaCompleted.Total, RegChildDiCodCount.Total, 3) as Rate
  from RegChildDiHonoscaCompleted
  join RegChildDiCodCount using (State, RegId)

13.2.3201. RegChildDiHonoscaCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDiHonoscaCompletionRate as New
  join hist.RegChildDiHonoscaCompletionRate as Old using (State, RegId)

13.2.3202. RegChildDiHonoscaCount

Base:

REG

Title:

REG-level count of all HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3203. RegChildDiHonoscaCountChange

Base:

REG

Title:

Change in REG-level count of all HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDiHonoscaCount as New
  join hist.RegChildDiHonoscaCount as Old using (State, RegId)

13.2.3204. RegChildDiHonoscaCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOSCA measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDiHonoscaCount as New
  join hist.RegChildDiHonoscaCount as Old using (State, RegId)

13.2.3205. RegChildDiMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3206. RegChildDiMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDiMhlsCompleted as New
  join hist.RegChildDiMhlsCompleted as Old using (State, RegId)

13.2.3207. RegChildDiMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDiMhlsCompleted as New
  join hist.RegChildDiMhlsCompleted as Old using (State, RegId)

13.2.3208. RegChildDiMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDiMhlsCompleted.Total, RegChildDiCodCount.Total, 3) as Rate
  from RegChildDiMhlsCompleted
  join RegChildDiCodCount using (State, RegId)

13.2.3209. RegChildDiMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDiMhlsCompletionRate as New
  join hist.RegChildDiMhlsCompletionRate as Old using (State, RegId)

13.2.3210. RegChildDiMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3211. RegChildDiMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDiMhlsCount as New
  join hist.RegChildDiMhlsCount as Old using (State, RegId)

13.2.3212. RegChildDiMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDiMhlsCount as New
  join hist.RegChildDiMhlsCount as Old using (State, RegId)

13.2.3213. RegChildDiSdqCompleted

Base:

REG

Title:

REG-level count of completed SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3214. RegChildDiSdqCompletedChange

Base:

REG

Title:

Change in REG-level count of completed SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDiSdqCompleted as New
  join hist.RegChildDiSdqCompleted as Old using (State, RegId)

13.2.3215. RegChildDiSdqCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDiSdqCompleted as New
  join hist.RegChildDiSdqCompleted as Old using (State, RegId)

13.2.3216. RegChildDiSdqCompletionRate

Base:

REG

Title:

REG-level completion rate of SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDiSdqCompleted.Total, RegChildDiCodCount.Total, 3) as Rate
  from RegChildDiSdqCompleted
  join RegChildDiCodCount using (State, RegId)

13.2.3217. RegChildDiSdqCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDiSdqCompletionRate as New
  join hist.RegChildDiSdqCompletionRate as Old using (State, RegId)

13.2.3218. RegChildDiSdqCount

Base:

REG

Title:

REG-level count of all SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3219. RegChildDiSdqCountChange

Base:

REG

Title:

Change in REG-level count of all SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDiSdqCount as New
  join hist.RegChildDiSdqCount as Old using (State, RegId)

13.2.3220. RegChildDiSdqCountGrowth

Base:

REG

Title:

Growth in REG-level count of all SDQ measures for Child age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDiSdqCount as New
  join hist.RegChildDiSdqCount as Old using (State, RegId)

13.2.3221. RegChildDrCodCount

Base:

REG

Title:

REG-level count of collection occasions for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3222. RegChildDrDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3223. RegChildDrDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDrDiagCompleted as New
  join hist.RegChildDrDiagCompleted as Old using (State, RegId)

13.2.3224. RegChildDrDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDrDiagCompleted as New
  join hist.RegChildDrDiagCompleted as Old using (State, RegId)

13.2.3225. RegChildDrDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDrDiagCompleted.Total, RegChildDrCodCount.Total, 3) as Rate
  from RegChildDrDiagCompleted
  join RegChildDrCodCount using (State, RegId)

13.2.3226. RegChildDrDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDrDiagCompletionRate as New
  join hist.RegChildDrDiagCompletionRate as Old using (State, RegId)

13.2.3227. RegChildDrDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3228. RegChildDrDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDrDiagCount as New
  join hist.RegChildDrDiagCount as Old using (State, RegId)

13.2.3229. RegChildDrDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDrDiagCount as New
  join hist.RegChildDrDiagCount as Old using (State, RegId)

13.2.3230. RegChildDrFihsCompleted

Base:

REG

Title:

REG-level count of completed FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3231. RegChildDrFihsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDrFihsCompleted as New
  join hist.RegChildDrFihsCompleted as Old using (State, RegId)

13.2.3232. RegChildDrFihsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDrFihsCompleted as New
  join hist.RegChildDrFihsCompleted as Old using (State, RegId)

13.2.3233. RegChildDrFihsCompletionRate

Base:

REG

Title:

REG-level completion rate of FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDrFihsCompleted.Total, RegChildDrCodCount.Total, 3) as Rate
  from RegChildDrFihsCompleted
  join RegChildDrCodCount using (State, RegId)

13.2.3234. RegChildDrFihsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDrFihsCompletionRate as New
  join hist.RegChildDrFihsCompletionRate as Old using (State, RegId)

13.2.3235. RegChildDrFihsCount

Base:

REG

Title:

REG-level count of all FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3236. RegChildDrFihsCountChange

Base:

REG

Title:

Change in REG-level count of all FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDrFihsCount as New
  join hist.RegChildDrFihsCount as Old using (State, RegId)

13.2.3237. RegChildDrFihsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all FIHS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDrFihsCount as New
  join hist.RegChildDrFihsCount as Old using (State, RegId)

13.2.3238. RegChildDrHonoscaCompleted

Base:

REG

Title:

REG-level count of completed HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3239. RegChildDrHonoscaCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDrHonoscaCompleted as New
  join hist.RegChildDrHonoscaCompleted as Old using (State, RegId)

13.2.3240. RegChildDrHonoscaCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDrHonoscaCompleted as New
  join hist.RegChildDrHonoscaCompleted as Old using (State, RegId)

13.2.3241. RegChildDrHonoscaCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDrHonoscaCompleted.Total, RegChildDrCodCount.Total, 3) as Rate
  from RegChildDrHonoscaCompleted
  join RegChildDrCodCount using (State, RegId)

13.2.3242. RegChildDrHonoscaCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDrHonoscaCompletionRate as New
  join hist.RegChildDrHonoscaCompletionRate as Old using (State, RegId)

13.2.3243. RegChildDrHonoscaCount

Base:

REG

Title:

REG-level count of all HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3244. RegChildDrHonoscaCountChange

Base:

REG

Title:

Change in REG-level count of all HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDrHonoscaCount as New
  join hist.RegChildDrHonoscaCount as Old using (State, RegId)

13.2.3245. RegChildDrHonoscaCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOSCA measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDrHonoscaCount as New
  join hist.RegChildDrHonoscaCount as Old using (State, RegId)

13.2.3246. RegChildDrMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3247. RegChildDrMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDrMhlsCompleted as New
  join hist.RegChildDrMhlsCompleted as Old using (State, RegId)

13.2.3248. RegChildDrMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDrMhlsCompleted as New
  join hist.RegChildDrMhlsCompleted as Old using (State, RegId)

13.2.3249. RegChildDrMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDrMhlsCompleted.Total, RegChildDrCodCount.Total, 3) as Rate
  from RegChildDrMhlsCompleted
  join RegChildDrCodCount using (State, RegId)

13.2.3250. RegChildDrMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDrMhlsCompletionRate as New
  join hist.RegChildDrMhlsCompletionRate as Old using (State, RegId)

13.2.3251. RegChildDrMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3252. RegChildDrMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDrMhlsCount as New
  join hist.RegChildDrMhlsCount as Old using (State, RegId)

13.2.3253. RegChildDrMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDrMhlsCount as New
  join hist.RegChildDrMhlsCount as Old using (State, RegId)

13.2.3254. RegChildDrSdqCompleted

Base:

REG

Title:

REG-level count of completed SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3255. RegChildDrSdqCompletedChange

Base:

REG

Title:

Change in REG-level count of completed SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDrSdqCompleted as New
  join hist.RegChildDrSdqCompleted as Old using (State, RegId)

13.2.3256. RegChildDrSdqCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDrSdqCompleted as New
  join hist.RegChildDrSdqCompleted as Old using (State, RegId)

13.2.3257. RegChildDrSdqCompletionRate

Base:

REG

Title:

REG-level completion rate of SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegChildDrSdqCompleted.Total, RegChildDrCodCount.Total, 3) as Rate
  from RegChildDrSdqCompleted
  join RegChildDrCodCount using (State, RegId)

13.2.3258. RegChildDrSdqCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildDrSdqCompletionRate as New
  join hist.RegChildDrSdqCompletionRate as Old using (State, RegId)

13.2.3259. RegChildDrSdqCount

Base:

REG

Title:

REG-level count of all SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3260. RegChildDrSdqCountChange

Base:

REG

Title:

Change in REG-level count of all SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildDrSdqCount as New
  join hist.RegChildDrSdqCount as Old using (State, RegId)

13.2.3261. RegChildDrSdqCountGrowth

Base:

REG

Title:

Growth in REG-level count of all SDQ measures for Child age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildDrSdqCount as New
  join hist.RegChildDrSdqCount as Old using (State, RegId)

13.2.3262. RegChildRaCgasCompleted

Base:

REG

Title:

REG-level count of completed CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3263. RegChildRaCgasCompletedChange

Base:

REG

Title:

Change in REG-level count of completed CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaCgasCompleted as New
  join hist.RegChildRaCgasCompleted as Old using (State, RegId)

13.2.3264. RegChildRaCgasCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaCgasCompleted as New
  join hist.RegChildRaCgasCompleted as Old using (State, RegId)

13.2.3265. RegChildRaCgasCompletionRate

Base:

REG

Title:

REG-level completion rate of CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRaCgasCompleted.Total, RegChildRaCodCount.Total, 3) as Rate
  from RegChildRaCgasCompleted
  join RegChildRaCodCount using (State, RegId)

13.2.3266. RegChildRaCgasCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRaCgasCompletionRate as New
  join hist.RegChildRaCgasCompletionRate as Old using (State, RegId)

13.2.3267. RegChildRaCgasCount

Base:

REG

Title:

REG-level count of all CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3268. RegChildRaCgasCountChange

Base:

REG

Title:

Change in REG-level count of all CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaCgasCount as New
  join hist.RegChildRaCgasCount as Old using (State, RegId)

13.2.3269. RegChildRaCgasCountGrowth

Base:

REG

Title:

Growth in REG-level count of all CGAS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaCgasCount as New
  join hist.RegChildRaCgasCount as Old using (State, RegId)

13.2.3270. RegChildRaCodCount

Base:

REG

Title:

REG-level count of collection occasions for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3271. RegChildRaDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3272. RegChildRaDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaDiagCompleted as New
  join hist.RegChildRaDiagCompleted as Old using (State, RegId)

13.2.3273. RegChildRaDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaDiagCompleted as New
  join hist.RegChildRaDiagCompleted as Old using (State, RegId)

13.2.3274. RegChildRaDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRaDiagCompleted.Total, RegChildRaCodCount.Total, 3) as Rate
  from RegChildRaDiagCompleted
  join RegChildRaCodCount using (State, RegId)

13.2.3275. RegChildRaDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRaDiagCompletionRate as New
  join hist.RegChildRaDiagCompletionRate as Old using (State, RegId)

13.2.3276. RegChildRaDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3277. RegChildRaDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaDiagCount as New
  join hist.RegChildRaDiagCount as Old using (State, RegId)

13.2.3278. RegChildRaDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaDiagCount as New
  join hist.RegChildRaDiagCount as Old using (State, RegId)

13.2.3279. RegChildRaFihsCompleted

Base:

REG

Title:

REG-level count of completed FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3280. RegChildRaFihsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaFihsCompleted as New
  join hist.RegChildRaFihsCompleted as Old using (State, RegId)

13.2.3281. RegChildRaFihsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaFihsCompleted as New
  join hist.RegChildRaFihsCompleted as Old using (State, RegId)

13.2.3282. RegChildRaFihsCompletionRate

Base:

REG

Title:

REG-level completion rate of FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRaFihsCompleted.Total, RegChildRaCodCount.Total, 3) as Rate
  from RegChildRaFihsCompleted
  join RegChildRaCodCount using (State, RegId)

13.2.3283. RegChildRaFihsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRaFihsCompletionRate as New
  join hist.RegChildRaFihsCompletionRate as Old using (State, RegId)

13.2.3284. RegChildRaFihsCount

Base:

REG

Title:

REG-level count of all FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3285. RegChildRaFihsCountChange

Base:

REG

Title:

Change in REG-level count of all FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaFihsCount as New
  join hist.RegChildRaFihsCount as Old using (State, RegId)

13.2.3286. RegChildRaFihsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all FIHS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaFihsCount as New
  join hist.RegChildRaFihsCount as Old using (State, RegId)

13.2.3287. RegChildRaHonoscaCompleted

Base:

REG

Title:

REG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3288. RegChildRaHonoscaCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaHonoscaCompleted as New
  join hist.RegChildRaHonoscaCompleted as Old using (State, RegId)

13.2.3289. RegChildRaHonoscaCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaHonoscaCompleted as New
  join hist.RegChildRaHonoscaCompleted as Old using (State, RegId)

13.2.3290. RegChildRaHonoscaCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRaHonoscaCompleted.Total, RegChildRaCodCount.Total, 3) as Rate
  from RegChildRaHonoscaCompleted
  join RegChildRaCodCount using (State, RegId)

13.2.3291. RegChildRaHonoscaCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRaHonoscaCompletionRate as New
  join hist.RegChildRaHonoscaCompletionRate as Old using (State, RegId)

13.2.3292. RegChildRaHonoscaCount

Base:

REG

Title:

REG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3293. RegChildRaHonoscaCountChange

Base:

REG

Title:

Change in REG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaHonoscaCount as New
  join hist.RegChildRaHonoscaCount as Old using (State, RegId)

13.2.3294. RegChildRaHonoscaCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOSCA measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaHonoscaCount as New
  join hist.RegChildRaHonoscaCount as Old using (State, RegId)

13.2.3295. RegChildRaMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3296. RegChildRaMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaMhlsCompleted as New
  join hist.RegChildRaMhlsCompleted as Old using (State, RegId)

13.2.3297. RegChildRaMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaMhlsCompleted as New
  join hist.RegChildRaMhlsCompleted as Old using (State, RegId)

13.2.3298. RegChildRaMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRaMhlsCompleted.Total, RegChildRaCodCount.Total, 3) as Rate
  from RegChildRaMhlsCompleted
  join RegChildRaCodCount using (State, RegId)

13.2.3299. RegChildRaMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRaMhlsCompletionRate as New
  join hist.RegChildRaMhlsCompletionRate as Old using (State, RegId)

13.2.3300. RegChildRaMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3301. RegChildRaMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaMhlsCount as New
  join hist.RegChildRaMhlsCount as Old using (State, RegId)

13.2.3302. RegChildRaMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaMhlsCount as New
  join hist.RegChildRaMhlsCount as Old using (State, RegId)

13.2.3303. RegChildRaSdqCompleted

Base:

REG

Title:

REG-level count of completed SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3304. RegChildRaSdqCompletedChange

Base:

REG

Title:

Change in REG-level count of completed SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaSdqCompleted as New
  join hist.RegChildRaSdqCompleted as Old using (State, RegId)

13.2.3305. RegChildRaSdqCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaSdqCompleted as New
  join hist.RegChildRaSdqCompleted as Old using (State, RegId)

13.2.3306. RegChildRaSdqCompletionRate

Base:

REG

Title:

REG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRaSdqCompleted.Total, RegChildRaCodCount.Total, 3) as Rate
  from RegChildRaSdqCompleted
  join RegChildRaCodCount using (State, RegId)

13.2.3307. RegChildRaSdqCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRaSdqCompletionRate as New
  join hist.RegChildRaSdqCompletionRate as Old using (State, RegId)

13.2.3308. RegChildRaSdqCount

Base:

REG

Title:

REG-level count of all SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3309. RegChildRaSdqCountChange

Base:

REG

Title:

Change in REG-level count of all SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRaSdqCount as New
  join hist.RegChildRaSdqCount as Old using (State, RegId)

13.2.3310. RegChildRaSdqCountGrowth

Base:

REG

Title:

Growth in REG-level count of all SDQ measures for Child age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRaSdqCount as New
  join hist.RegChildRaSdqCount as Old using (State, RegId)

13.2.3311. RegChildRiCgasCompleted

Base:

REG

Title:

REG-level count of completed CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3312. RegChildRiCgasCompletedChange

Base:

REG

Title:

Change in REG-level count of completed CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiCgasCompleted as New
  join hist.RegChildRiCgasCompleted as Old using (State, RegId)

13.2.3313. RegChildRiCgasCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiCgasCompleted as New
  join hist.RegChildRiCgasCompleted as Old using (State, RegId)

13.2.3314. RegChildRiCgasCompletionRate

Base:

REG

Title:

REG-level completion rate of CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRiCgasCompleted.Total, RegChildRiCodCount.Total, 3) as Rate
  from RegChildRiCgasCompleted
  join RegChildRiCodCount using (State, RegId)

13.2.3315. RegChildRiCgasCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRiCgasCompletionRate as New
  join hist.RegChildRiCgasCompletionRate as Old using (State, RegId)

13.2.3316. RegChildRiCgasCount

Base:

REG

Title:

REG-level count of all CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3317. RegChildRiCgasCountChange

Base:

REG

Title:

Change in REG-level count of all CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiCgasCount as New
  join hist.RegChildRiCgasCount as Old using (State, RegId)

13.2.3318. RegChildRiCgasCountGrowth

Base:

REG

Title:

Growth in REG-level count of all CGAS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiCgasCount as New
  join hist.RegChildRiCgasCount as Old using (State, RegId)

13.2.3319. RegChildRiCodCount

Base:

REG

Title:

REG-level count of collection occasions for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3320. RegChildRiDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3321. RegChildRiDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiDiagCompleted as New
  join hist.RegChildRiDiagCompleted as Old using (State, RegId)

13.2.3322. RegChildRiDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiDiagCompleted as New
  join hist.RegChildRiDiagCompleted as Old using (State, RegId)

13.2.3323. RegChildRiDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRiDiagCompleted.Total, RegChildRiCodCount.Total, 3) as Rate
  from RegChildRiDiagCompleted
  join RegChildRiCodCount using (State, RegId)

13.2.3324. RegChildRiDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRiDiagCompletionRate as New
  join hist.RegChildRiDiagCompletionRate as Old using (State, RegId)

13.2.3325. RegChildRiDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3326. RegChildRiDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiDiagCount as New
  join hist.RegChildRiDiagCount as Old using (State, RegId)

13.2.3327. RegChildRiDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiDiagCount as New
  join hist.RegChildRiDiagCount as Old using (State, RegId)

13.2.3328. RegChildRiFihsCompleted

Base:

REG

Title:

REG-level count of completed FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3329. RegChildRiFihsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiFihsCompleted as New
  join hist.RegChildRiFihsCompleted as Old using (State, RegId)

13.2.3330. RegChildRiFihsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiFihsCompleted as New
  join hist.RegChildRiFihsCompleted as Old using (State, RegId)

13.2.3331. RegChildRiFihsCompletionRate

Base:

REG

Title:

REG-level completion rate of FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRiFihsCompleted.Total, RegChildRiCodCount.Total, 3) as Rate
  from RegChildRiFihsCompleted
  join RegChildRiCodCount using (State, RegId)

13.2.3332. RegChildRiFihsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRiFihsCompletionRate as New
  join hist.RegChildRiFihsCompletionRate as Old using (State, RegId)

13.2.3333. RegChildRiFihsCount

Base:

REG

Title:

REG-level count of all FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3334. RegChildRiFihsCountChange

Base:

REG

Title:

Change in REG-level count of all FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiFihsCount as New
  join hist.RegChildRiFihsCount as Old using (State, RegId)

13.2.3335. RegChildRiFihsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all FIHS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiFihsCount as New
  join hist.RegChildRiFihsCount as Old using (State, RegId)

13.2.3336. RegChildRiHonoscaCompleted

Base:

REG

Title:

REG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3337. RegChildRiHonoscaCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiHonoscaCompleted as New
  join hist.RegChildRiHonoscaCompleted as Old using (State, RegId)

13.2.3338. RegChildRiHonoscaCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiHonoscaCompleted as New
  join hist.RegChildRiHonoscaCompleted as Old using (State, RegId)

13.2.3339. RegChildRiHonoscaCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRiHonoscaCompleted.Total, RegChildRiCodCount.Total, 3) as Rate
  from RegChildRiHonoscaCompleted
  join RegChildRiCodCount using (State, RegId)

13.2.3340. RegChildRiHonoscaCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRiHonoscaCompletionRate as New
  join hist.RegChildRiHonoscaCompletionRate as Old using (State, RegId)

13.2.3341. RegChildRiHonoscaCount

Base:

REG

Title:

REG-level count of all HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3342. RegChildRiHonoscaCountChange

Base:

REG

Title:

Change in REG-level count of all HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiHonoscaCount as New
  join hist.RegChildRiHonoscaCount as Old using (State, RegId)

13.2.3343. RegChildRiHonoscaCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOSCA measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiHonoscaCount as New
  join hist.RegChildRiHonoscaCount as Old using (State, RegId)

13.2.3344. RegChildRiMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3345. RegChildRiMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiMhlsCompleted as New
  join hist.RegChildRiMhlsCompleted as Old using (State, RegId)

13.2.3346. RegChildRiMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiMhlsCompleted as New
  join hist.RegChildRiMhlsCompleted as Old using (State, RegId)

13.2.3347. RegChildRiMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRiMhlsCompleted.Total, RegChildRiCodCount.Total, 3) as Rate
  from RegChildRiMhlsCompleted
  join RegChildRiCodCount using (State, RegId)

13.2.3348. RegChildRiMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRiMhlsCompletionRate as New
  join hist.RegChildRiMhlsCompletionRate as Old using (State, RegId)

13.2.3349. RegChildRiMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3350. RegChildRiMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiMhlsCount as New
  join hist.RegChildRiMhlsCount as Old using (State, RegId)

13.2.3351. RegChildRiMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiMhlsCount as New
  join hist.RegChildRiMhlsCount as Old using (State, RegId)

13.2.3352. RegChildRiSdqCompleted

Base:

REG

Title:

REG-level count of completed SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3353. RegChildRiSdqCompletedChange

Base:

REG

Title:

Change in REG-level count of completed SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiSdqCompleted as New
  join hist.RegChildRiSdqCompleted as Old using (State, RegId)

13.2.3354. RegChildRiSdqCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiSdqCompleted as New
  join hist.RegChildRiSdqCompleted as Old using (State, RegId)

13.2.3355. RegChildRiSdqCompletionRate

Base:

REG

Title:

REG-level completion rate of SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRiSdqCompleted.Total, RegChildRiCodCount.Total, 3) as Rate
  from RegChildRiSdqCompleted
  join RegChildRiCodCount using (State, RegId)

13.2.3356. RegChildRiSdqCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRiSdqCompletionRate as New
  join hist.RegChildRiSdqCompletionRate as Old using (State, RegId)

13.2.3357. RegChildRiSdqCount

Base:

REG

Title:

REG-level count of all SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3358. RegChildRiSdqCountChange

Base:

REG

Title:

Change in REG-level count of all SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRiSdqCount as New
  join hist.RegChildRiSdqCount as Old using (State, RegId)

13.2.3359. RegChildRiSdqCountGrowth

Base:

REG

Title:

Growth in REG-level count of all SDQ measures for Child age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRiSdqCount as New
  join hist.RegChildRiSdqCount as Old using (State, RegId)

13.2.3360. RegChildRrCgasCompleted

Base:

REG

Title:

REG-level count of completed CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3361. RegChildRrCgasCompletedChange

Base:

REG

Title:

Change in REG-level count of completed CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrCgasCompleted as New
  join hist.RegChildRrCgasCompleted as Old using (State, RegId)

13.2.3362. RegChildRrCgasCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrCgasCompleted as New
  join hist.RegChildRrCgasCompleted as Old using (State, RegId)

13.2.3363. RegChildRrCgasCompletionRate

Base:

REG

Title:

REG-level completion rate of CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRrCgasCompleted.Total, RegChildRrCodCount.Total, 3) as Rate
  from RegChildRrCgasCompleted
  join RegChildRrCodCount using (State, RegId)

13.2.3364. RegChildRrCgasCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRrCgasCompletionRate as New
  join hist.RegChildRrCgasCompletionRate as Old using (State, RegId)

13.2.3365. RegChildRrCgasCount

Base:

REG

Title:

REG-level count of all CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join CgasCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3366. RegChildRrCgasCountChange

Base:

REG

Title:

Change in REG-level count of all CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrCgasCount as New
  join hist.RegChildRrCgasCount as Old using (State, RegId)

13.2.3367. RegChildRrCgasCountGrowth

Base:

REG

Title:

Growth in REG-level count of all CGAS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrCgasCount as New
  join hist.RegChildRrCgasCount as Old using (State, RegId)

13.2.3368. RegChildRrCodCount

Base:

REG

Title:

REG-level count of collection occasions for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3369. RegChildRrDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3370. RegChildRrDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrDiagCompleted as New
  join hist.RegChildRrDiagCompleted as Old using (State, RegId)

13.2.3371. RegChildRrDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrDiagCompleted as New
  join hist.RegChildRrDiagCompleted as Old using (State, RegId)

13.2.3372. RegChildRrDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRrDiagCompleted.Total, RegChildRrCodCount.Total, 3) as Rate
  from RegChildRrDiagCompleted
  join RegChildRrCodCount using (State, RegId)

13.2.3373. RegChildRrDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRrDiagCompletionRate as New
  join hist.RegChildRrDiagCompletionRate as Old using (State, RegId)

13.2.3374. RegChildRrDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3375. RegChildRrDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrDiagCount as New
  join hist.RegChildRrDiagCount as Old using (State, RegId)

13.2.3376. RegChildRrDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrDiagCount as New
  join hist.RegChildRrDiagCount as Old using (State, RegId)

13.2.3377. RegChildRrFihsCompleted

Base:

REG

Title:

REG-level count of completed FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3378. RegChildRrFihsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrFihsCompleted as New
  join hist.RegChildRrFihsCompleted as Old using (State, RegId)

13.2.3379. RegChildRrFihsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrFihsCompleted as New
  join hist.RegChildRrFihsCompleted as Old using (State, RegId)

13.2.3380. RegChildRrFihsCompletionRate

Base:

REG

Title:

REG-level completion rate of FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRrFihsCompleted.Total, RegChildRrCodCount.Total, 3) as Rate
  from RegChildRrFihsCompleted
  join RegChildRrCodCount using (State, RegId)

13.2.3381. RegChildRrFihsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRrFihsCompletionRate as New
  join hist.RegChildRrFihsCompletionRate as Old using (State, RegId)

13.2.3382. RegChildRrFihsCount

Base:

REG

Title:

REG-level count of all FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join FihsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3383. RegChildRrFihsCountChange

Base:

REG

Title:

Change in REG-level count of all FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrFihsCount as New
  join hist.RegChildRrFihsCount as Old using (State, RegId)

13.2.3384. RegChildRrFihsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all FIHS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrFihsCount as New
  join hist.RegChildRrFihsCount as Old using (State, RegId)

13.2.3385. RegChildRrHonoscaCompleted

Base:

REG

Title:

REG-level count of completed HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3386. RegChildRrHonoscaCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrHonoscaCompleted as New
  join hist.RegChildRrHonoscaCompleted as Old using (State, RegId)

13.2.3387. RegChildRrHonoscaCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrHonoscaCompleted as New
  join hist.RegChildRrHonoscaCompleted as Old using (State, RegId)

13.2.3388. RegChildRrHonoscaCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRrHonoscaCompleted.Total, RegChildRrCodCount.Total, 3) as Rate
  from RegChildRrHonoscaCompleted
  join RegChildRrCodCount using (State, RegId)

13.2.3389. RegChildRrHonoscaCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRrHonoscaCompletionRate as New
  join hist.RegChildRrHonoscaCompletionRate as Old using (State, RegId)

13.2.3390. RegChildRrHonoscaCount

Base:

REG

Title:

REG-level count of all HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonoscaCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3391. RegChildRrHonoscaCountChange

Base:

REG

Title:

Change in REG-level count of all HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrHonoscaCount as New
  join hist.RegChildRrHonoscaCount as Old using (State, RegId)

13.2.3392. RegChildRrHonoscaCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOSCA measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrHonoscaCount as New
  join hist.RegChildRrHonoscaCount as Old using (State, RegId)

13.2.3393. RegChildRrMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3394. RegChildRrMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrMhlsCompleted as New
  join hist.RegChildRrMhlsCompleted as Old using (State, RegId)

13.2.3395. RegChildRrMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrMhlsCompleted as New
  join hist.RegChildRrMhlsCompleted as Old using (State, RegId)

13.2.3396. RegChildRrMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRrMhlsCompleted.Total, RegChildRrCodCount.Total, 3) as Rate
  from RegChildRrMhlsCompleted
  join RegChildRrCodCount using (State, RegId)

13.2.3397. RegChildRrMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRrMhlsCompletionRate as New
  join hist.RegChildRrMhlsCompletionRate as Old using (State, RegId)

13.2.3398. RegChildRrMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3399. RegChildRrMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrMhlsCount as New
  join hist.RegChildRrMhlsCount as Old using (State, RegId)

13.2.3400. RegChildRrMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrMhlsCount as New
  join hist.RegChildRrMhlsCount as Old using (State, RegId)

13.2.3401. RegChildRrSdqCompleted

Base:

REG

Title:

REG-level count of completed SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3402. RegChildRrSdqCompletedChange

Base:

REG

Title:

Change in REG-level count of completed SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrSdqCompleted as New
  join hist.RegChildRrSdqCompleted as Old using (State, RegId)

13.2.3403. RegChildRrSdqCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrSdqCompleted as New
  join hist.RegChildRrSdqCompleted as Old using (State, RegId)

13.2.3404. RegChildRrSdqCompletionRate

Base:

REG

Title:

REG-level completion rate of SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegChildRrSdqCompleted.Total, RegChildRrCodCount.Total, 3) as Rate
  from RegChildRrSdqCompleted
  join RegChildRrCodCount using (State, RegId)

13.2.3405. RegChildRrSdqCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegChildRrSdqCompletionRate as New
  join hist.RegChildRrSdqCompletionRate as Old using (State, RegId)

13.2.3406. RegChildRrSdqCount

Base:

REG

Title:

REG-level count of all SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join SdqCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '1'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3407. RegChildRrSdqCountChange

Base:

REG

Title:

Change in REG-level count of all SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegChildRrSdqCount as New
  join hist.RegChildRrSdqCount as Old using (State, RegId)

13.2.3408. RegChildRrSdqCountGrowth

Base:

REG

Title:

Growth in REG-level count of all SDQ measures for Child age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegChildRrSdqCount as New
  join hist.RegChildRrSdqCount as Old using (State, RegId)

13.2.3409. RegOlderAaBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3410. RegOlderAaBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaBasis32Completed as New
  join hist.RegOlderAaBasis32Completed as Old using (State, RegId)

13.2.3411. RegOlderAaBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaBasis32Completed as New
  join hist.RegOlderAaBasis32Completed as Old using (State, RegId)

13.2.3412. RegOlderAaBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderAaBasis32Completed.Total, RegOlderAaCodCount.Total, 3) as Rate
  from RegOlderAaBasis32Completed
  join RegOlderAaCodCount using (State, RegId)

13.2.3413. RegOlderAaBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderAaBasis32CompletionRate as New
  join hist.RegOlderAaBasis32CompletionRate as Old using (State, RegId)

13.2.3414. RegOlderAaBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3415. RegOlderAaBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaBasis32Count as New
  join hist.RegOlderAaBasis32Count as Old using (State, RegId)

13.2.3416. RegOlderAaBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaBasis32Count as New
  join hist.RegOlderAaBasis32Count as Old using (State, RegId)

13.2.3417. RegOlderAaCodCount

Base:

REG

Title:

REG-level count of collection occasions for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3418. RegOlderAaHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3419. RegOlderAaHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaHonosCompleted as New
  join hist.RegOlderAaHonosCompleted as Old using (State, RegId)

13.2.3420. RegOlderAaHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaHonosCompleted as New
  join hist.RegOlderAaHonosCompleted as Old using (State, RegId)

13.2.3421. RegOlderAaHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderAaHonosCompleted.Total, RegOlderAaCodCount.Total, 3) as Rate
  from RegOlderAaHonosCompleted
  join RegOlderAaCodCount using (State, RegId)

13.2.3422. RegOlderAaHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderAaHonosCompletionRate as New
  join hist.RegOlderAaHonosCompletionRate as Old using (State, RegId)

13.2.3423. RegOlderAaHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3424. RegOlderAaHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaHonosCount as New
  join hist.RegOlderAaHonosCount as Old using (State, RegId)

13.2.3425. RegOlderAaHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaHonosCount as New
  join hist.RegOlderAaHonosCount as Old using (State, RegId)

13.2.3426. RegOlderAaK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3427. RegOlderAaK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaK10l3dCompleted as New
  join hist.RegOlderAaK10l3dCompleted as Old using (State, RegId)

13.2.3428. RegOlderAaK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaK10l3dCompleted as New
  join hist.RegOlderAaK10l3dCompleted as Old using (State, RegId)

13.2.3429. RegOlderAaK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderAaK10l3dCompleted.Total, RegOlderAaCodCount.Total, 3) as Rate
  from RegOlderAaK10l3dCompleted
  join RegOlderAaCodCount using (State, RegId)

13.2.3430. RegOlderAaK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderAaK10l3dCompletionRate as New
  join hist.RegOlderAaK10l3dCompletionRate as Old using (State, RegId)

13.2.3431. RegOlderAaK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3432. RegOlderAaK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaK10l3dCount as New
  join hist.RegOlderAaK10l3dCount as Old using (State, RegId)

13.2.3433. RegOlderAaK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaK10l3dCount as New
  join hist.RegOlderAaK10l3dCount as Old using (State, RegId)

13.2.3434. RegOlderAaK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3435. RegOlderAaK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaK10lmCompleted as New
  join hist.RegOlderAaK10lmCompleted as Old using (State, RegId)

13.2.3436. RegOlderAaK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaK10lmCompleted as New
  join hist.RegOlderAaK10lmCompleted as Old using (State, RegId)

13.2.3437. RegOlderAaK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderAaK10lmCompleted.Total, RegOlderAaCodCount.Total, 3) as Rate
  from RegOlderAaK10lmCompleted
  join RegOlderAaCodCount using (State, RegId)

13.2.3438. RegOlderAaK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderAaK10lmCompletionRate as New
  join hist.RegOlderAaK10lmCompletionRate as Old using (State, RegId)

13.2.3439. RegOlderAaK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3440. RegOlderAaK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaK10lmCount as New
  join hist.RegOlderAaK10lmCount as Old using (State, RegId)

13.2.3441. RegOlderAaK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaK10lmCount as New
  join hist.RegOlderAaK10lmCount as Old using (State, RegId)

13.2.3442. RegOlderAaMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3443. RegOlderAaMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaMhi38Completed as New
  join hist.RegOlderAaMhi38Completed as Old using (State, RegId)

13.2.3444. RegOlderAaMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaMhi38Completed as New
  join hist.RegOlderAaMhi38Completed as Old using (State, RegId)

13.2.3445. RegOlderAaMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderAaMhi38Completed.Total, RegOlderAaCodCount.Total, 3) as Rate
  from RegOlderAaMhi38Completed
  join RegOlderAaCodCount using (State, RegId)

13.2.3446. RegOlderAaMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderAaMhi38CompletionRate as New
  join hist.RegOlderAaMhi38CompletionRate as Old using (State, RegId)

13.2.3447. RegOlderAaMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3448. RegOlderAaMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaMhi38Count as New
  join hist.RegOlderAaMhi38Count as Old using (State, RegId)

13.2.3449. RegOlderAaMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaMhi38Count as New
  join hist.RegOlderAaMhi38Count as Old using (State, RegId)

13.2.3450. RegOlderAaPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3451. RegOlderAaPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaPocCompleted as New
  join hist.RegOlderAaPocCompleted as Old using (State, RegId)

13.2.3452. RegOlderAaPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaPocCompleted as New
  join hist.RegOlderAaPocCompleted as Old using (State, RegId)

13.2.3453. RegOlderAaPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderAaPocCompleted.Total, RegOlderAaCodCount.Total, 3) as Rate
  from RegOlderAaPocCompleted
  join RegOlderAaCodCount using (State, RegId)

13.2.3454. RegOlderAaPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderAaPocCompletionRate as New
  join hist.RegOlderAaPocCompletionRate as Old using (State, RegId)

13.2.3455. RegOlderAaPocCount

Base:

REG

Title:

REG-level count of all POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3456. RegOlderAaPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAaPocCount as New
  join hist.RegOlderAaPocCount as Old using (State, RegId)

13.2.3457. RegOlderAaPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Older age group in Ambulatory setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAaPocCount as New
  join hist.RegOlderAaPocCount as Old using (State, RegId)

13.2.3458. RegOlderAiCodCount

Base:

REG

Title:

REG-level count of collection occasions for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3459. RegOlderAiHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3460. RegOlderAiHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAiHonosCompleted as New
  join hist.RegOlderAiHonosCompleted as Old using (State, RegId)

13.2.3461. RegOlderAiHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAiHonosCompleted as New
  join hist.RegOlderAiHonosCompleted as Old using (State, RegId)

13.2.3462. RegOlderAiHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderAiHonosCompleted.Total, RegOlderAiCodCount.Total, 3) as Rate
  from RegOlderAiHonosCompleted
  join RegOlderAiCodCount using (State, RegId)

13.2.3463. RegOlderAiHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderAiHonosCompletionRate as New
  join hist.RegOlderAiHonosCompletionRate as Old using (State, RegId)

13.2.3464. RegOlderAiHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3465. RegOlderAiHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAiHonosCount as New
  join hist.RegOlderAiHonosCount as Old using (State, RegId)

13.2.3466. RegOlderAiHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAiHonosCount as New
  join hist.RegOlderAiHonosCount as Old using (State, RegId)

13.2.3467. RegOlderAiPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3468. RegOlderAiPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAiPocCompleted as New
  join hist.RegOlderAiPocCompleted as Old using (State, RegId)

13.2.3469. RegOlderAiPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAiPocCompleted as New
  join hist.RegOlderAiPocCompleted as Old using (State, RegId)

13.2.3470. RegOlderAiPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderAiPocCompleted.Total, RegOlderAiCodCount.Total, 3) as Rate
  from RegOlderAiPocCompleted
  join RegOlderAiCodCount using (State, RegId)

13.2.3471. RegOlderAiPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderAiPocCompletionRate as New
  join hist.RegOlderAiPocCompletionRate as Old using (State, RegId)

13.2.3472. RegOlderAiPocCount

Base:

REG

Title:

REG-level count of all POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3473. RegOlderAiPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAiPocCount as New
  join hist.RegOlderAiPocCount as Old using (State, RegId)

13.2.3474. RegOlderAiPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAiPocCount as New
  join hist.RegOlderAiPocCount as Old using (State, RegId)

13.2.3475. RegOlderAiRugadlCompleted

Base:

REG

Title:

REG-level count of completed RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3476. RegOlderAiRugadlCompletedChange

Base:

REG

Title:

Change in REG-level count of completed RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAiRugadlCompleted as New
  join hist.RegOlderAiRugadlCompleted as Old using (State, RegId)

13.2.3477. RegOlderAiRugadlCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAiRugadlCompleted as New
  join hist.RegOlderAiRugadlCompleted as Old using (State, RegId)

13.2.3478. RegOlderAiRugadlCompletionRate

Base:

REG

Title:

REG-level completion rate of RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderAiRugadlCompleted.Total, RegOlderAiCodCount.Total, 3) as Rate
  from RegOlderAiRugadlCompleted
  join RegOlderAiCodCount using (State, RegId)

13.2.3479. RegOlderAiRugadlCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderAiRugadlCompletionRate as New
  join hist.RegOlderAiRugadlCompletionRate as Old using (State, RegId)

13.2.3480. RegOlderAiRugadlCount

Base:

REG

Title:

REG-level count of all RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3481. RegOlderAiRugadlCountChange

Base:

REG

Title:

Change in REG-level count of all RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderAiRugadlCount as New
  join hist.RegOlderAiRugadlCount as Old using (State, RegId)

13.2.3482. RegOlderAiRugadlCountGrowth

Base:

REG

Title:

Growth in REG-level count of all RUGADL measures for Older age group in Inpatient setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderAiRugadlCount as New
  join hist.RegOlderAiRugadlCount as Old using (State, RegId)

13.2.3483. RegOlderArBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3484. RegOlderArBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArBasis32Completed as New
  join hist.RegOlderArBasis32Completed as Old using (State, RegId)

13.2.3485. RegOlderArBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArBasis32Completed as New
  join hist.RegOlderArBasis32Completed as Old using (State, RegId)

13.2.3486. RegOlderArBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderArBasis32Completed.Total, RegOlderArCodCount.Total, 3) as Rate
  from RegOlderArBasis32Completed
  join RegOlderArCodCount using (State, RegId)

13.2.3487. RegOlderArBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderArBasis32CompletionRate as New
  join hist.RegOlderArBasis32CompletionRate as Old using (State, RegId)

13.2.3488. RegOlderArBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3489. RegOlderArBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArBasis32Count as New
  join hist.RegOlderArBasis32Count as Old using (State, RegId)

13.2.3490. RegOlderArBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArBasis32Count as New
  join hist.RegOlderArBasis32Count as Old using (State, RegId)

13.2.3491. RegOlderArCodCount

Base:

REG

Title:

REG-level count of collection occasions for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3492. RegOlderArHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3493. RegOlderArHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArHonosCompleted as New
  join hist.RegOlderArHonosCompleted as Old using (State, RegId)

13.2.3494. RegOlderArHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArHonosCompleted as New
  join hist.RegOlderArHonosCompleted as Old using (State, RegId)

13.2.3495. RegOlderArHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderArHonosCompleted.Total, RegOlderArCodCount.Total, 3) as Rate
  from RegOlderArHonosCompleted
  join RegOlderArCodCount using (State, RegId)

13.2.3496. RegOlderArHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderArHonosCompletionRate as New
  join hist.RegOlderArHonosCompletionRate as Old using (State, RegId)

13.2.3497. RegOlderArHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3498. RegOlderArHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArHonosCount as New
  join hist.RegOlderArHonosCount as Old using (State, RegId)

13.2.3499. RegOlderArHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArHonosCount as New
  join hist.RegOlderArHonosCount as Old using (State, RegId)

13.2.3500. RegOlderArK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3501. RegOlderArK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArK10l3dCompleted as New
  join hist.RegOlderArK10l3dCompleted as Old using (State, RegId)

13.2.3502. RegOlderArK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArK10l3dCompleted as New
  join hist.RegOlderArK10l3dCompleted as Old using (State, RegId)

13.2.3503. RegOlderArK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderArK10l3dCompleted.Total, RegOlderArCodCount.Total, 3) as Rate
  from RegOlderArK10l3dCompleted
  join RegOlderArCodCount using (State, RegId)

13.2.3504. RegOlderArK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderArK10l3dCompletionRate as New
  join hist.RegOlderArK10l3dCompletionRate as Old using (State, RegId)

13.2.3505. RegOlderArK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3506. RegOlderArK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArK10l3dCount as New
  join hist.RegOlderArK10l3dCount as Old using (State, RegId)

13.2.3507. RegOlderArK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArK10l3dCount as New
  join hist.RegOlderArK10l3dCount as Old using (State, RegId)

13.2.3508. RegOlderArK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3509. RegOlderArK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArK10lmCompleted as New
  join hist.RegOlderArK10lmCompleted as Old using (State, RegId)

13.2.3510. RegOlderArK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArK10lmCompleted as New
  join hist.RegOlderArK10lmCompleted as Old using (State, RegId)

13.2.3511. RegOlderArK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderArK10lmCompleted.Total, RegOlderArCodCount.Total, 3) as Rate
  from RegOlderArK10lmCompleted
  join RegOlderArCodCount using (State, RegId)

13.2.3512. RegOlderArK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderArK10lmCompletionRate as New
  join hist.RegOlderArK10lmCompletionRate as Old using (State, RegId)

13.2.3513. RegOlderArK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3514. RegOlderArK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArK10lmCount as New
  join hist.RegOlderArK10lmCount as Old using (State, RegId)

13.2.3515. RegOlderArK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArK10lmCount as New
  join hist.RegOlderArK10lmCount as Old using (State, RegId)

13.2.3516. RegOlderArLsp16Completed

Base:

REG

Title:

REG-level count of completed LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3517. RegOlderArLsp16CompletedChange

Base:

REG

Title:

Change in REG-level count of completed LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArLsp16Completed as New
  join hist.RegOlderArLsp16Completed as Old using (State, RegId)

13.2.3518. RegOlderArLsp16CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArLsp16Completed as New
  join hist.RegOlderArLsp16Completed as Old using (State, RegId)

13.2.3519. RegOlderArLsp16CompletionRate

Base:

REG

Title:

REG-level completion rate of LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderArLsp16Completed.Total, RegOlderArCodCount.Total, 3) as Rate
  from RegOlderArLsp16Completed
  join RegOlderArCodCount using (State, RegId)

13.2.3520. RegOlderArLsp16CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderArLsp16CompletionRate as New
  join hist.RegOlderArLsp16CompletionRate as Old using (State, RegId)

13.2.3521. RegOlderArLsp16Count

Base:

REG

Title:

REG-level count of all LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3522. RegOlderArLsp16CountChange

Base:

REG

Title:

Change in REG-level count of all LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArLsp16Count as New
  join hist.RegOlderArLsp16Count as Old using (State, RegId)

13.2.3523. RegOlderArLsp16CountGrowth

Base:

REG

Title:

Growth in REG-level count of all LSP16 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArLsp16Count as New
  join hist.RegOlderArLsp16Count as Old using (State, RegId)

13.2.3524. RegOlderArMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3525. RegOlderArMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArMhi38Completed as New
  join hist.RegOlderArMhi38Completed as Old using (State, RegId)

13.2.3526. RegOlderArMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArMhi38Completed as New
  join hist.RegOlderArMhi38Completed as Old using (State, RegId)

13.2.3527. RegOlderArMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderArMhi38Completed.Total, RegOlderArCodCount.Total, 3) as Rate
  from RegOlderArMhi38Completed
  join RegOlderArCodCount using (State, RegId)

13.2.3528. RegOlderArMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderArMhi38CompletionRate as New
  join hist.RegOlderArMhi38CompletionRate as Old using (State, RegId)

13.2.3529. RegOlderArMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3530. RegOlderArMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArMhi38Count as New
  join hist.RegOlderArMhi38Count as Old using (State, RegId)

13.2.3531. RegOlderArMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArMhi38Count as New
  join hist.RegOlderArMhi38Count as Old using (State, RegId)

13.2.3532. RegOlderArPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3533. RegOlderArPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArPocCompleted as New
  join hist.RegOlderArPocCompleted as Old using (State, RegId)

13.2.3534. RegOlderArPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArPocCompleted as New
  join hist.RegOlderArPocCompleted as Old using (State, RegId)

13.2.3535. RegOlderArPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderArPocCompleted.Total, RegOlderArCodCount.Total, 3) as Rate
  from RegOlderArPocCompleted
  join RegOlderArCodCount using (State, RegId)

13.2.3536. RegOlderArPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderArPocCompletionRate as New
  join hist.RegOlderArPocCompletionRate as Old using (State, RegId)

13.2.3537. RegOlderArPocCount

Base:

REG

Title:

REG-level count of all POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('01','02','03')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3538. RegOlderArPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderArPocCount as New
  join hist.RegOlderArPocCount as Old using (State, RegId)

13.2.3539. RegOlderArPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Older age group in Residential setting after Admission

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderArPocCount as New
  join hist.RegOlderArPocCount as Old using (State, RegId)

13.2.3540. RegOlderDaBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3541. RegOlderDaBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaBasis32Completed as New
  join hist.RegOlderDaBasis32Completed as Old using (State, RegId)

13.2.3542. RegOlderDaBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaBasis32Completed as New
  join hist.RegOlderDaBasis32Completed as Old using (State, RegId)

13.2.3543. RegOlderDaBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDaBasis32Completed.Total, RegOlderDaCodCount.Total, 3) as Rate
  from RegOlderDaBasis32Completed
  join RegOlderDaCodCount using (State, RegId)

13.2.3544. RegOlderDaBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDaBasis32CompletionRate as New
  join hist.RegOlderDaBasis32CompletionRate as Old using (State, RegId)

13.2.3545. RegOlderDaBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3546. RegOlderDaBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaBasis32Count as New
  join hist.RegOlderDaBasis32Count as Old using (State, RegId)

13.2.3547. RegOlderDaBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaBasis32Count as New
  join hist.RegOlderDaBasis32Count as Old using (State, RegId)

13.2.3548. RegOlderDaCodCount

Base:

REG

Title:

REG-level count of collection occasions for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3549. RegOlderDaDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3550. RegOlderDaDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaDiagCompleted as New
  join hist.RegOlderDaDiagCompleted as Old using (State, RegId)

13.2.3551. RegOlderDaDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaDiagCompleted as New
  join hist.RegOlderDaDiagCompleted as Old using (State, RegId)

13.2.3552. RegOlderDaDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDaDiagCompleted.Total, RegOlderDaCodCount.Total, 3) as Rate
  from RegOlderDaDiagCompleted
  join RegOlderDaCodCount using (State, RegId)

13.2.3553. RegOlderDaDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDaDiagCompletionRate as New
  join hist.RegOlderDaDiagCompletionRate as Old using (State, RegId)

13.2.3554. RegOlderDaDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3555. RegOlderDaDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaDiagCount as New
  join hist.RegOlderDaDiagCount as Old using (State, RegId)

13.2.3556. RegOlderDaDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaDiagCount as New
  join hist.RegOlderDaDiagCount as Old using (State, RegId)

13.2.3557. RegOlderDaHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3558. RegOlderDaHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaHonosCompleted as New
  join hist.RegOlderDaHonosCompleted as Old using (State, RegId)

13.2.3559. RegOlderDaHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaHonosCompleted as New
  join hist.RegOlderDaHonosCompleted as Old using (State, RegId)

13.2.3560. RegOlderDaHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDaHonosCompleted.Total, RegOlderDaCodCount.Total, 3) as Rate
  from RegOlderDaHonosCompleted
  join RegOlderDaCodCount using (State, RegId)

13.2.3561. RegOlderDaHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDaHonosCompletionRate as New
  join hist.RegOlderDaHonosCompletionRate as Old using (State, RegId)

13.2.3562. RegOlderDaHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3563. RegOlderDaHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaHonosCount as New
  join hist.RegOlderDaHonosCount as Old using (State, RegId)

13.2.3564. RegOlderDaHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaHonosCount as New
  join hist.RegOlderDaHonosCount as Old using (State, RegId)

13.2.3565. RegOlderDaK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3566. RegOlderDaK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaK10l3dCompleted as New
  join hist.RegOlderDaK10l3dCompleted as Old using (State, RegId)

13.2.3567. RegOlderDaK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaK10l3dCompleted as New
  join hist.RegOlderDaK10l3dCompleted as Old using (State, RegId)

13.2.3568. RegOlderDaK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDaK10l3dCompleted.Total, RegOlderDaCodCount.Total, 3) as Rate
  from RegOlderDaK10l3dCompleted
  join RegOlderDaCodCount using (State, RegId)

13.2.3569. RegOlderDaK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDaK10l3dCompletionRate as New
  join hist.RegOlderDaK10l3dCompletionRate as Old using (State, RegId)

13.2.3570. RegOlderDaK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3571. RegOlderDaK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaK10l3dCount as New
  join hist.RegOlderDaK10l3dCount as Old using (State, RegId)

13.2.3572. RegOlderDaK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaK10l3dCount as New
  join hist.RegOlderDaK10l3dCount as Old using (State, RegId)

13.2.3573. RegOlderDaK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3574. RegOlderDaK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaK10lmCompleted as New
  join hist.RegOlderDaK10lmCompleted as Old using (State, RegId)

13.2.3575. RegOlderDaK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaK10lmCompleted as New
  join hist.RegOlderDaK10lmCompleted as Old using (State, RegId)

13.2.3576. RegOlderDaK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDaK10lmCompleted.Total, RegOlderDaCodCount.Total, 3) as Rate
  from RegOlderDaK10lmCompleted
  join RegOlderDaCodCount using (State, RegId)

13.2.3577. RegOlderDaK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDaK10lmCompletionRate as New
  join hist.RegOlderDaK10lmCompletionRate as Old using (State, RegId)

13.2.3578. RegOlderDaK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3579. RegOlderDaK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaK10lmCount as New
  join hist.RegOlderDaK10lmCount as Old using (State, RegId)

13.2.3580. RegOlderDaK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaK10lmCount as New
  join hist.RegOlderDaK10lmCount as Old using (State, RegId)

13.2.3581. RegOlderDaLsp16Completed

Base:

REG

Title:

REG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3582. RegOlderDaLsp16CompletedChange

Base:

REG

Title:

Change in REG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaLsp16Completed as New
  join hist.RegOlderDaLsp16Completed as Old using (State, RegId)

13.2.3583. RegOlderDaLsp16CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaLsp16Completed as New
  join hist.RegOlderDaLsp16Completed as Old using (State, RegId)

13.2.3584. RegOlderDaLsp16CompletionRate

Base:

REG

Title:

REG-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDaLsp16Completed.Total, RegOlderDaCodCount.Total, 3) as Rate
  from RegOlderDaLsp16Completed
  join RegOlderDaCodCount using (State, RegId)

13.2.3585. RegOlderDaLsp16CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDaLsp16CompletionRate as New
  join hist.RegOlderDaLsp16CompletionRate as Old using (State, RegId)

13.2.3586. RegOlderDaLsp16Count

Base:

REG

Title:

REG-level count of all LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3587. RegOlderDaLsp16CountChange

Base:

REG

Title:

Change in REG-level count of all LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaLsp16Count as New
  join hist.RegOlderDaLsp16Count as Old using (State, RegId)

13.2.3588. RegOlderDaLsp16CountGrowth

Base:

REG

Title:

Growth in REG-level count of all LSP16 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaLsp16Count as New
  join hist.RegOlderDaLsp16Count as Old using (State, RegId)

13.2.3589. RegOlderDaMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3590. RegOlderDaMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaMhi38Completed as New
  join hist.RegOlderDaMhi38Completed as Old using (State, RegId)

13.2.3591. RegOlderDaMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaMhi38Completed as New
  join hist.RegOlderDaMhi38Completed as Old using (State, RegId)

13.2.3592. RegOlderDaMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDaMhi38Completed.Total, RegOlderDaCodCount.Total, 3) as Rate
  from RegOlderDaMhi38Completed
  join RegOlderDaCodCount using (State, RegId)

13.2.3593. RegOlderDaMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDaMhi38CompletionRate as New
  join hist.RegOlderDaMhi38CompletionRate as Old using (State, RegId)

13.2.3594. RegOlderDaMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3595. RegOlderDaMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaMhi38Count as New
  join hist.RegOlderDaMhi38Count as Old using (State, RegId)

13.2.3596. RegOlderDaMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaMhi38Count as New
  join hist.RegOlderDaMhi38Count as Old using (State, RegId)

13.2.3597. RegOlderDaMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3598. RegOlderDaMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaMhlsCompleted as New
  join hist.RegOlderDaMhlsCompleted as Old using (State, RegId)

13.2.3599. RegOlderDaMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaMhlsCompleted as New
  join hist.RegOlderDaMhlsCompleted as Old using (State, RegId)

13.2.3600. RegOlderDaMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDaMhlsCompleted.Total, RegOlderDaCodCount.Total, 3) as Rate
  from RegOlderDaMhlsCompleted
  join RegOlderDaCodCount using (State, RegId)

13.2.3601. RegOlderDaMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDaMhlsCompletionRate as New
  join hist.RegOlderDaMhlsCompletionRate as Old using (State, RegId)

13.2.3602. RegOlderDaMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3603. RegOlderDaMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDaMhlsCount as New
  join hist.RegOlderDaMhlsCount as Old using (State, RegId)

13.2.3604. RegOlderDaMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Older age group in Ambulatory setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDaMhlsCount as New
  join hist.RegOlderDaMhlsCount as Old using (State, RegId)

13.2.3605. RegOlderDiCodCount

Base:

REG

Title:

REG-level count of collection occasions for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3606. RegOlderDiDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3607. RegOlderDiDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDiDiagCompleted as New
  join hist.RegOlderDiDiagCompleted as Old using (State, RegId)

13.2.3608. RegOlderDiDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDiDiagCompleted as New
  join hist.RegOlderDiDiagCompleted as Old using (State, RegId)

13.2.3609. RegOlderDiDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDiDiagCompleted.Total, RegOlderDiCodCount.Total, 3) as Rate
  from RegOlderDiDiagCompleted
  join RegOlderDiCodCount using (State, RegId)

13.2.3610. RegOlderDiDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDiDiagCompletionRate as New
  join hist.RegOlderDiDiagCompletionRate as Old using (State, RegId)

13.2.3611. RegOlderDiDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3612. RegOlderDiDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDiDiagCount as New
  join hist.RegOlderDiDiagCount as Old using (State, RegId)

13.2.3613. RegOlderDiDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDiDiagCount as New
  join hist.RegOlderDiDiagCount as Old using (State, RegId)

13.2.3614. RegOlderDiHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3615. RegOlderDiHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDiHonosCompleted as New
  join hist.RegOlderDiHonosCompleted as Old using (State, RegId)

13.2.3616. RegOlderDiHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDiHonosCompleted as New
  join hist.RegOlderDiHonosCompleted as Old using (State, RegId)

13.2.3617. RegOlderDiHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDiHonosCompleted.Total, RegOlderDiCodCount.Total, 3) as Rate
  from RegOlderDiHonosCompleted
  join RegOlderDiCodCount using (State, RegId)

13.2.3618. RegOlderDiHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDiHonosCompletionRate as New
  join hist.RegOlderDiHonosCompletionRate as Old using (State, RegId)

13.2.3619. RegOlderDiHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3620. RegOlderDiHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDiHonosCount as New
  join hist.RegOlderDiHonosCount as Old using (State, RegId)

13.2.3621. RegOlderDiHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDiHonosCount as New
  join hist.RegOlderDiHonosCount as Old using (State, RegId)

13.2.3622. RegOlderDiMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3623. RegOlderDiMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDiMhlsCompleted as New
  join hist.RegOlderDiMhlsCompleted as Old using (State, RegId)

13.2.3624. RegOlderDiMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDiMhlsCompleted as New
  join hist.RegOlderDiMhlsCompleted as Old using (State, RegId)

13.2.3625. RegOlderDiMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDiMhlsCompleted.Total, RegOlderDiCodCount.Total, 3) as Rate
  from RegOlderDiMhlsCompleted
  join RegOlderDiCodCount using (State, RegId)

13.2.3626. RegOlderDiMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDiMhlsCompletionRate as New
  join hist.RegOlderDiMhlsCompletionRate as Old using (State, RegId)

13.2.3627. RegOlderDiMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3628. RegOlderDiMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDiMhlsCount as New
  join hist.RegOlderDiMhlsCount as Old using (State, RegId)

13.2.3629. RegOlderDiMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Older age group in Inpatient setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDiMhlsCount as New
  join hist.RegOlderDiMhlsCount as Old using (State, RegId)

13.2.3630. RegOlderDrBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3631. RegOlderDrBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrBasis32Completed as New
  join hist.RegOlderDrBasis32Completed as Old using (State, RegId)

13.2.3632. RegOlderDrBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrBasis32Completed as New
  join hist.RegOlderDrBasis32Completed as Old using (State, RegId)

13.2.3633. RegOlderDrBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDrBasis32Completed.Total, RegOlderDrCodCount.Total, 3) as Rate
  from RegOlderDrBasis32Completed
  join RegOlderDrCodCount using (State, RegId)

13.2.3634. RegOlderDrBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDrBasis32CompletionRate as New
  join hist.RegOlderDrBasis32CompletionRate as Old using (State, RegId)

13.2.3635. RegOlderDrBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3636. RegOlderDrBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrBasis32Count as New
  join hist.RegOlderDrBasis32Count as Old using (State, RegId)

13.2.3637. RegOlderDrBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrBasis32Count as New
  join hist.RegOlderDrBasis32Count as Old using (State, RegId)

13.2.3638. RegOlderDrCodCount

Base:

REG

Title:

REG-level count of collection occasions for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3639. RegOlderDrDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3640. RegOlderDrDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrDiagCompleted as New
  join hist.RegOlderDrDiagCompleted as Old using (State, RegId)

13.2.3641. RegOlderDrDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrDiagCompleted as New
  join hist.RegOlderDrDiagCompleted as Old using (State, RegId)

13.2.3642. RegOlderDrDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDrDiagCompleted.Total, RegOlderDrCodCount.Total, 3) as Rate
  from RegOlderDrDiagCompleted
  join RegOlderDrCodCount using (State, RegId)

13.2.3643. RegOlderDrDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDrDiagCompletionRate as New
  join hist.RegOlderDrDiagCompletionRate as Old using (State, RegId)

13.2.3644. RegOlderDrDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3645. RegOlderDrDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrDiagCount as New
  join hist.RegOlderDrDiagCount as Old using (State, RegId)

13.2.3646. RegOlderDrDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrDiagCount as New
  join hist.RegOlderDrDiagCount as Old using (State, RegId)

13.2.3647. RegOlderDrHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3648. RegOlderDrHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrHonosCompleted as New
  join hist.RegOlderDrHonosCompleted as Old using (State, RegId)

13.2.3649. RegOlderDrHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrHonosCompleted as New
  join hist.RegOlderDrHonosCompleted as Old using (State, RegId)

13.2.3650. RegOlderDrHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDrHonosCompleted.Total, RegOlderDrCodCount.Total, 3) as Rate
  from RegOlderDrHonosCompleted
  join RegOlderDrCodCount using (State, RegId)

13.2.3651. RegOlderDrHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDrHonosCompletionRate as New
  join hist.RegOlderDrHonosCompletionRate as Old using (State, RegId)

13.2.3652. RegOlderDrHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3653. RegOlderDrHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrHonosCount as New
  join hist.RegOlderDrHonosCount as Old using (State, RegId)

13.2.3654. RegOlderDrHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrHonosCount as New
  join hist.RegOlderDrHonosCount as Old using (State, RegId)

13.2.3655. RegOlderDrK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3656. RegOlderDrK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrK10l3dCompleted as New
  join hist.RegOlderDrK10l3dCompleted as Old using (State, RegId)

13.2.3657. RegOlderDrK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrK10l3dCompleted as New
  join hist.RegOlderDrK10l3dCompleted as Old using (State, RegId)

13.2.3658. RegOlderDrK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDrK10l3dCompleted.Total, RegOlderDrCodCount.Total, 3) as Rate
  from RegOlderDrK10l3dCompleted
  join RegOlderDrCodCount using (State, RegId)

13.2.3659. RegOlderDrK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDrK10l3dCompletionRate as New
  join hist.RegOlderDrK10l3dCompletionRate as Old using (State, RegId)

13.2.3660. RegOlderDrK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3661. RegOlderDrK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrK10l3dCount as New
  join hist.RegOlderDrK10l3dCount as Old using (State, RegId)

13.2.3662. RegOlderDrK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrK10l3dCount as New
  join hist.RegOlderDrK10l3dCount as Old using (State, RegId)

13.2.3663. RegOlderDrK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3664. RegOlderDrK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrK10lmCompleted as New
  join hist.RegOlderDrK10lmCompleted as Old using (State, RegId)

13.2.3665. RegOlderDrK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrK10lmCompleted as New
  join hist.RegOlderDrK10lmCompleted as Old using (State, RegId)

13.2.3666. RegOlderDrK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDrK10lmCompleted.Total, RegOlderDrCodCount.Total, 3) as Rate
  from RegOlderDrK10lmCompleted
  join RegOlderDrCodCount using (State, RegId)

13.2.3667. RegOlderDrK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDrK10lmCompletionRate as New
  join hist.RegOlderDrK10lmCompletionRate as Old using (State, RegId)

13.2.3668. RegOlderDrK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3669. RegOlderDrK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrK10lmCount as New
  join hist.RegOlderDrK10lmCount as Old using (State, RegId)

13.2.3670. RegOlderDrK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrK10lmCount as New
  join hist.RegOlderDrK10lmCount as Old using (State, RegId)

13.2.3671. RegOlderDrLsp16Completed

Base:

REG

Title:

REG-level count of completed LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3672. RegOlderDrLsp16CompletedChange

Base:

REG

Title:

Change in REG-level count of completed LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrLsp16Completed as New
  join hist.RegOlderDrLsp16Completed as Old using (State, RegId)

13.2.3673. RegOlderDrLsp16CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrLsp16Completed as New
  join hist.RegOlderDrLsp16Completed as Old using (State, RegId)

13.2.3674. RegOlderDrLsp16CompletionRate

Base:

REG

Title:

REG-level completion rate of LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDrLsp16Completed.Total, RegOlderDrCodCount.Total, 3) as Rate
  from RegOlderDrLsp16Completed
  join RegOlderDrCodCount using (State, RegId)

13.2.3675. RegOlderDrLsp16CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDrLsp16CompletionRate as New
  join hist.RegOlderDrLsp16CompletionRate as Old using (State, RegId)

13.2.3676. RegOlderDrLsp16Count

Base:

REG

Title:

REG-level count of all LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3677. RegOlderDrLsp16CountChange

Base:

REG

Title:

Change in REG-level count of all LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrLsp16Count as New
  join hist.RegOlderDrLsp16Count as Old using (State, RegId)

13.2.3678. RegOlderDrLsp16CountGrowth

Base:

REG

Title:

Growth in REG-level count of all LSP16 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrLsp16Count as New
  join hist.RegOlderDrLsp16Count as Old using (State, RegId)

13.2.3679. RegOlderDrMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3680. RegOlderDrMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrMhi38Completed as New
  join hist.RegOlderDrMhi38Completed as Old using (State, RegId)

13.2.3681. RegOlderDrMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrMhi38Completed as New
  join hist.RegOlderDrMhi38Completed as Old using (State, RegId)

13.2.3682. RegOlderDrMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDrMhi38Completed.Total, RegOlderDrCodCount.Total, 3) as Rate
  from RegOlderDrMhi38Completed
  join RegOlderDrCodCount using (State, RegId)

13.2.3683. RegOlderDrMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDrMhi38CompletionRate as New
  join hist.RegOlderDrMhi38CompletionRate as Old using (State, RegId)

13.2.3684. RegOlderDrMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3685. RegOlderDrMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrMhi38Count as New
  join hist.RegOlderDrMhi38Count as Old using (State, RegId)

13.2.3686. RegOlderDrMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrMhi38Count as New
  join hist.RegOlderDrMhi38Count as Old using (State, RegId)

13.2.3687. RegOlderDrMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3688. RegOlderDrMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrMhlsCompleted as New
  join hist.RegOlderDrMhlsCompleted as Old using (State, RegId)

13.2.3689. RegOlderDrMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrMhlsCompleted as New
  join hist.RegOlderDrMhlsCompleted as Old using (State, RegId)

13.2.3690. RegOlderDrMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderDrMhlsCompleted.Total, RegOlderDrCodCount.Total, 3) as Rate
  from RegOlderDrMhlsCompleted
  join RegOlderDrCodCount using (State, RegId)

13.2.3691. RegOlderDrMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderDrMhlsCompletionRate as New
  join hist.RegOlderDrMhlsCompletionRate as Old using (State, RegId)

13.2.3692. RegOlderDrMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('06','07','08','09')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3693. RegOlderDrMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderDrMhlsCount as New
  join hist.RegOlderDrMhlsCount as Old using (State, RegId)

13.2.3694. RegOlderDrMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Older age group in Residential setting after Discharge

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderDrMhlsCount as New
  join hist.RegOlderDrMhlsCount as Old using (State, RegId)

13.2.3695. RegOlderRaBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3696. RegOlderRaBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaBasis32Completed as New
  join hist.RegOlderRaBasis32Completed as Old using (State, RegId)

13.2.3697. RegOlderRaBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaBasis32Completed as New
  join hist.RegOlderRaBasis32Completed as Old using (State, RegId)

13.2.3698. RegOlderRaBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRaBasis32Completed.Total, RegOlderRaCodCount.Total, 3) as Rate
  from RegOlderRaBasis32Completed
  join RegOlderRaCodCount using (State, RegId)

13.2.3699. RegOlderRaBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRaBasis32CompletionRate as New
  join hist.RegOlderRaBasis32CompletionRate as Old using (State, RegId)

13.2.3700. RegOlderRaBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3701. RegOlderRaBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaBasis32Count as New
  join hist.RegOlderRaBasis32Count as Old using (State, RegId)

13.2.3702. RegOlderRaBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaBasis32Count as New
  join hist.RegOlderRaBasis32Count as Old using (State, RegId)

13.2.3703. RegOlderRaCodCount

Base:

REG

Title:

REG-level count of collection occasions for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3704. RegOlderRaDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3705. RegOlderRaDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaDiagCompleted as New
  join hist.RegOlderRaDiagCompleted as Old using (State, RegId)

13.2.3706. RegOlderRaDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaDiagCompleted as New
  join hist.RegOlderRaDiagCompleted as Old using (State, RegId)

13.2.3707. RegOlderRaDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRaDiagCompleted.Total, RegOlderRaCodCount.Total, 3) as Rate
  from RegOlderRaDiagCompleted
  join RegOlderRaCodCount using (State, RegId)

13.2.3708. RegOlderRaDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRaDiagCompletionRate as New
  join hist.RegOlderRaDiagCompletionRate as Old using (State, RegId)

13.2.3709. RegOlderRaDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3710. RegOlderRaDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaDiagCount as New
  join hist.RegOlderRaDiagCount as Old using (State, RegId)

13.2.3711. RegOlderRaDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaDiagCount as New
  join hist.RegOlderRaDiagCount as Old using (State, RegId)

13.2.3712. RegOlderRaHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3713. RegOlderRaHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaHonosCompleted as New
  join hist.RegOlderRaHonosCompleted as Old using (State, RegId)

13.2.3714. RegOlderRaHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaHonosCompleted as New
  join hist.RegOlderRaHonosCompleted as Old using (State, RegId)

13.2.3715. RegOlderRaHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRaHonosCompleted.Total, RegOlderRaCodCount.Total, 3) as Rate
  from RegOlderRaHonosCompleted
  join RegOlderRaCodCount using (State, RegId)

13.2.3716. RegOlderRaHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRaHonosCompletionRate as New
  join hist.RegOlderRaHonosCompletionRate as Old using (State, RegId)

13.2.3717. RegOlderRaHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3718. RegOlderRaHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaHonosCount as New
  join hist.RegOlderRaHonosCount as Old using (State, RegId)

13.2.3719. RegOlderRaHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaHonosCount as New
  join hist.RegOlderRaHonosCount as Old using (State, RegId)

13.2.3720. RegOlderRaK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3721. RegOlderRaK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaK10l3dCompleted as New
  join hist.RegOlderRaK10l3dCompleted as Old using (State, RegId)

13.2.3722. RegOlderRaK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaK10l3dCompleted as New
  join hist.RegOlderRaK10l3dCompleted as Old using (State, RegId)

13.2.3723. RegOlderRaK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRaK10l3dCompleted.Total, RegOlderRaCodCount.Total, 3) as Rate
  from RegOlderRaK10l3dCompleted
  join RegOlderRaCodCount using (State, RegId)

13.2.3724. RegOlderRaK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRaK10l3dCompletionRate as New
  join hist.RegOlderRaK10l3dCompletionRate as Old using (State, RegId)

13.2.3725. RegOlderRaK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3726. RegOlderRaK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaK10l3dCount as New
  join hist.RegOlderRaK10l3dCount as Old using (State, RegId)

13.2.3727. RegOlderRaK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaK10l3dCount as New
  join hist.RegOlderRaK10l3dCount as Old using (State, RegId)

13.2.3728. RegOlderRaK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3729. RegOlderRaK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaK10lmCompleted as New
  join hist.RegOlderRaK10lmCompleted as Old using (State, RegId)

13.2.3730. RegOlderRaK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaK10lmCompleted as New
  join hist.RegOlderRaK10lmCompleted as Old using (State, RegId)

13.2.3731. RegOlderRaK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRaK10lmCompleted.Total, RegOlderRaCodCount.Total, 3) as Rate
  from RegOlderRaK10lmCompleted
  join RegOlderRaCodCount using (State, RegId)

13.2.3732. RegOlderRaK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRaK10lmCompletionRate as New
  join hist.RegOlderRaK10lmCompletionRate as Old using (State, RegId)

13.2.3733. RegOlderRaK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3734. RegOlderRaK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaK10lmCount as New
  join hist.RegOlderRaK10lmCount as Old using (State, RegId)

13.2.3735. RegOlderRaK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaK10lmCount as New
  join hist.RegOlderRaK10lmCount as Old using (State, RegId)

13.2.3736. RegOlderRaLsp16Completed

Base:

REG

Title:

REG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3737. RegOlderRaLsp16CompletedChange

Base:

REG

Title:

Change in REG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaLsp16Completed as New
  join hist.RegOlderRaLsp16Completed as Old using (State, RegId)

13.2.3738. RegOlderRaLsp16CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaLsp16Completed as New
  join hist.RegOlderRaLsp16Completed as Old using (State, RegId)

13.2.3739. RegOlderRaLsp16CompletionRate

Base:

REG

Title:

REG-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRaLsp16Completed.Total, RegOlderRaCodCount.Total, 3) as Rate
  from RegOlderRaLsp16Completed
  join RegOlderRaCodCount using (State, RegId)

13.2.3740. RegOlderRaLsp16CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRaLsp16CompletionRate as New
  join hist.RegOlderRaLsp16CompletionRate as Old using (State, RegId)

13.2.3741. RegOlderRaLsp16Count

Base:

REG

Title:

REG-level count of all LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3742. RegOlderRaLsp16CountChange

Base:

REG

Title:

Change in REG-level count of all LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaLsp16Count as New
  join hist.RegOlderRaLsp16Count as Old using (State, RegId)

13.2.3743. RegOlderRaLsp16CountGrowth

Base:

REG

Title:

Growth in REG-level count of all LSP16 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaLsp16Count as New
  join hist.RegOlderRaLsp16Count as Old using (State, RegId)

13.2.3744. RegOlderRaMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3745. RegOlderRaMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaMhi38Completed as New
  join hist.RegOlderRaMhi38Completed as Old using (State, RegId)

13.2.3746. RegOlderRaMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaMhi38Completed as New
  join hist.RegOlderRaMhi38Completed as Old using (State, RegId)

13.2.3747. RegOlderRaMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRaMhi38Completed.Total, RegOlderRaCodCount.Total, 3) as Rate
  from RegOlderRaMhi38Completed
  join RegOlderRaCodCount using (State, RegId)

13.2.3748. RegOlderRaMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRaMhi38CompletionRate as New
  join hist.RegOlderRaMhi38CompletionRate as Old using (State, RegId)

13.2.3749. RegOlderRaMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3750. RegOlderRaMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaMhi38Count as New
  join hist.RegOlderRaMhi38Count as Old using (State, RegId)

13.2.3751. RegOlderRaMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaMhi38Count as New
  join hist.RegOlderRaMhi38Count as Old using (State, RegId)

13.2.3752. RegOlderRaMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3753. RegOlderRaMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaMhlsCompleted as New
  join hist.RegOlderRaMhlsCompleted as Old using (State, RegId)

13.2.3754. RegOlderRaMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaMhlsCompleted as New
  join hist.RegOlderRaMhlsCompleted as Old using (State, RegId)

13.2.3755. RegOlderRaMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRaMhlsCompleted.Total, RegOlderRaCodCount.Total, 3) as Rate
  from RegOlderRaMhlsCompleted
  join RegOlderRaCodCount using (State, RegId)

13.2.3756. RegOlderRaMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRaMhlsCompletionRate as New
  join hist.RegOlderRaMhlsCompletionRate as Old using (State, RegId)

13.2.3757. RegOlderRaMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3758. RegOlderRaMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaMhlsCount as New
  join hist.RegOlderRaMhlsCount as Old using (State, RegId)

13.2.3759. RegOlderRaMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaMhlsCount as New
  join hist.RegOlderRaMhlsCount as Old using (State, RegId)

13.2.3760. RegOlderRaPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3761. RegOlderRaPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaPocCompleted as New
  join hist.RegOlderRaPocCompleted as Old using (State, RegId)

13.2.3762. RegOlderRaPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaPocCompleted as New
  join hist.RegOlderRaPocCompleted as Old using (State, RegId)

13.2.3763. RegOlderRaPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRaPocCompleted.Total, RegOlderRaCodCount.Total, 3) as Rate
  from RegOlderRaPocCompleted
  join RegOlderRaCodCount using (State, RegId)

13.2.3764. RegOlderRaPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRaPocCompletionRate as New
  join hist.RegOlderRaPocCompletionRate as Old using (State, RegId)

13.2.3765. RegOlderRaPocCount

Base:

REG

Title:

REG-level count of all POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '3'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3766. RegOlderRaPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRaPocCount as New
  join hist.RegOlderRaPocCount as Old using (State, RegId)

13.2.3767. RegOlderRaPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Older age group in Ambulatory setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRaPocCount as New
  join hist.RegOlderRaPocCount as Old using (State, RegId)

13.2.3768. RegOlderRiCodCount

Base:

REG

Title:

REG-level count of collection occasions for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3769. RegOlderRiDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3770. RegOlderRiDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRiDiagCompleted as New
  join hist.RegOlderRiDiagCompleted as Old using (State, RegId)

13.2.3771. RegOlderRiDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRiDiagCompleted as New
  join hist.RegOlderRiDiagCompleted as Old using (State, RegId)

13.2.3772. RegOlderRiDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRiDiagCompleted.Total, RegOlderRiCodCount.Total, 3) as Rate
  from RegOlderRiDiagCompleted
  join RegOlderRiCodCount using (State, RegId)

13.2.3773. RegOlderRiDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRiDiagCompletionRate as New
  join hist.RegOlderRiDiagCompletionRate as Old using (State, RegId)

13.2.3774. RegOlderRiDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3775. RegOlderRiDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRiDiagCount as New
  join hist.RegOlderRiDiagCount as Old using (State, RegId)

13.2.3776. RegOlderRiDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRiDiagCount as New
  join hist.RegOlderRiDiagCount as Old using (State, RegId)

13.2.3777. RegOlderRiHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3778. RegOlderRiHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRiHonosCompleted as New
  join hist.RegOlderRiHonosCompleted as Old using (State, RegId)

13.2.3779. RegOlderRiHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRiHonosCompleted as New
  join hist.RegOlderRiHonosCompleted as Old using (State, RegId)

13.2.3780. RegOlderRiHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRiHonosCompleted.Total, RegOlderRiCodCount.Total, 3) as Rate
  from RegOlderRiHonosCompleted
  join RegOlderRiCodCount using (State, RegId)

13.2.3781. RegOlderRiHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRiHonosCompletionRate as New
  join hist.RegOlderRiHonosCompletionRate as Old using (State, RegId)

13.2.3782. RegOlderRiHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3783. RegOlderRiHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRiHonosCount as New
  join hist.RegOlderRiHonosCount as Old using (State, RegId)

13.2.3784. RegOlderRiHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRiHonosCount as New
  join hist.RegOlderRiHonosCount as Old using (State, RegId)

13.2.3785. RegOlderRiMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3786. RegOlderRiMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRiMhlsCompleted as New
  join hist.RegOlderRiMhlsCompleted as Old using (State, RegId)

13.2.3787. RegOlderRiMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRiMhlsCompleted as New
  join hist.RegOlderRiMhlsCompleted as Old using (State, RegId)

13.2.3788. RegOlderRiMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRiMhlsCompleted.Total, RegOlderRiCodCount.Total, 3) as Rate
  from RegOlderRiMhlsCompleted
  join RegOlderRiCodCount using (State, RegId)

13.2.3789. RegOlderRiMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRiMhlsCompletionRate as New
  join hist.RegOlderRiMhlsCompletionRate as Old using (State, RegId)

13.2.3790. RegOlderRiMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3791. RegOlderRiMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRiMhlsCount as New
  join hist.RegOlderRiMhlsCount as Old using (State, RegId)

13.2.3792. RegOlderRiMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRiMhlsCount as New
  join hist.RegOlderRiMhlsCount as Old using (State, RegId)

13.2.3793. RegOlderRiPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3794. RegOlderRiPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRiPocCompleted as New
  join hist.RegOlderRiPocCompleted as Old using (State, RegId)

13.2.3795. RegOlderRiPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRiPocCompleted as New
  join hist.RegOlderRiPocCompleted as Old using (State, RegId)

13.2.3796. RegOlderRiPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRiPocCompleted.Total, RegOlderRiCodCount.Total, 3) as Rate
  from RegOlderRiPocCompleted
  join RegOlderRiCodCount using (State, RegId)

13.2.3797. RegOlderRiPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRiPocCompletionRate as New
  join hist.RegOlderRiPocCompletionRate as Old using (State, RegId)

13.2.3798. RegOlderRiPocCount

Base:

REG

Title:

REG-level count of all POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3799. RegOlderRiPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRiPocCount as New
  join hist.RegOlderRiPocCount as Old using (State, RegId)

13.2.3800. RegOlderRiPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRiPocCount as New
  join hist.RegOlderRiPocCount as Old using (State, RegId)

13.2.3801. RegOlderRiRugadlCompleted

Base:

REG

Title:

REG-level count of completed RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where IsCompleted
           and Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3802. RegOlderRiRugadlCompletedChange

Base:

REG

Title:

Change in REG-level count of completed RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRiRugadlCompleted as New
  join hist.RegOlderRiRugadlCompleted as Old using (State, RegId)

13.2.3803. RegOlderRiRugadlCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRiRugadlCompleted as New
  join hist.RegOlderRiRugadlCompleted as Old using (State, RegId)

13.2.3804. RegOlderRiRugadlCompletionRate

Base:

REG

Title:

REG-level completion rate of RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRiRugadlCompleted.Total, RegOlderRiCodCount.Total, 3) as Rate
  from RegOlderRiRugadlCompleted
  join RegOlderRiCodCount using (State, RegId)

13.2.3805. RegOlderRiRugadlCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRiRugadlCompletionRate as New
  join hist.RegOlderRiRugadlCompletionRate as Old using (State, RegId)

13.2.3806. RegOlderRiRugadlCount

Base:

REG

Title:

REG-level count of all RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join RugadlCompletion using (ColId)
         where Setting = '1'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3807. RegOlderRiRugadlCountChange

Base:

REG

Title:

Change in REG-level count of all RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRiRugadlCount as New
  join hist.RegOlderRiRugadlCount as Old using (State, RegId)

13.2.3808. RegOlderRiRugadlCountGrowth

Base:

REG

Title:

Growth in REG-level count of all RUGADL measures for Older age group in Inpatient setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRiRugadlCount as New
  join hist.RegOlderRiRugadlCount as Old using (State, RegId)

13.2.3809. RegOlderRrBasis32Completed

Base:

REG

Title:

REG-level count of completed BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3810. RegOlderRrBasis32CompletedChange

Base:

REG

Title:

Change in REG-level count of completed BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrBasis32Completed as New
  join hist.RegOlderRrBasis32Completed as Old using (State, RegId)

13.2.3811. RegOlderRrBasis32CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrBasis32Completed as New
  join hist.RegOlderRrBasis32Completed as Old using (State, RegId)

13.2.3812. RegOlderRrBasis32CompletionRate

Base:

REG

Title:

REG-level completion rate of BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRrBasis32Completed.Total, RegOlderRrCodCount.Total, 3) as Rate
  from RegOlderRrBasis32Completed
  join RegOlderRrCodCount using (State, RegId)

13.2.3813. RegOlderRrBasis32CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRrBasis32CompletionRate as New
  join hist.RegOlderRrBasis32CompletionRate as Old using (State, RegId)

13.2.3814. RegOlderRrBasis32Count

Base:

REG

Title:

REG-level count of all BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Basis32Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3815. RegOlderRrBasis32CountChange

Base:

REG

Title:

Change in REG-level count of all BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrBasis32Count as New
  join hist.RegOlderRrBasis32Count as Old using (State, RegId)

13.2.3816. RegOlderRrBasis32CountGrowth

Base:

REG

Title:

Growth in REG-level count of all BASIS32 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrBasis32Count as New
  join hist.RegOlderRrBasis32Count as Old using (State, RegId)

13.2.3817. RegOlderRrCodCount

Base:

REG

Title:

REG-level count of collection occasions for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3818. RegOlderRrDiagCompleted

Base:

REG

Title:

REG-level count of completed DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3819. RegOlderRrDiagCompletedChange

Base:

REG

Title:

Change in REG-level count of completed DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrDiagCompleted as New
  join hist.RegOlderRrDiagCompleted as Old using (State, RegId)

13.2.3820. RegOlderRrDiagCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrDiagCompleted as New
  join hist.RegOlderRrDiagCompleted as Old using (State, RegId)

13.2.3821. RegOlderRrDiagCompletionRate

Base:

REG

Title:

REG-level completion rate of DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRrDiagCompleted.Total, RegOlderRrCodCount.Total, 3) as Rate
  from RegOlderRrDiagCompleted
  join RegOlderRrCodCount using (State, RegId)

13.2.3822. RegOlderRrDiagCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRrDiagCompletionRate as New
  join hist.RegOlderRrDiagCompletionRate as Old using (State, RegId)

13.2.3823. RegOlderRrDiagCount

Base:

REG

Title:

REG-level count of all DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join DiagCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3824. RegOlderRrDiagCountChange

Base:

REG

Title:

Change in REG-level count of all DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrDiagCount as New
  join hist.RegOlderRrDiagCount as Old using (State, RegId)

13.2.3825. RegOlderRrDiagCountGrowth

Base:

REG

Title:

Growth in REG-level count of all DIAG measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrDiagCount as New
  join hist.RegOlderRrDiagCount as Old using (State, RegId)

13.2.3826. RegOlderRrHonosCompleted

Base:

REG

Title:

REG-level count of completed HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3827. RegOlderRrHonosCompletedChange

Base:

REG

Title:

Change in REG-level count of completed HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrHonosCompleted as New
  join hist.RegOlderRrHonosCompleted as Old using (State, RegId)

13.2.3828. RegOlderRrHonosCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrHonosCompleted as New
  join hist.RegOlderRrHonosCompleted as Old using (State, RegId)

13.2.3829. RegOlderRrHonosCompletionRate

Base:

REG

Title:

REG-level completion rate of HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRrHonosCompleted.Total, RegOlderRrCodCount.Total, 3) as Rate
  from RegOlderRrHonosCompleted
  join RegOlderRrCodCount using (State, RegId)

13.2.3830. RegOlderRrHonosCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRrHonosCompletionRate as New
  join hist.RegOlderRrHonosCompletionRate as Old using (State, RegId)

13.2.3831. RegOlderRrHonosCount

Base:

REG

Title:

REG-level count of all HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join HonosCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3832. RegOlderRrHonosCountChange

Base:

REG

Title:

Change in REG-level count of all HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrHonosCount as New
  join hist.RegOlderRrHonosCount as Old using (State, RegId)

13.2.3833. RegOlderRrHonosCountGrowth

Base:

REG

Title:

Growth in REG-level count of all HONOS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrHonosCount as New
  join hist.RegOlderRrHonosCount as Old using (State, RegId)

13.2.3834. RegOlderRrK10l3dCompleted

Base:

REG

Title:

REG-level count of completed K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3835. RegOlderRrK10l3dCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrK10l3dCompleted as New
  join hist.RegOlderRrK10l3dCompleted as Old using (State, RegId)

13.2.3836. RegOlderRrK10l3dCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrK10l3dCompleted as New
  join hist.RegOlderRrK10l3dCompleted as Old using (State, RegId)

13.2.3837. RegOlderRrK10l3dCompletionRate

Base:

REG

Title:

REG-level completion rate of K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRrK10l3dCompleted.Total, RegOlderRrCodCount.Total, 3) as Rate
  from RegOlderRrK10l3dCompleted
  join RegOlderRrCodCount using (State, RegId)

13.2.3838. RegOlderRrK10l3dCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRrK10l3dCompletionRate as New
  join hist.RegOlderRrK10l3dCompletionRate as Old using (State, RegId)

13.2.3839. RegOlderRrK10l3dCount

Base:

REG

Title:

REG-level count of all K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10l3dCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3840. RegOlderRrK10l3dCountChange

Base:

REG

Title:

Change in REG-level count of all K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrK10l3dCount as New
  join hist.RegOlderRrK10l3dCount as Old using (State, RegId)

13.2.3841. RegOlderRrK10l3dCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10L3D measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrK10l3dCount as New
  join hist.RegOlderRrK10l3dCount as Old using (State, RegId)

13.2.3842. RegOlderRrK10lmCompleted

Base:

REG

Title:

REG-level count of completed K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3843. RegOlderRrK10lmCompletedChange

Base:

REG

Title:

Change in REG-level count of completed K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrK10lmCompleted as New
  join hist.RegOlderRrK10lmCompleted as Old using (State, RegId)

13.2.3844. RegOlderRrK10lmCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrK10lmCompleted as New
  join hist.RegOlderRrK10lmCompleted as Old using (State, RegId)

13.2.3845. RegOlderRrK10lmCompletionRate

Base:

REG

Title:

REG-level completion rate of K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRrK10lmCompleted.Total, RegOlderRrCodCount.Total, 3) as Rate
  from RegOlderRrK10lmCompleted
  join RegOlderRrCodCount using (State, RegId)

13.2.3846. RegOlderRrK10lmCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRrK10lmCompletionRate as New
  join hist.RegOlderRrK10lmCompletionRate as Old using (State, RegId)

13.2.3847. RegOlderRrK10lmCount

Base:

REG

Title:

REG-level count of all K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join K10lmCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3848. RegOlderRrK10lmCountChange

Base:

REG

Title:

Change in REG-level count of all K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrK10lmCount as New
  join hist.RegOlderRrK10lmCount as Old using (State, RegId)

13.2.3849. RegOlderRrK10lmCountGrowth

Base:

REG

Title:

Growth in REG-level count of all K10LM measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrK10lmCount as New
  join hist.RegOlderRrK10lmCount as Old using (State, RegId)

13.2.3850. RegOlderRrLsp16Completed

Base:

REG

Title:

REG-level count of completed LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3851. RegOlderRrLsp16CompletedChange

Base:

REG

Title:

Change in REG-level count of completed LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrLsp16Completed as New
  join hist.RegOlderRrLsp16Completed as Old using (State, RegId)

13.2.3852. RegOlderRrLsp16CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrLsp16Completed as New
  join hist.RegOlderRrLsp16Completed as Old using (State, RegId)

13.2.3853. RegOlderRrLsp16CompletionRate

Base:

REG

Title:

REG-level completion rate of LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRrLsp16Completed.Total, RegOlderRrCodCount.Total, 3) as Rate
  from RegOlderRrLsp16Completed
  join RegOlderRrCodCount using (State, RegId)

13.2.3854. RegOlderRrLsp16CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRrLsp16CompletionRate as New
  join hist.RegOlderRrLsp16CompletionRate as Old using (State, RegId)

13.2.3855. RegOlderRrLsp16Count

Base:

REG

Title:

REG-level count of all LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Lsp16Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3856. RegOlderRrLsp16CountChange

Base:

REG

Title:

Change in REG-level count of all LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrLsp16Count as New
  join hist.RegOlderRrLsp16Count as Old using (State, RegId)

13.2.3857. RegOlderRrLsp16CountGrowth

Base:

REG

Title:

Growth in REG-level count of all LSP16 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrLsp16Count as New
  join hist.RegOlderRrLsp16Count as Old using (State, RegId)

13.2.3858. RegOlderRrMhi38Completed

Base:

REG

Title:

REG-level count of completed MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3859. RegOlderRrMhi38CompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrMhi38Completed as New
  join hist.RegOlderRrMhi38Completed as Old using (State, RegId)

13.2.3860. RegOlderRrMhi38CompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrMhi38Completed as New
  join hist.RegOlderRrMhi38Completed as Old using (State, RegId)

13.2.3861. RegOlderRrMhi38CompletionRate

Base:

REG

Title:

REG-level completion rate of MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRrMhi38Completed.Total, RegOlderRrCodCount.Total, 3) as Rate
  from RegOlderRrMhi38Completed
  join RegOlderRrCodCount using (State, RegId)

13.2.3862. RegOlderRrMhi38CompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRrMhi38CompletionRate as New
  join hist.RegOlderRrMhi38CompletionRate as Old using (State, RegId)

13.2.3863. RegOlderRrMhi38Count

Base:

REG

Title:

REG-level count of all MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join Mhi38Completion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3864. RegOlderRrMhi38CountChange

Base:

REG

Title:

Change in REG-level count of all MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrMhi38Count as New
  join hist.RegOlderRrMhi38Count as Old using (State, RegId)

13.2.3865. RegOlderRrMhi38CountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHI38 measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrMhi38Count as New
  join hist.RegOlderRrMhi38Count as Old using (State, RegId)

13.2.3866. RegOlderRrMhlsCompleted

Base:

REG

Title:

REG-level count of completed MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3867. RegOlderRrMhlsCompletedChange

Base:

REG

Title:

Change in REG-level count of completed MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrMhlsCompleted as New
  join hist.RegOlderRrMhlsCompleted as Old using (State, RegId)

13.2.3868. RegOlderRrMhlsCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrMhlsCompleted as New
  join hist.RegOlderRrMhlsCompleted as Old using (State, RegId)

13.2.3869. RegOlderRrMhlsCompletionRate

Base:

REG

Title:

REG-level completion rate of MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRrMhlsCompleted.Total, RegOlderRrCodCount.Total, 3) as Rate
  from RegOlderRrMhlsCompleted
  join RegOlderRrCodCount using (State, RegId)

13.2.3870. RegOlderRrMhlsCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRrMhlsCompletionRate as New
  join hist.RegOlderRrMhlsCompletionRate as Old using (State, RegId)

13.2.3871. RegOlderRrMhlsCount

Base:

REG

Title:

REG-level count of all MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join MhlsCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3872. RegOlderRrMhlsCountChange

Base:

REG

Title:

Change in REG-level count of all MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrMhlsCount as New
  join hist.RegOlderRrMhlsCount as Old using (State, RegId)

13.2.3873. RegOlderRrMhlsCountGrowth

Base:

REG

Title:

Growth in REG-level count of all MHLS measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrMhlsCount as New
  join hist.RegOlderRrMhlsCount as Old using (State, RegId)

13.2.3874. RegOlderRrPocCompleted

Base:

REG

Title:

REG-level count of completed POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where IsCompleted
           and Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3875. RegOlderRrPocCompletedChange

Base:

REG

Title:

Change in REG-level count of completed POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrPocCompleted as New
  join hist.RegOlderRrPocCompleted as Old using (State, RegId)

13.2.3876. RegOlderRrPocCompletedGrowth

Base:

REG

Title:

Growth in REG-level count of completed POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrPocCompleted as New
  join hist.RegOlderRrPocCompleted as Old using (State, RegId)

13.2.3877. RegOlderRrPocCompletionRate

Base:

REG

Title:

REG-level completion rate of POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(RegOlderRrPocCompleted.Total, RegOlderRrCodCount.Total, 3) as Rate
  from RegOlderRrPocCompleted
  join RegOlderRrCodCount using (State, RegId)

13.2.3878. RegOlderRrPocCompletionRateChange

Base:

REG

Title:

Change in REG-level completion rate of POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Rate - Old.Rate) as Change
  from RegOlderRrPocCompletionRate as New
  join hist.RegOlderRrPocCompletionRate as Old using (State, RegId)

13.2.3879. RegOlderRrPocCount

Base:

REG

Title:

REG-level count of all POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       coalesce(Count, 0) as Total
  from REG
  left join (
        select State,
               RegId,
               count(*) as Count
          from COD
          join PocCompletion using (ColId)
         where Setting = '2'
           and AgeGrp = '3'
           and ColRsn in ('04','05')
         group by State,
                  RegId
       ) tmpinner using (State, RegId)

13.2.3880. RegOlderRrPocCountChange

Base:

REG

Title:

Change in REG-level count of all POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       (New.Total - Old.Total) as Change
  from RegOlderRrPocCount as New
  join hist.RegOlderRrPocCount as Old using (State, RegId)

13.2.3881. RegOlderRrPocCountGrowth

Base:

REG

Title:

Growth in REG-level count of all POC measures for Older age group in Residential setting after Review

SQL:
select State,
       RegId,
       sd_div_safe(New.Total - Old.Total, Old.Total, 3) as Growth
  from RegOlderRrPocCount as New
  join hist.RegOlderRrPocCount as Old using (State, RegId)

13.2.3882. RugadlCompletion

Base:

RUGADL

Title:

Rugadl Completion Status

SQL:
select ColId,
       (cast(RugAdl1 in ('1','2','3','4','5') as integer) + cast(RugAdl2 in ('1','2','3','4','5') as integer) + cast(RugAdl3 in ('1','2','3','4','5') as integer) + cast(RugAdl4 in ('1','2','3','4','5') as integer) + 0) >= 4 as IsCompleted
  from RUGADL
Rules:

13.2.3883. SdqCompletion

Base:

SDQ

Title:

Sdq Completion Status

SQL:
select ColId,
       SDQVer, ((cast(SDQ03 in ('0','1','2') as integer) + cast(SDQ08 in ('0','1','2') as integer) + cast(SDQ13 in ('0','1','2') as integer) + cast(SDQ16 in ('0','1','2') as integer) + cast(SDQ24 in ('0','1','2') as integer) + 0) >= 3)
   and ((cast(SDQ05 in ('0','1','2') as integer) + cast(SDQ07 in ('0','1','2') as integer) + cast(SDQ12 in ('0','1','2') as integer) + cast(SDQ18 in ('0','1','2') as integer) + cast(SDQ22 in ('0','1','2') as integer) + 0) >= 3)
   and ((cast(SDQ02 in ('0','1','2') as integer) + cast(SDQ10 in ('0','1','2') as integer) + cast(SDQ15 in ('0','1','2') as integer) + cast(SDQ21 in ('0','1','2') as integer) + cast(SDQ25 in ('0','1','2') as integer) + 0) >= 3)
   and ((cast(SDQ06 in ('0','1','2') as integer) + cast(SDQ11 in ('0','1','2') as integer) + cast(SDQ14 in ('0','1','2') as integer) + cast(SDQ19 in ('0','1','2') as integer) + cast(SDQ23 in ('0','1','2') as integer) + 0) >= 3) as IsCompleted
  from SDQ
Rules:

13.2.3884. ServAdmiCount

Base:

SERV

Title:

Admi Count at SERV Level

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       coalesce(Count, 0) as Count
  from SERV
  left join (
        select State,
               RegId,
               OrgId,
               HospClusId,
               SUId,
               count(*) as Count
          from SERV
         where SUType = '1'
         group by State,
                  RegId,
                  OrgId,
                  HospClusId,
                  SUId
       ) as tmpinner using (State, RegId, OrgId, HospClusId, SUId)

13.2.3885. ServAmbuCount

Base:

SERV

Title:

Ambu Count at SERV Level

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       coalesce(Count, 0) as Count
  from SERV
  left join (
        select State,
               RegId,
               OrgId,
               HospClusId,
               SUId,
               count(*) as Count
          from SERV
         where SUType = '3'
         group by State,
                  RegId,
                  OrgId,
                  HospClusId,
                  SUId
       ) as tmpinner using (State, RegId, OrgId, HospClusId, SUId)

13.2.3886. ServHasAdmi

Base:

SERV

Title:

SERV Admi Count below SERV

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       Count
  from ServAdmiCount
 where Count > 0

13.2.3887. ServHasAmbu

Base:

SERV

Title:

SERV Ambu Count below SERV

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       Count
  from ServAmbuCount
 where Count > 0

13.2.3888. ServHasResi

Base:

SERV

Title:

SERV Resi Count below SERV

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       Count
  from ServResiCount
 where Count > 0

13.2.3889. ServResiCount

Base:

SERV

Title:

Resi Count at SERV Level

SQL:
select State,
       RegId,
       OrgId,
       HospClusId,
       SUId,
       coalesce(Count, 0) as Count
  from SERV
  left join (
        select State,
               RegId,
               OrgId,
               HospClusId,
               SUId,
               count(*) as Count
          from SERV
         where SUType = '2'
         group by State,
                  RegId,
                  OrgId,
                  HospClusId,
                  SUId
       ) as tmpinner using (State, RegId, OrgId, HospClusId, SUId)