Issue #1: Added query by encounter type.
Issue #1: Finished the fetchDocument methods.