Skip to content

Commit

Permalink
Bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpotter44 committed Jun 26, 2024
1 parent d5d1d12 commit be83f0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ Implementing an underlying matching service should be fairly simple: create a ne
```typescript
import ClinicalTrialMatchingService, {
Bundle,
QueryParameters,
ResearchStudy,
SearchSet
} from 'clinical-trial-matching-service';
// Import the actual implementation which is outside the scope
import findMatchingServices from './matching-implementation';

function customMatchingFunction(patientData: Bundle): Promise<SearchSet> {
function customMatchingFunction(patientData: Bundle, parameters: QueryParameters): Promise<SearchSet> {
return new Promise((resolve, reject) => {
// Code to do the searching:
const results: ResearchStudy[] = findMatchingServices(patientData);
Expand All @@ -28,7 +29,7 @@ function customMatchingFunction(patientData: Bundle): Promise<SearchSet> {
}

const service = new ClinicalTrialMatchingService(customMatchingFunction);
service.listen().catch(err => {
service.listen().catch((err) => {
// Handle listen failing
console.error('Server failed to start:');
console.error(err);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clinical-trial-matching-service",
"version": "0.1.1",
"version": "0.1.2",
"description": "Provides a core library for interacting with the clinical-trial-matching-engine",
"homepage": "https://github.com/mcode/clinical-trial-matching-service",
"bugs": "https://github.com/mcode/clinical-trial-matching-service/issues",
Expand Down

0 comments on commit be83f0e

Please sign in to comment.