Loading...
Loading...
Compare original and translation side by side
/fhir-hl7-validator [command] [target] [options]/fhir-hl7-validator [命令] [目标] [选项]validate-fhir <file>validate-hl7 <file>validate-cda <file>parse-fhir <file>parse-hl7 <file>check-references <file>check-terminology <file>bulk-validate <directory>report <output-format>validate-fhir <file>validate-hl7 <file>validate-cda <file>parse-fhir <file>parse-hl7 <file>check-references <file>check-terminology <file>bulk-validate <directory>report <output-format>--version <ver>--variant <name>--strict--terminology-check--output <file>--format <type>--version <ver>--variant <name>--strict--terminology-check--output <file>--format <type>{
"resourceType": "Patient",
"id": "example",
"identifier": [
{
"system": "http://example.org/medical-record",
"value": "12345"
}
],
"name": [
{
"use": "official",
"given": ["Jane"],
"family": "Doe"
}
],
"birthDate": "1990-01-15",
"address": [
{
"use": "home",
"line": ["123 Main St"],
"city": "Springfield",
"state": "IL",
"postalCode": "62701"
}
]
}{
"resourceType": "Patient",
"id": "example",
"identifier": [
{
"system": "http://example.org/medical-record",
"value": "12345"
}
],
"name": [
{
"use": "official",
"given": ["Jane"],
"family": "Doe"
}
],
"birthDate": "1990-01-15",
"address": [
{
"use": "home",
"line": ["123 Main St"],
"city": "Springfield",
"state": "IL",
"postalCode": "62701"
}
]
}{
"resourceType": "Observation",
"id": "example",
"status": "final",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "39156-5",
"display": "BMI"
}
]
},
"subject": {
"reference": "Patient/example"
},
"valueQuantity": {
"value": 24.5,
"unit": "kg/m2",
"system": "http://unitsofmeasure.org",
"code": "kg/m2"
}
}{
"resourceType": "Observation",
"id": "example",
"status": "final",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "39156-5",
"display": "BMI"
}
]
},
"subject": {
"reference": "Patient/example"
},
"valueQuantity": {
"value": 24.5,
"unit": "kg/m2",
"system": "http://unitsofmeasure.org",
"code": "kg/m2"
}
}MSH|^~\&|SendingApp|SendingFac|ReceivingApp|ReceivingFac|202502071350||ADT^A01|123456|P|2.5
PID^^^12345||JaneDoe||19900115|F|||123 Main St^^Springfield^IL^62701|||||||S
PV1||I|ICU^FL2^BED01|||||||||||||||||||||||||||MSH|^~\&|SendingApp|SendingFac|ReceivingApp|ReceivingFac|202502071350||ADT^A01|123456|P|2.5
PID^^^12345||JaneDoe||19900115|F|||123 Main St^^Springfield^IL^62701|||||||||S
PV1||I|ICU^FL2^BED01|||||||||||||||||||||||||||| Error | Cause | Solution |
|---|---|---|
| Missing required element | Element marked | Add the required element |
| Invalid data type | Value doesn't match specified type | Convert to correct type (e.g., date to YYYY-MM-DD) |
| Unknown code system | Code not in specified value set | Use code from official code system (SNOMED CT, LOINC) |
| Broken reference | Reference target doesn't exist | Verify reference path and ID |
| Invalid identifier format | ID format doesn't match pattern | Follow system-specific identifier format |
| 错误类型 | 原因 | 解决方案 |
|---|---|---|
| 必填元素缺失 | 标记为 | 添加必填元素 |
| 数据类型无效 | 值与指定类型不匹配 | 转换为正确类型(例如:日期格式改为YYYY-MM-DD) |
| 未知编码系统 | 编码不在指定值集中 | 使用官方编码系统中的编码(SNOMED CT、LOINC) |
| 引用断裂 | 引用目标不存在 | 验证引用路径和ID |
| 标识符格式无效 | ID格式不符合规则 | 遵循系统特定的标识符格式 |