curl -L -o fhir-resource-validator.skill "https://aiskillstore.io/v1/agent/skills/b043eead-bc1e-44a6-aed4-7444e366949d/download?platform=ClaudeCode"
{
"tool": "download_skill",
"arguments": {
"skill_id": "b043eead-bc1e-44a6-aed4-7444e366949d",
"platform": "ClaudeCode"
}
}
{
"mcpServers": {
"skill-store": {
"url": "https://aiskillstore.io/mcp/"
}
}
}
Offline FHIR R4 resource validation (Patient, Observation, Bundle, etc). Checks required fields, data types, and coding rules. Returns structured errors with fix hints. No live FHIR server required.
Compatible Platforms any
✅ No security risks found.
AI Review Stage
1. **권한 일치**: 스킬 메타데이터에 `network: false`, `filesystem: false`, `subprocess: false`로 선언되어 있으며, 코드 분석 결과 외부 네트워크 통신, 임의의 파일 시스템 접근 또는 서브프로세스 실행 코드가 발견되지 않았습니다. `main.py`에서 `os.path.dirname(os.path.abspath(__file__))`를 사용하여 로컬 모듈을 임포트하는 경로를 설정하고, `lib/validator.py`에서 `pkgutil.iter_modules(fr.__path__)`를 사용하여 `fhir.resources` 패키지 내부의 리소스 타입을 탐색하는 것은 스킬 자체의 기능 구현을 위한 내부적인 파일 시스템 접근으로, 임의의 파일 접근이나 데이터 유출과는 무관하며 샌드박스 환경에서 일반적으로 허용되는 범위 내의 동작입니다. 2. **악의적 목적 없음**: 코드에 데이터 탈취, 시스템 파괴, 난독화 등 악의적인 목적을 가진 코드는 발견되지 않았습니다. 코드는 명확하고 가독성이 높습니다. 3. **외부 통신 없음**: 선언된 바와 같이 외부 네트워크 통신을 시도하는 코드가 없습니다. 4. **데이터 수집/전송 없음**: 스킬은 표준 입력(stdin)을 통해 FHIR 리소스 JSON을 받아 유효성 검사를 수행하고, 그 결과를 표준 출력(stdout)으로 반환합니다. 어떠한 사용자 데이터도 무단으로 수집하거나 외부로 전송하지 않습니다. 5. **코드 품질**: 코드는 FHIR R4 리소스 유효성 검사라는 스킬의 목적에 부합하며, `fhir.resources` 및 `pydantic` 라이브러리를 활용하여 명확하고 안정적으로 구현되었습니다. 오류 처리도 적절하게 이루어지고 있습니다. 6. **정적 분석 결과**: 제공된 정적 분석 결과에서도 어떠한 위험 요소나 플래그가 발견되지 않았습니다.
Representative input/output examples for this skill. Agents can use these to understand how to invoke the skill and what output to expect.
Validate a Patient resource that has no 'name' — detects structural issues. (Data validation only, not medical advice.)
{
"action": "validate",
"resource": {
"birthDate": "1985-06-15",
"gender": "male",
"id": "ex-001",
"resourceType": "Patient"
}
}
{
"action": "validate",
"errors": [],
"resource_type": "Patient",
"valid": true
}
Validate an Observation that omits the required 'code' field. Returns structured error with fix hint. (Data validation only, not medical advice.)
{
"action": "validate",
"resource": {
"resourceType": "Observation",
"status": "final",
"subject": {
"reference": "Patient/ex-001"
}
}
}
{
"action": "validate",
"errors": [
{
"fix_hint": "Add the required field \u0027code\u0027 to the resource.",
"message": "Field required",
"path": "Observation.code",
"severity": "error"
}
],
"resource_type": "Observation",
"valid": false
}
Validate a Bundle resource of type 'collection'. Confirms required 'type' field is present. (Data validation only.)
{
"action": "validate",
"resource": {
"entry": [],
"resourceType": "Bundle",
"type": "collection"
}
}
{
"action": "validate",
"errors": [],
"resource_type": "Bundle",
"valid": true
}
Retrieve the field schema for Medication resource. Useful for prescription automation pipelines.
{
"action": "get_required_fields",
"resource_type": "Medication"
}
{
"action": "get_required_fields",
"fields": [
{
"name": "id",
"required": false,
"type": "\u003cclass \u0027str\u0027\u003e"
},
{
"name": "code",
"required": false,
"type": "Optional[CodeableConcept]"
}
],
"required_count": 0,
"resource_type": "Medication"
}
Passing an unrecognized resourceType returns UNKNOWN_RESOURCE_TYPE error with actionable hint.
{
"action": "validate",
"resource": {
"id": "bad-001",
"resourceType": "SuperPatient"
}
}
{
"action": "validate",
"errors": [
{
"fix_hint": "Use a valid FHIR R4 resource type such as Patient, Observation, Bundle, Condition, Medication, Encounter, DiagnosticReport.",
"message": "Unknown FHIR R4 resource type: \u0027SuperPatient\u0027.",
"path": "resourceType",
"severity": "error"
}
],
"resource_type": "SuperPatient",
"valid": false
}
Validate a Condition resource before transmitting to EHR system. Strict mode adds optional-field warnings. (Data validation only, not clinical assessment.)
{
"action": "validate",
"resource": {
"clinicalStatus": {
"coding": [
{
"code": "active",
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical"
}
]
},
"code": {
"coding": [
{
"code": "44054006",
"display": "Type 2 diabetes mellitus",
"system": "http://snomed.info/sct"
}
]
},
"resourceType": "Condition",
"subject": {
"reference": "Patient/ex-001"
}
},
"strict": true
}
{
"action": "validate",
"errors": [],
"resource_type": "Condition",
"valid": true,
"warnings": [
{
"fix_hint": "Consider populating \u0027category\u0027 for richer FHIR compliance.",
"message": "Optional field \u0027category\u0027 is absent.",
"path": "Condition.category",
"severity": "warning"
}
]
}
List all FHIR R4 resource types supported by the validator.
{
"action": "list_resource_types"
}
{
"action": "list_resource_types",
"count": 74,
"resource_types": [
"Account",
"Bundle",
"Condition",
"Medication",
"Observation",
"Patient"
]
}
All examples are also available via the agent API:
/v1/agent/skills/b043eead-bc1e-44a6-aed4-7444e366949d/schema
No reviews yet. Be the first to leave one!