本文整理汇总了TypeScript中eds-common-js.linq函数的典型用法代码示例。如果您正苦于以下问题:TypeScript linq函数的具体用法?TypeScript linq怎么用?TypeScript linq使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了linq函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: getName
getName() : string {
let distinctOrgs = linq(this.episodes)
.Select(e => e.managingOrganisation.odsCode)
.Distinct()
.ToArray();
if (distinctOrgs.length == 1)
return this.episodes[0].managingOrganisation.name;
else
return distinctOrgs.length.toString() + ' organisations';
}
示例2: getPeriodEnd
getPeriodEnd() : UIDate {
return linq(this.episodes)
.Select(e => e.period.end)
.Max();
}
示例3: getPastMedication
public getPastMedication(): UIMedicationStatement[] {
return linq(this.medication)
.Where(t => t.status == 'Completed')
.OrderByDescending(t => this.getMedicationOrderingDate(t))
.ToArray();
}
示例4: getPeriodStart
getPeriodStart() : UIDate {
return linq(this.episodes)
.Select(e => e.period.start)
.Min();
}
示例5: getRepeatMedication
public getRepeatMedication(): UIMedicationStatement[] {
return linq(this.medication)
.Where(t => t.status != 'Completed' && t.authorisationType.code != 'acute')
.OrderByDescending(t => this.getMedicationOrderingDate(t))
.ToArray();
}
示例6: getPastProblems
public getPastProblems(): UIProblem[] {
return linq(this.problems)
.Where(t => t.hasAbated)
.ToArray();
}
示例7: getActiveProblems
public getActiveProblems(): UIProblem[] {
return linq(this.problems)
.Where(t => (!t.hasAbated))
.ToArray();
}
示例8: getTests
public getTests(): UITest[] {
return linq(this.testRequests as Array<UITest>)
.Concat(linq(this.specimens as Array<UITest>))
.ToArray();
}
示例9: getInvestigations
public getInvestigations(): UIInvestigation[] {
return linq(this.observations as Array<UIInvestigation>)
.Concat(linq(this.diagnosticReports as Array<UIInvestigation>))
.Where(t => t.related && t.related.filter((r) => r.type === 'has-member').length > 0)
.ToArray();
}