LegacyDataValueApi

@RequiresOptIn(message = "This API does not require explicit dataSet. For DHIS2 v43+, use the version with dataSet parameter. Add @OptIn(LegacyDataValueApi::class) if you understand the implications.", level = RequiresOptIn.Level.ERROR)
annotation class LegacyDataValueApi

Marks a DataValue API that does not require an explicit dataSet parameter.

Starting from DHIS2 v43, the dataSet parameter is mandatory for DataValue operations. Using APIs without explicit dataSet may cause issues on v43+ servers.

To use these APIs, you must explicitly opt-in by adding @OptIn(LegacyDataValueApi::class) to your code, acknowledging that you understand the implications.