O3 Framework / getVisitTypes
getVisitTypes():
Observable<VisitType[]>
Defined in: packages/framework/esm-emr-api/src/visit-type.ts:29
Fetches all available visit types from the OpenMRS REST API.
Observable<VisitType[]>
An Observable that emits an array of VisitType objects and then completes. The Observable will emit exactly one value containing all visit types.
import { getVisitTypes } from '@openmrs/esm-framework';
getVisitTypes().subscribe((visitTypes) => {
console.log('Available visit types:', visitTypes);
});