Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #67 from HospitalRun/json-schema
Browse files Browse the repository at this point in the history
feat: add name type and build steps for generating types from json-schema
  • Loading branch information
matteovivona authored Sep 9, 2020
2 parents ab77ab1 + 56f73a1 commit bd4d326
Show file tree
Hide file tree
Showing 27 changed files with 27 additions and 487 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
"scripts": {
"commit": "npx git-cz",
"test": "echo \"Error: no test specified\" && exit 0",
"build": "npm run clean && tsc -p ./tsconfig.json",
"build": "npm run clean && npx json-schema-to-typescript -i src/schemas/**/*.json -o dist/types",
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
"build:designs": "rimraf dist/design-documents && hospitalrun ddoc build src/design-documents/v1 -c src/design-documents/tsconfig.json",
"clean": "rimraf dist",
"update": "npx npm-check -u",
"prepare": "npm run build",
Expand Down Expand Up @@ -80,7 +79,6 @@
}
},
"dependencies": {
"@sinclair/typebox": "~0.10.1",
"eslint-plugin-react-hooks": "~4.1.0",
"rimraf": "~3.0.2"
}
Expand Down
19 changes: 0 additions & 19 deletions src/entities/allergy.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/entities/appointment.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/entities/base.ts

This file was deleted.

21 changes: 0 additions & 21 deletions src/entities/diagnosis.ts

This file was deleted.

77 changes: 0 additions & 77 deletions src/entities/diagnostic-report.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/entities/elements/address.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/entities/elements/appointment-type.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/entities/elements/archived.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/entities/elements/blood-group.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/entities/elements/contact.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/entities/elements/diagnosis-type.ts

This file was deleted.

22 changes: 0 additions & 22 deletions src/entities/elements/diagnostic-report-status.ts

This file was deleted.

53 changes: 0 additions & 53 deletions src/entities/elements/diagnostic-service-codes.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/entities/elements/human-name.ts

This file was deleted.

24 changes: 0 additions & 24 deletions src/entities/elements/icd-code.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/entities/elements/patient-type.ts

This file was deleted.

Loading

0 comments on commit bd4d326

Please sign in to comment.