XYS.CDR.Contract 2.3.3

dotnet add package XYS.CDR.Contract --version 2.3.3
                    
NuGet\Install-Package XYS.CDR.Contract -Version 2.3.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XYS.CDR.Contract" Version="2.3.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XYS.CDR.Contract" Version="2.3.3" />
                    
Directory.Packages.props
<PackageReference Include="XYS.CDR.Contract" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add XYS.CDR.Contract --version 2.3.3
                    
#r "nuget: XYS.CDR.Contract, 2.3.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package XYS.CDR.Contract@2.3.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=XYS.CDR.Contract&version=2.3.3
                    
Install as a Cake Addin
#tool nuget:?package=XYS.CDR.Contract&version=2.3.3
                    
Install as a Cake Tool

XYS.CDR.Contract

临床数据仓库(CDR)契约接口定义。集中定义 CDR 上下游系统交换的实体,供 LIS/PACS/EMR 等各业务模块共享同一份数据形状,避免各处重复声明与漂移。

契约域

目录 覆盖内容 主要类型
Lab/ 检验申请与报告 LabReq(申请单+患者+样本)、LabRepInfo(报告头)、LabRepItem(普通检验项)、LabRepItem_Spec(特检 JSON 项:NGS/HLA/BMB/STR/KIR/HLA-LOSS)
Exam/ 检查申请与报告 BaseExamData、ExamReq、ExamReport
EMR/ 电子病历 EmrCatalog、EmrItem、EmrRecord

约定

  • 命名空间:统一 XYS.CDR.Contract(子目录不再单独分命名空间)。
  • 时间字段:新增契约一律用 DateTime?,不再用 string,避免各处重复解析与格式漂移;早期用 string 的字段在维护时同步迁移。
  • 编码字段:机构 / 科室 / 检验项 / LOINC 等编码保持 string,兼容外部系统原样透传。
  • 契约为纯数据 POCO,不引入行为方法或依赖项目内的其他工具类。

版本历史

版本 变更
2.3.2 LabReport.cs 重写为 LabRepInfo / LabRepItem / LabRepItem_Spec 三类;LabReq.cs 8 个日期字段(BirthDate/ReqTime/CollectTime/InceptTime/CheckerTime/SenderTime/AcceptTime/InLabTime)由 string 迁移为 DateTime?。
2.3.1 前版本,保留 string 型日期与占位 LabReport 空类。

目标框架

net8.0;net462;netcoreapp3.1;netstandard2.0;netstandard2.1

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • XYS (>= 2.3.1)
  • .NETFramework 4.6.2

    • XYS (>= 2.3.1)
  • .NETStandard 2.0

    • XYS (>= 2.3.1)
  • .NETStandard 2.1

    • XYS (>= 2.3.1)
  • net8.0

    • XYS (>= 2.3.1)

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.3 122 7/16/2026
2.3.2 108 7/15/2026
2.3.1 111 7/15/2026