- Model getGETModel(Representation) A resource that supports GET operations such as 'getAll', 'getByUniqueId', and 'search'' should override this method.
- Model getCREATEModel(Representation) A resource that supports CREATE operations should override this method.
- Model getUPDATEModel(Representation) A resource that supports UPDATE operations should override this method.
You do not need to override these methods. However, if not, then their proper definitions won't appear in OpenMRS Swagger specification. Thus the resource won't show up in the live documentation here either. (while the live demo swagger documentation can be found inside the advanced system adminstration section of the reference application on the demo server) either.
So it's recommended that you override these.
How to find which properties to be documented?
getGETModelgetGETModel(Representation), getCREATEModel(Representation), and getUPDATEModel(Representation) methods correspond to getGetRepresentation(), getCreatableProperties(), and getUpdatableProperties() methods respectively. So they can be used as reference when documenting resources.