{"action":"created","comment":{"url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/comments/242129103","pull_request_review_id":185567015,"id":242129103,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjEyOTEwMw==","diff_hunk":"@@ -14,20 +14,36 @@ class PatientFuzzySearch {\n   interface PatientFuzzySearchDao {\n \n     fun searchForPatientsWithNameLikeAndAgeWithin(query: String, dobUpperBound: String, dobLowerBound: String): Single<List<PatientSearchResult>>\n+\n+    fun searchForPatientsWithNameLike(query: String): Single<List<PatientSearchResult>>\n   }\n \n   class PatientFuzzySearchDaoImpl(\n       private val sqLiteOpenHelper: SupportSQLiteOpenHelper,\n       private val patientSearchDao: PatientSearchResult.RoomDao\n   ) : PatientFuzzySearchDao {\n \n-    override fun searchForPatientsWithNameLikeAndAgeWithin(query: String, dobUpperBound: String, dobLowerBound: String) =\n-        patientUuidsMatching(query).flatMap { uuidsSortedByScore ->\n-          val uuids = uuidsSortedByScore.map { it.uuid }\n-          patientSearchDao\n-              .searchByIds(uuids, dobUpperBound, dobLowerBound, PatientStatus.ACTIVE)\n-              .compose(sortPatientSearchResultsByScore(uuidsSortedByScore))\n-        }!!\n+    override fun searchForPatientsWithNameLikeAndAgeWithin(\n+        query: String,\n+        dobUpperBound: String,\n+        dobLowerBound: String\n+    ): Single<List<PatientSearchResult>> {\n+      return patientUuidsMatching(query).flatMap { uuidsSortedByScore ->","path":"app/src/main/java/org/simple/clinic/patient/PatientFuzzySearch.kt","position":25,"original_position":25,"commit_id":"6a3c8ae9f1bd80d391d88af50446742df9c86bb2","original_commit_id":"84eab997dc7e04c549a1fceb51f54fcaf36c08c3","user":{"login":"saket","id":2387680,"node_id":"MDQ6VXNlcjIzODc2ODA=","avatar_url":"https://avatars3.githubusercontent.com/u/2387680?v=4","gravatar_id":"","url":"https://api.github.com/users/saket","html_url":"https://github.com/saket","followers_url":"https://api.github.com/users/saket/followers","following_url":"https://api.github.com/users/saket/following{/other_user}","gists_url":"https://api.github.com/users/saket/gists{/gist_id}","starred_url":"https://api.github.com/users/saket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saket/subscriptions","organizations_url":"https://api.github.com/users/saket/orgs","repos_url":"https://api.github.com/users/saket/repos","events_url":"https://api.github.com/users/saket/events{/privacy}","received_events_url":"https://api.github.com/users/saket/received_events","type":"User","site_admin":false},"body":"Got it","created_at":"2018-12-17T12:32:03Z","updated_at":"2018-12-17T12:32:03Z","html_url":"https://github.com/simpledotorg/simple-android/pull/409#discussion_r242129103","pull_request_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/409","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/comments/242129103"},"html":{"href":"https://github.com/simpledotorg/simple-android/pull/409#discussion_r242129103"},"pull_request":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/409"}},"in_reply_to_id":241721015},"pull_request":{"url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/409","id":238624067,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4NjI0MDY3","html_url":"https://github.com/simpledotorg/simple-android/pull/409","diff_url":"https://github.com/simpledotorg/simple-android/pull/409.diff","patch_url":"https://github.com/simpledotorg/simple-android/pull/409.patch","issue_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/409","number":409,"state":"open","locked":false,"title":"Remove Age and Date of Birth filter from patient lookup","user":{"login":"vinaysshenoy","id":1978065,"node_id":"MDQ6VXNlcjE5NzgwNjU=","avatar_url":"https://avatars0.githubusercontent.com/u/1978065?v=4","gravatar_id":"","url":"https://api.github.com/users/vinaysshenoy","html_url":"https://github.com/vinaysshenoy","followers_url":"https://api.github.com/users/vinaysshenoy/followers","following_url":"https://api.github.com/users/vinaysshenoy/following{/other_user}","gists_url":"https://api.github.com/users/vinaysshenoy/gists{/gist_id}","starred_url":"https://api.github.com/users/vinaysshenoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinaysshenoy/subscriptions","organizations_url":"https://api.github.com/users/vinaysshenoy/orgs","repos_url":"https://api.github.com/users/vinaysshenoy/repos","events_url":"https://api.github.com/users/vinaysshenoy/events{/privacy}","received_events_url":"https://api.github.com/users/vinaysshenoy/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-14T06:37:15Z","updated_at":"2018-12-17T12:32:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3277eb5fdd3bd7a354e01f3de60869f2ebd1ef7","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sanchita","id":2422072,"node_id":"MDQ6VXNlcjI0MjIwNzI=","avatar_url":"https://avatars3.githubusercontent.com/u/2422072?v=4","gravatar_id":"","url":"https://api.github.com/users/sanchita","html_url":"https://github.com/sanchita","followers_url":"https://api.github.com/users/sanchita/followers","following_url":"https://api.github.com/users/sanchita/following{/other_user}","gists_url":"https://api.github.com/users/sanchita/gists{/gist_id}","starred_url":"https://api.github.com/users/sanchita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanchita/subscriptions","organizations_url":"https://api.github.com/users/sanchita/orgs","repos_url":"https://api.github.com/users/sanchita/repos","events_url":"https://api.github.com/users/sanchita/events{/privacy}","received_events_url":"https://api.github.com/users/sanchita/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/409/commits","review_comments_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/409/comments","review_comment_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/409/comments","statuses_url":"https://api.github.com/repos/simpledotorg/simple-android/statuses/6a3c8ae9f1bd80d391d88af50446742df9c86bb2","head":{"label":"simpledotorg:vs/13dec/remove-age-from-search","ref":"vs/13dec/remove-age-from-search","sha":"6a3c8ae9f1bd80d391d88af50446742df9c86bb2","user":{"login":"simpledotorg","id":40570251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNTcwMjUx","avatar_url":"https://avatars0.githubusercontent.com/u/40570251?v=4","gravatar_id":"","url":"https://api.github.com/users/simpledotorg","html_url":"https://github.com/simpledotorg","followers_url":"https://api.github.com/users/simpledotorg/followers","following_url":"https://api.github.com/users/simpledotorg/following{/other_user}","gists_url":"https://api.github.com/users/simpledotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpledotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpledotorg/subscriptions","organizations_url":"https://api.github.com/users/simpledotorg/orgs","repos_url":"https://api.github.com/users/simpledotorg/repos","events_url":"https://api.github.com/users/simpledotorg/events{/privacy}","received_events_url":"https://api.github.com/users/simpledotorg/received_events","type":"Organization","site_admin":false},"repo":{"id":132515649,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1MTU2NDk=","name":"simple-android","full_name":"simpledotorg/simple-android","private":false,"owner":{"login":"simpledotorg","id":40570251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNTcwMjUx","avatar_url":"https://avatars0.githubusercontent.com/u/40570251?v=4","gravatar_id":"","url":"https://api.github.com/users/simpledotorg","html_url":"https://github.com/simpledotorg","followers_url":"https://api.github.com/users/simpledotorg/followers","following_url":"https://api.github.com/users/simpledotorg/following{/other_user}","gists_url":"https://api.github.com/users/simpledotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpledotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpledotorg/subscriptions","organizations_url":"https://api.github.com/users/simpledotorg/orgs","repos_url":"https://api.github.com/users/simpledotorg/repos","events_url":"https://api.github.com/users/simpledotorg/events{/privacy}","received_events_url":"https://api.github.com/users/simpledotorg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/simpledotorg/simple-android","description":"An Android app for recording blood pressure measurements","fork":false,"url":"https://api.github.com/repos/simpledotorg/simple-android","forks_url":"https://api.github.com/repos/simpledotorg/simple-android/forks","keys_url":"https://api.github.com/repos/simpledotorg/simple-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simpledotorg/simple-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simpledotorg/simple-android/teams","hooks_url":"https://api.github.com/repos/simpledotorg/simple-android/hooks","issue_events_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/events{/number}","events_url":"https://api.github.com/repos/simpledotorg/simple-android/events","assignees_url":"https://api.github.com/repos/simpledotorg/simple-android/assignees{/user}","branches_url":"https://api.github.com/repos/simpledotorg/simple-android/branches{/branch}","tags_url":"https://api.github.com/repos/simpledotorg/simple-android/tags","blobs_url":"https://api.github.com/repos/simpledotorg/simple-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simpledotorg/simple-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simpledotorg/simple-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/simpledotorg/simple-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simpledotorg/simple-android/statuses/{sha}","languages_url":"https://api.github.com/repos/simpledotorg/simple-android/languages","stargazers_url":"https://api.github.com/repos/simpledotorg/simple-android/stargazers","contributors_url":"https://api.github.com/repos/simpledotorg/simple-android/contributors","subscribers_url":"https://api.github.com/repos/simpledotorg/simple-android/subscribers","subscription_url":"https://api.github.com/repos/simpledotorg/simple-android/subscription","commits_url":"https://api.github.com/repos/simpledotorg/simple-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/simpledotorg/simple-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/simpledotorg/simple-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/simpledotorg/simple-android/contents/{+path}","compare_url":"https://api.github.com/repos/simpledotorg/simple-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simpledotorg/simple-android/merges","archive_url":"https://api.github.com/repos/simpledotorg/simple-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simpledotorg/simple-android/downloads","issues_url":"https://api.github.com/repos/simpledotorg/simple-android/issues{/number}","pulls_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls{/number}","milestones_url":"https://api.github.com/repos/simpledotorg/simple-android/milestones{/number}","notifications_url":"https://api.github.com/repos/simpledotorg/simple-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simpledotorg/simple-android/labels{/name}","releases_url":"https://api.github.com/repos/simpledotorg/simple-android/releases{/id}","deployments_url":"https://api.github.com/repos/simpledotorg/simple-android/deployments","created_at":"2018-05-07T20:56:54Z","updated_at":"2018-12-17T11:08:22Z","pushed_at":"2018-12-17T11:50:16Z","git_url":"git://github.com/simpledotorg/simple-android.git","ssh_url":"git@github.com:simpledotorg/simple-android.git","clone_url":"https://github.com/simpledotorg/simple-android.git","svn_url":"https://github.com/simpledotorg/simple-android","homepage":"https://www.simple.org","size":6805,"stargazers_count":49,"watchers_count":49,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":15,"open_issues":6,"watchers":49,"default_branch":"master"}},"base":{"label":"simpledotorg:master","ref":"master","sha":"922ba24ed05c6b618539c33a6c3ad08938aed140","user":{"login":"simpledotorg","id":40570251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNTcwMjUx","avatar_url":"https://avatars0.githubusercontent.com/u/40570251?v=4","gravatar_id":"","url":"https://api.github.com/users/simpledotorg","html_url":"https://github.com/simpledotorg","followers_url":"https://api.github.com/users/simpledotorg/followers","following_url":"https://api.github.com/users/simpledotorg/following{/other_user}","gists_url":"https://api.github.com/users/simpledotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpledotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpledotorg/subscriptions","organizations_url":"https://api.github.com/users/simpledotorg/orgs","repos_url":"https://api.github.com/users/simpledotorg/repos","events_url":"https://api.github.com/users/simpledotorg/events{/privacy}","received_events_url":"https://api.github.com/users/simpledotorg/received_events","type":"Organization","site_admin":false},"repo":{"id":132515649,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1MTU2NDk=","name":"simple-android","full_name":"simpledotorg/simple-android","private":false,"owner":{"login":"simpledotorg","id":40570251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNTcwMjUx","avatar_url":"https://avatars0.githubusercontent.com/u/40570251?v=4","gravatar_id":"","url":"https://api.github.com/users/simpledotorg","html_url":"https://github.com/simpledotorg","followers_url":"https://api.github.com/users/simpledotorg/followers","following_url":"https://api.github.com/users/simpledotorg/following{/other_user}","gists_url":"https://api.github.com/users/simpledotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/simpledotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpledotorg/subscriptions","organizations_url":"https://api.github.com/users/simpledotorg/orgs","repos_url":"https://api.github.com/users/simpledotorg/repos","events_url":"https://api.github.com/users/simpledotorg/events{/privacy}","received_events_url":"https://api.github.com/users/simpledotorg/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/simpledotorg/simple-android","description":"An Android app for recording blood pressure measurements","fork":false,"url":"https://api.github.com/repos/simpledotorg/simple-android","forks_url":"https://api.github.com/repos/simpledotorg/simple-android/forks","keys_url":"https://api.github.com/repos/simpledotorg/simple-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simpledotorg/simple-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simpledotorg/simple-android/teams","hooks_url":"https://api.github.com/repos/simpledotorg/simple-android/hooks","issue_events_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/events{/number}","events_url":"https://api.github.com/repos/simpledotorg/simple-android/events","assignees_url":"https://api.github.com/repos/simpledotorg/simple-android/assignees{/user}","branches_url":"https://api.github.com/repos/simpledotorg/simple-android/branches{/branch}","tags_url":"https://api.github.com/repos/simpledotorg/simple-android/tags","blobs_url":"https://api.github.com/repos/simpledotorg/simple-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simpledotorg/simple-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simpledotorg/simple-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/simpledotorg/simple-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simpledotorg/simple-android/statuses/{sha}","languages_url":"https://api.github.com/repos/simpledotorg/simple-android/languages","stargazers_url":"https://api.github.com/repos/simpledotorg/simple-android/stargazers","contributors_url":"https://api.github.com/repos/simpledotorg/simple-android/contributors","subscribers_url":"https://api.github.com/repos/simpledotorg/simple-android/subscribers","subscription_url":"https://api.github.com/repos/simpledotorg/simple-android/subscription","commits_url":"https://api.github.com/repos/simpledotorg/simple-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/simpledotorg/simple-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/simpledotorg/simple-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/simpledotorg/simple-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/simpledotorg/simple-android/contents/{+path}","compare_url":"https://api.github.com/repos/simpledotorg/simple-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simpledotorg/simple-android/merges","archive_url":"https://api.github.com/repos/simpledotorg/simple-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simpledotorg/simple-android/downloads","issues_url":"https://api.github.com/repos/simpledotorg/simple-android/issues{/number}","pulls_url":"https://api.github.com/repos/simpledotorg/simple-android/pulls{/number}","milestones_url":"https://api.github.com/repos/simpledotorg/simple-android/milestones{/number}","notifications_url":"https://api.github.com/repos/simpledotorg/simple-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simpledotorg/simple-android/labels{/name}","releases_url":"https://api.github.com/repos/simpledotorg/simple-android/releases{/id}","deployments_url":"https://api.github.com/repos/simpledotorg/simple-android/deployments","created_at":"2018-05-07T20:56:54Z","updated_at":"2018-12-17T11:08:22Z","pushed_at":"2018-12-17T11:50:16Z","git_url":"git://github.com/simpledotorg/simple-android.git","ssh_url":"git@github.com:simpledotorg/simple-android.git","clone_url":"https://github.com/simpledotorg/simple-android.git","svn_url":"https://github.com/simpledotorg/simple-android","homepage":"https://www.simple.org","size":6805,"stargazers_count":49,"watchers_count":49,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":15,"open_issues":6,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/409"},"html":{"href":"https://github.com/simpledotorg/simple-android/pull/409"},"issue":{"href":"https://api.github.com/repos/simpledotorg/simple-android/issues/409"},"comments":{"href":"https://api.github.com/repos/simpledotorg/simple-android/issues/409/comments"},"review_comments":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/409/comments"},"review_comment":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simpledotorg/simple-android/pulls/409/commits"},"statuses":{"href":"https://api.github.com/repos/simpledotorg/simple-android/statuses/6a3c8ae9f1bd80d391d88af50446742df9c86bb2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"saket"}}