SEND_FREQUENCY_WEEKLY = 'weekly'
SEND_FREQUENCY_MONTHLY = 'monthly'
SEND_FREQUENCY_QUARTERLY = 'quarterly'
SEND_FREQUENCIES = [
    SEND_FREQUENCY_WEEKLY,
    SEND_FREQUENCY_MONTHLY,
    SEND_FREQUENCY_QUARTERLY,
]

# A subset of DHIS2 data types. Omitted data types:
# * COORDINATE
# * EMAIL
# * FILE_RESOURCE
# * INTEGER_NEGATIVE
# * INTEGER_POSITIVE
# * INTEGER_ZERO_OR_POSITIVE
# * LETTER
# * LONG_TEXT
# * PERCENTAGE
# * PHONE_NUMBER
# * TRUE_ONLY
# * UNIT_INTERVAL
DHIS2_DATA_TYPE_BOOLEAN = "dhis2_boolean"
DHIS2_DATA_TYPE_DATE = "dhis2_date"
DHIS2_DATA_TYPE_DATETIME = "dhis2_datetime"
DHIS2_DATA_TYPE_INTEGER = "dhis2_integer"
DHIS2_DATA_TYPE_NUMBER = "dhis2_number"
DHIS2_DATA_TYPE_TEXT = "dhis2_text"

DHIS2_EVENT_STATUS_ACTIVE = "ACTIVE"
DHIS2_EVENT_STATUS_COMPLETED = "COMPLETED"
DHIS2_EVENT_STATUS_VISITED = "VISITED"
DHIS2_EVENT_STATUS_SCHEDULED = "SCHEDULED"
DHIS2_EVENT_STATUS_OVERDUE = "OVERDUE"
DHIS2_EVENT_STATUS_SKIPPED = "SKIPPED"

DHIS2_EVENT_STATUSES = (
    DHIS2_EVENT_STATUS_ACTIVE,
    DHIS2_EVENT_STATUS_COMPLETED,
    DHIS2_EVENT_STATUS_VISITED,
    DHIS2_EVENT_STATUS_SCHEDULED,
    DHIS2_EVENT_STATUS_OVERDUE,
    DHIS2_EVENT_STATUS_SKIPPED,
)

DHIS2_PROGRAM_STATUS_ACTIVE = "ACTIVE"
DHIS2_PROGRAM_STATUS_COMPLETED = "COMPLETED"
DHIS2_PROGRAM_STATUS_CANCELLED = "CANCELLED"
DHIS2_PROGRAM_STATUSES = (
    DHIS2_PROGRAM_STATUS_ACTIVE,
    DHIS2_PROGRAM_STATUS_COMPLETED,
    DHIS2_PROGRAM_STATUS_CANCELLED,
)

LOCATION_DHIS_ID = 'dhis_id'

# XMLNS to indicate that a case was updated with data from DHIS2.
# (Used for updating cases with their tracked entity instance ID.)
XMLNS_DHIS2 = 'http://commcarehq.org/dhis2-integration'

DHIS2_MAX_VERSION = "2.33.0"

@@ -1681,9 +1681,9 @@
 %222.3
-3.0
+5.1
 %22%0A

Bump known good version of DHIS2