fvs-client 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
fvs_client/__init__.py ADDED
@@ -0,0 +1,134 @@
1
+ """Typed Python SDK (sync + async) for the FHIR Validation Service HTTP API.
2
+
3
+ Quick start::
4
+
5
+ from fvs_client import Client
6
+
7
+ with Client("https://fvs.example.org", api_key="…") as fvs:
8
+ result = fvs.validate({"resourceType": "Patient"}, fhir_version="R4")
9
+ print(result.valid, [i.message for i in result.errors])
10
+
11
+ See https://github.com/nazrulworld/fhir-validation-service for the service itself.
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ try:
17
+ from fvs_client._version import __version__
18
+ except ImportError: # pragma: no cover - only when running from a source tree without a build
19
+ __version__ = "0.0.0"
20
+
21
+ from fvs_client._async.client import AsyncClient
22
+ from fvs_client._sync.client import Client
23
+ from fvs_client.errors import (
24
+ APIError,
25
+ AuthenticationError,
26
+ BadRequestError,
27
+ ConflictError,
28
+ DependencyConflictError,
29
+ FVSConnectionError,
30
+ FVSError,
31
+ FVSTimeoutError,
32
+ InputError,
33
+ InvalidResourceError,
34
+ NotFoundError,
35
+ PermissionDeniedError,
36
+ RateLimitError,
37
+ ServerError,
38
+ ServiceUnavailableError,
39
+ TransportError,
40
+ UnknownProfileError,
41
+ )
42
+ from fvs_client.models import (
43
+ AccessChange,
44
+ ContextAccessResult,
45
+ ExcludeResult,
46
+ FhirVersion,
47
+ HealthReport,
48
+ HealthStatus,
49
+ IgPackageResult,
50
+ IgRef,
51
+ IncludedIg,
52
+ IncludeResult,
53
+ LivenessReport,
54
+ OperationOutcomeResult,
55
+ PackageAccessResult,
56
+ PackageDependencies,
57
+ PackageFiles,
58
+ Problem,
59
+ ProblemType,
60
+ RateLimitInfo,
61
+ RateLimitScope,
62
+ RawResponse,
63
+ ReadinessReport,
64
+ ResponseMeta,
65
+ ResultFormat,
66
+ RetryConfig,
67
+ Severity,
68
+ TerminologyMode,
69
+ TerminologySettings,
70
+ TxSource,
71
+ ValidationContextInfo,
72
+ ValidationIssue,
73
+ ValidationOptions,
74
+ ValidationResult,
75
+ )
76
+
77
+ SUPPORTED_API = "1.0"
78
+ """FHIR Validation Service API version (major.minor) this release supports."""
79
+
80
+ __all__ = [
81
+ "SUPPORTED_API",
82
+ "APIError",
83
+ "AccessChange",
84
+ "AsyncClient",
85
+ "AuthenticationError",
86
+ "BadRequestError",
87
+ "Client",
88
+ "ConflictError",
89
+ "ContextAccessResult",
90
+ "DependencyConflictError",
91
+ "ExcludeResult",
92
+ "FVSConnectionError",
93
+ "FVSError",
94
+ "FVSTimeoutError",
95
+ "FhirVersion",
96
+ "HealthReport",
97
+ "HealthStatus",
98
+ "IgPackageResult",
99
+ "IgRef",
100
+ "IncludeResult",
101
+ "IncludedIg",
102
+ "InputError",
103
+ "InvalidResourceError",
104
+ "LivenessReport",
105
+ "NotFoundError",
106
+ "OperationOutcomeResult",
107
+ "PackageAccessResult",
108
+ "PackageDependencies",
109
+ "PackageFiles",
110
+ "PermissionDeniedError",
111
+ "Problem",
112
+ "ProblemType",
113
+ "RateLimitError",
114
+ "RateLimitInfo",
115
+ "RateLimitScope",
116
+ "RawResponse",
117
+ "ReadinessReport",
118
+ "ResponseMeta",
119
+ "ResultFormat",
120
+ "RetryConfig",
121
+ "ServerError",
122
+ "ServiceUnavailableError",
123
+ "Severity",
124
+ "TerminologyMode",
125
+ "TerminologySettings",
126
+ "TransportError",
127
+ "TxSource",
128
+ "UnknownProfileError",
129
+ "ValidationContextInfo",
130
+ "ValidationIssue",
131
+ "ValidationOptions",
132
+ "ValidationResult",
133
+ "__version__",
134
+ ]
@@ -0,0 +1 @@
1
+ """Asynchronous client implementation (private)."""