Please refer to this page for further details
The visit type for retrospective entries can be configured in clinical/app.json of config.
"config" : {
"visitTypeForRetrospectiveEntries": "OPD"
}