Skip to content

Commit

Permalink
update a version and delete one
Browse files Browse the repository at this point in the history
  • Loading branch information
calmacx committed Feb 10, 2025
1 parent a82aab5 commit ef88bb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
15 changes: 2 additions & 13 deletions files/mdw/list.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
{
"total": 3,
"total": 2,
"items": [
{
"persistentId": "242c84be-a866-ac0c-0000-000000001bbd",
"name": "Kent Integrated Dataset - GP Consultations",
"description": "Primary Care Consultations information, recording the intereactions that patients with medical staff at GP practices",
"version": "1.0.0",
"version": "1.1.0",
"self": "https://nhse-ics-kms-uat5-ui.metadata.works/api/federation/dataset/7101",
"source": "",
"@schema": "https://hdruk.github.io/schemata/schema/dataset/2.1.0/dataset.schema.json",
"issued": "2024-03-09T23:22:05+00:00",
"modified": "2024-07-03T09:54:34+00:00"
},
{
"persistentId": "242c84be-a866-ac0c-0000-000000001bbe",
"name": "Kent Integrated Dataset - GP Event",
"description": "Primary Care Event information, recording the intereactions that patients with medical staff at GP practices and some read-coded numeric data",
"version": "1.0.0",
"self": "https://nhse-ics-kms-uat5-ui.metadata.works/api/federation/dataset/7102",
"source": "",
"@schema": "https://hdruk.github.io/schemata/schema/dataset/2.1.0/dataset.schema.json",
"issued": "2024-03-09T23:22:07+00:00",
"modified": "2024-07-03T09:55:18+00:00"
},
{
"persistentId": "242c84be-a866-ac0c-0000-000000004c85",
"name": "Sample Dataset",
Expand Down
4 changes: 2 additions & 2 deletions src/api/v1/services/dataset.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export default class DatasetService {
public async getExemplarDatasets(q: string, offset: number, limit: number): Promise<dataset[]> {
const datasets = [];

const file = fs.readFileSync('./files/exemplar/list.json', 'utf-8');
const file = fs.readFileSync('./files/mdw/list.json', 'utf-8');
const parsedJSON = JSON.parse(file);
return parsedJSON;
}

public async getExemplarDataset(pid: string) {
const file = fs.readFileSync(`./files/exemplar/${pid}.json`, 'utf-8');
const file = fs.readFileSync(`./files/mdw/${pid}.json`, 'utf-8');
const parsedJSON = JSON.parse(file);

return parsedJSON;
Expand Down

0 comments on commit ef88bb0

Please sign in to comment.