{"action":"created","comment":{"url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/comments/44947667","id":44947667,"diff_hunk":"@@ -0,0 +1,199 @@\n+/**\n+ * The contents of this file are subject to the OpenMRS Public License\n+ * Version 1.0 (the \"License\"); you may not use this file except in\n+ * compliance with the License. You may obtain a copy of the License at\n+ * http://license.openmrs.org\n+ *\n+ * Software distributed under the License is distributed on an \"AS IS\"\n+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the\n+ * License for the specific language governing rights and limitations\n+ * under the License.\n+ *\n+ * Copyright (C) OpenMRS, LLC.  All Rights Reserved.\n+ */\n+package org.openmrs.module.metadatamapping.api.db.hibernate;\n+\n+import java.util.Collection;\n+import java.util.LinkedList;\n+import java.util.List;\n+\n+import org.hibernate.Criteria;\n+import org.hibernate.SessionFactory;\n+import org.hibernate.criterion.Order;\n+import org.hibernate.criterion.Restrictions;\n+import org.openmrs.Concept;\n+import org.openmrs.OpenmrsMetadata;\n+import org.openmrs.OpenmrsObject;\n+import org.openmrs.module.metadatamapping.MetadataSource;\n+import org.openmrs.module.metadatamapping.MetadataTermMapping;\n+import org.openmrs.module.metadatamapping.api.db.MetadataMappingDAO;\n+import org.openmrs.module.metadatamapping.api.exception.InvalidMetadataTypeException;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.beans.factory.annotation.Qualifier;\n+import org.springframework.stereotype.Component;\n+import org.springframework.transaction.annotation.Transactional;\n+\n+/**\n+ * Hibernate DAO implementation.\n+ */\n+@Component(\"metadatamapping.MetadataMappingDAO\")\n+public class HibernateMetadataMappingDAO implements MetadataMappingDAO {\n+\t\n+\t@Autowired\n+\t@Qualifier(\"sessionFactory\")\n+\tprivate SessionFactory sessionFactory;\n+\t\n+\t/**\n+\t * @see MetadataMappingDAO#getConcepts(int, int)\n+\t */\n+\t@Override\n+\t@Transactional(readOnly = true)\n+\tpublic List<Concept> getConcepts(final int firstResult, final int maxResults) {\n+\t\tfinal Criteria criteria = sessionFactory.getCurrentSession().createCriteria(Concept.class);\n+\t\tcriteria.addOrder(Order.asc(\"conceptId\"));\n+\t\tcriteria.setMaxResults(maxResults);\n+\t\tcriteria.setFirstResult(firstResult);\n+\t\t\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tfinal List<Concept> list = criteria.list();\n+\t\treturn list;\n+\t}\n+\t\n+\t@Override\n+\tpublic MetadataSource saveMetadataSource(MetadataSource metadataSource) {\n+\t\tsessionFactory.getCurrentSession().saveOrUpdate(metadataSource);\n+\t\treturn metadataSource;\n+\t}\n+\t\n+\t@Override\n+\tpublic MetadataSource getMetadataSource(Integer metadataSourceId) {\n+\t\treturn (MetadataSource) sessionFactory.getCurrentSession().get(MetadataSource.class, metadataSourceId);\n+\t}\n+\t\n+\t@Override\n+\tpublic MetadataSource getMetadataSourceByName(String metadataSourceName) {\n+\t\tCriteria criteria = sessionFactory.getCurrentSession().createCriteria(MetadataSource.class);\n+\t\tcriteria.add(Restrictions.eq(\"name\", metadataSourceName));\n+\t\treturn (MetadataSource) criteria.uniqueResult();\n+\t}\n+\t\n+\t@Override\n+\tpublic MetadataTermMapping saveMetadataTermMapping(MetadataTermMapping metadataTermMapping) {\n+\t\treturn internalSaveMetadataTermMapping(metadataTermMapping);\n+\t}\n+\t\n+\t@Override\n+\tpublic Collection<MetadataTermMapping> saveMetadataTermMappings(Collection<MetadataTermMapping> metadataTermMappings) {\n+\t\tfor (MetadataTermMapping metadataTermMapping : metadataTermMappings) {\n+\t\t\tinternalSaveMetadataTermMapping(metadataTermMapping);\n+\t\t}\n+\t\treturn metadataTermMappings;\n+\t}\n+\t\n+\t@Override\n+\tpublic MetadataTermMapping getMetadataTermMapping(Integer metadataTermMappingId) {\n+\t\treturn (MetadataTermMapping) sessionFactory.getCurrentSession()\n+\t\t        .get(MetadataTermMapping.class, metadataTermMappingId);\n+\t}\n+\t\n+\t@Override\n+\tpublic <T extends OpenmrsObject> T getByUuid(Class<T> openmrsObjectClass, String uuid) {\n+\t\treturn internalGetByUuid(openmrsObjectClass, uuid);\n+\t}\n+\t\n+\t@Override\n+\t@SuppressWarnings(value = \"unchecked\")\n+\tpublic List<MetadataTermMapping> getMetadataTermMappings(OpenmrsMetadata referredObject) {\n+\t\tCriteria criteria = sessionFactory.getCurrentSession().createCriteria(MetadataTermMapping.class);\n+\t\t\n+\t\tcriteria.add(Restrictions.eq(\"metadataUuid\", referredObject.getUuid()));\n+\t\t// Filtering on metadataClass should be redundant as uuids should be globally unique but better be on the safe side.\n+\t\tcriteria.add(Restrictions.eq(\"metadataClass\", referredObject.getClass().getCanonicalName()));\n+\t\tcriteria.add(Restrictions.eq(\"retired\", false));\n+\t\t\n+\t\t// Set ordering so as to ensure a consistent ordering of the results on consecutive invocations\n+\t\tcriteria.addOrder(Order.asc(\"metadataSource\"));\n+\t\tcriteria.addOrder(Order.asc(\"metadataTermMappingId\"));\n+\t\t\n+\t\treturn criteria.list();\n+\t}\n+\t\n+\t@Override\n+\tpublic MetadataTermMapping getMetadataTermMapping(MetadataSource metadataSource, String metadataTermCode) {\n+\t\tCriteria criteria = sessionFactory.getCurrentSession().createCriteria(MetadataTermMapping.class);\n+\t\tcriteria.add(Restrictions.eq(\"metadataSource\", metadataSource));\n+\t\tcriteria.add(Restrictions.eq(\"code\", metadataTermCode));\n+\t\treturn (MetadataTermMapping) criteria.uniqueResult();","path":"api-common/src/main/java/org/openmrs/module/metadatamapping/api/db/hibernate/HibernateMetadataMappingDAO.java","position":126,"original_position":126,"commit_id":"c27b2c45b6da2759424da0a05e2da93947053d2c","original_commit_id":"c27b2c45b6da2759424da0a05e2da93947053d2c","user":{"login":"suniala","id":3613447,"avatar_url":"https://avatars.githubusercontent.com/u/3613447?v=3","gravatar_id":"","url":"https://api.github.com/users/suniala","html_url":"https://github.com/suniala","followers_url":"https://api.github.com/users/suniala/followers","following_url":"https://api.github.com/users/suniala/following{/other_user}","gists_url":"https://api.github.com/users/suniala/gists{/gist_id}","starred_url":"https://api.github.com/users/suniala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suniala/subscriptions","organizations_url":"https://api.github.com/users/suniala/orgs","repos_url":"https://api.github.com/users/suniala/repos","events_url":"https://api.github.com/users/suniala/events{/privacy}","received_events_url":"https://api.github.com/users/suniala/received_events","type":"User","site_admin":false},"body":"Ditto: https://issues.openmrs.org/browse/MAP-5","created_at":"2015-11-16T16:43:18Z","updated_at":"2015-11-16T16:43:18Z","html_url":"https://github.com/openmrs/openmrs-module-metadatamapping/pull/5#discussion_r44947667","pull_request_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/comments/44947667"},"html":{"href":"https://github.com/openmrs/openmrs-module-metadatamapping/pull/5#discussion_r44947667"},"pull_request":{"href":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/5","id":49723775,"html_url":"https://github.com/openmrs/openmrs-module-metadatamapping/pull/5","diff_url":"https://github.com/openmrs/openmrs-module-metadatamapping/pull/5.diff","patch_url":"https://github.com/openmrs/openmrs-module-metadatamapping/pull/5.patch","issue_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/issues/5","number":5,"state":"closed","locked":false,"title":"MAP-3","user":{"login":"suniala","id":3613447,"avatar_url":"https://avatars.githubusercontent.com/u/3613447?v=3","gravatar_id":"","url":"https://api.github.com/users/suniala","html_url":"https://github.com/suniala","followers_url":"https://api.github.com/users/suniala/followers","following_url":"https://api.github.com/users/suniala/following{/other_user}","gists_url":"https://api.github.com/users/suniala/gists{/gist_id}","starred_url":"https://api.github.com/users/suniala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suniala/subscriptions","organizations_url":"https://api.github.com/users/suniala/orgs","repos_url":"https://api.github.com/users/suniala/repos","events_url":"https://api.github.com/users/suniala/events{/privacy}","received_events_url":"https://api.github.com/users/suniala/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-04T18:06:12Z","updated_at":"2015-11-16T16:43:18Z","closed_at":"2015-11-16T11:59:51Z","merged_at":"2015-11-16T11:59:51Z","merge_commit_sha":"46097d687892cc5c9c7d33beb0b5b8f4e1b5a499","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/5/commits","review_comments_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/5/comments","review_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/issues/5/comments","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/statuses/c27b2c45b6da2759424da0a05e2da93947053d2c","head":{"label":"suniala:MAP-3","ref":"MAP-3","sha":"c27b2c45b6da2759424da0a05e2da93947053d2c","user":{"login":"suniala","id":3613447,"avatar_url":"https://avatars.githubusercontent.com/u/3613447?v=3","gravatar_id":"","url":"https://api.github.com/users/suniala","html_url":"https://github.com/suniala","followers_url":"https://api.github.com/users/suniala/followers","following_url":"https://api.github.com/users/suniala/following{/other_user}","gists_url":"https://api.github.com/users/suniala/gists{/gist_id}","starred_url":"https://api.github.com/users/suniala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suniala/subscriptions","organizations_url":"https://api.github.com/users/suniala/orgs","repos_url":"https://api.github.com/users/suniala/repos","events_url":"https://api.github.com/users/suniala/events{/privacy}","received_events_url":"https://api.github.com/users/suniala/received_events","type":"User","site_admin":false},"repo":{"id":42767475,"name":"openmrs-module-metadatamapping","full_name":"suniala/openmrs-module-metadatamapping","owner":{"login":"suniala","id":3613447,"avatar_url":"https://avatars.githubusercontent.com/u/3613447?v=3","gravatar_id":"","url":"https://api.github.com/users/suniala","html_url":"https://github.com/suniala","followers_url":"https://api.github.com/users/suniala/followers","following_url":"https://api.github.com/users/suniala/following{/other_user}","gists_url":"https://api.github.com/users/suniala/gists{/gist_id}","starred_url":"https://api.github.com/users/suniala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suniala/subscriptions","organizations_url":"https://api.github.com/users/suniala/orgs","repos_url":"https://api.github.com/users/suniala/repos","events_url":"https://api.github.com/users/suniala/events{/privacy}","received_events_url":"https://api.github.com/users/suniala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/suniala/openmrs-module-metadatamapping","description":"","fork":true,"url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping","forks_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/forks","keys_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/keys{/key_id}","collaborators_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/teams","hooks_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/hooks","issue_events_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/issues/events{/number}","events_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/events","assignees_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/assignees{/user}","branches_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/branches{/branch}","tags_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/tags","blobs_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/git/refs{/sha}","trees_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/git/trees{/sha}","statuses_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/statuses/{sha}","languages_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/languages","stargazers_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/stargazers","contributors_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/contributors","subscribers_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/subscribers","subscription_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/subscription","commits_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/commits{/sha}","git_commits_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/git/commits{/sha}","comments_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/comments{/number}","issue_comment_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/issues/comments{/number}","contents_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/contents/{+path}","compare_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/compare/{base}...{head}","merges_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/merges","archive_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/downloads","issues_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/issues{/number}","pulls_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/pulls{/number}","milestones_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/milestones{/number}","notifications_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/labels{/name}","releases_url":"https://api.github.com/repos/suniala/openmrs-module-metadatamapping/releases{/id}","created_at":"2015-09-19T09:34:51Z","updated_at":"2015-09-19T09:34:52Z","pushed_at":"2015-11-15T20:26:24Z","git_url":"git://github.com/suniala/openmrs-module-metadatamapping.git","ssh_url":"git@github.com:suniala/openmrs-module-metadatamapping.git","clone_url":"https://github.com/suniala/openmrs-module-metadatamapping.git","svn_url":"https://github.com/suniala/openmrs-module-metadatamapping","homepage":null,"size":347,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openmrs:master","ref":"master","sha":"ac80f47e5f0afa4470fcdc98f703df997638b770","user":{"login":"openmrs","id":860776,"avatar_url":"https://avatars.githubusercontent.com/u/860776?v=3","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"repo":{"id":5658583,"name":"openmrs-module-metadatamapping","full_name":"openmrs/openmrs-module-metadatamapping","owner":{"login":"openmrs","id":860776,"avatar_url":"https://avatars.githubusercontent.com/u/860776?v=3","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openmrs/openmrs-module-metadatamapping","description":"","fork":false,"url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping","forks_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/forks","keys_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/teams","hooks_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/hooks","issue_events_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/issues/events{/number}","events_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/events","assignees_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/assignees{/user}","branches_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/branches{/branch}","tags_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/tags","blobs_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/statuses/{sha}","languages_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/languages","stargazers_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/stargazers","contributors_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/contributors","subscribers_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/subscribers","subscription_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/subscription","commits_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/contents/{+path}","compare_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/merges","archive_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/downloads","issues_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/issues{/number}","pulls_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls{/number}","milestones_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/milestones{/number}","notifications_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/labels{/name}","releases_url":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/releases{/id}","created_at":"2012-09-03T12:27:14Z","updated_at":"2015-03-06T10:05:13Z","pushed_at":"2015-11-16T11:59:52Z","git_url":"git://github.com/openmrs/openmrs-module-metadatamapping.git","ssh_url":"git@github.com:openmrs/openmrs-module-metadatamapping.git","clone_url":"https://github.com/openmrs/openmrs-module-metadatamapping.git","svn_url":"https://github.com/openmrs/openmrs-module-metadatamapping","homepage":null,"size":396,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":0,"forks":12,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/5"},"html":{"href":"https://github.com/openmrs/openmrs-module-metadatamapping/pull/5"},"issue":{"href":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/issues/5"},"comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/openmrs/openmrs-module-metadatamapping/statuses/c27b2c45b6da2759424da0a05e2da93947053d2c"}}}}