...
Code Block | ||||
---|---|---|---|---|
| ||||
public interface ContentHandlerService extends OpenMRSService { /** To be called by interface modules */ ContentHandler getContentHandler(String contentType); /** To be called by processor modules on startup */ void RegisterContentHandlerregisterContentHandler(String contentType, ContentHandler prototype) throws AlreadyRegisteredException; /** To be called by processor modules on shutdown */ void DeregisterContentHandlerderegisterContentHandler(String contentType); } |
Code Block | ||||
---|---|---|---|---|
| ||||
public interface ContentHandler { void saveContent(Patient patient, String content); void saveContent(Patient patient, String documentId, String content); String fetchDocument(String documentId); StringList<String> queryEncounters(Patient patient, Date from, Date to); ContentHandler cloneHandler(); } |