File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @awell-health/awell-score" ,
3- "version" : " 1.0.18 " ,
3+ "version" : " 1.0.19 " ,
44 "description" : " Library of Medical Score functions" ,
55 "packageManager" : " yarn@4.6.0" ,
66 "main" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ import { oas } from './oas/oas'
8282import { ompq , ompq_10 } from './orebro'
8383import { oswestry } from './oswestry/oswestry'
8484import { oxford_hip_score } from './oxford_hip_score/oxford_hip_score'
85+ import { oxford_hip_score_inverted } from './oxford_hip_score/oxford_hip_score_inverted'
8586import { oxford_knee_score } from './oxford_knee_score/oxford_knee_score'
8687import { packyears } from './packyears/packyears'
8788import { panss_6 } from './panss_6/panss_6'
@@ -226,6 +227,7 @@ export const ScoreLibrary = createScoreLibrary({
226227 ompq_short_form : ompq_10 ,
227228 oswestry,
228229 oxford_hip_score,
230+ oxford_hip_score_inverted,
229231 oxford_knee_score,
230232 packyears,
231233 panss_6,
Original file line number Diff line number Diff line change 1+ import { sum } from 'lodash'
2+ import { ScoreType } from '../../types'
3+ import { OHS_OUTPUT , OHS_INPUTS } from './definition'
4+
5+ export const oxford_hip_score_inverted : ScoreType < typeof OHS_INPUTS , typeof OHS_OUTPUT > =
6+ {
7+ name : 'Inverted Oxford Hip Score (48 minus OHS)' ,
8+ readmeLocation : __dirname ,
9+ inputSchema : OHS_INPUTS ,
10+ outputSchema : OHS_OUTPUT ,
11+ calculate : ( { data } ) => {
12+ const score = 48 - sum ( Object . values ( data ) )
13+
14+ return {
15+ OXFORD_HIP_SCORE : score ,
16+ }
17+ } ,
18+ }
You can’t perform that action at this time.
0 commit comments