Skip to content

Commit f86e454

Browse files
authored
Merge pull request #15 from JuliaHealth/dpa/fhir
Add the beginning of a FHIR interface
2 parents 97e6aca + 3c3d227 commit f86e454

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "HealthBase"
22
uuid = "94e1309d-ccf4-42de-905f-515f1d7b1cae"
33
authors = ["JuliaHealth"]
4-
version = "0.1.1"
4+
version = "0.1.2"
55

66
[compat]
77
julia = "1.3"

src/HealthBase.jl

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,57 @@
11
module HealthBase
22

3+
"""
4+
AbstractHealthServer
5+
"""
6+
abstract type AbstractHealthServer
7+
end
8+
9+
"""
10+
AbstractFHIRServer <: AbstractHealthServer
11+
"""
12+
abstract type AbstractFHIRServer <: AbstractHealthServer
13+
end
14+
15+
"""
16+
AbstractHealthClient
17+
18+
An `AbstractHealthClient` connects to a server.
19+
20+
Generally, when constructing an instance of an `AbstractHealthClient`, you
21+
will pass the URL of the server's endpoint as an argument.
22+
23+
Note: A single `AbstractHealthClient` connects to a single server. If you
24+
want to connect to multiple servers simultaneously, you will need to
25+
construct a different `AbstractHealthClient` for each server.
26+
"""
27+
abstract type AbstractHealthClient
28+
end
29+
30+
"""
31+
AbstractFHIRClient <: AbstractHealthClient
32+
33+
An `AbstractFHIRClient` connects to a FHIR server.
34+
35+
Generally, when constructing an instance of an `AbstractFHIRClient`, you will
36+
pass the URL of the server's endpoint as an argument.
37+
38+
Note: A single `AbstractFHIRClient` connects to a single FHIR server. If you
39+
want to connect to multiple FHIR servers simultaneously, you will need to
40+
construct a different `AbstractFHIRClient` for each FHIR server.
41+
"""
42+
abstract type AbstractFHIRClient <: AbstractHealthClient
43+
end
44+
45+
"""
46+
AbstractHealthInformationModel
47+
"""
48+
abstract type AbstractHealthInformationModel
49+
end
50+
51+
"""
52+
AbstractFHIRModel <: AbstractHealthInformationModel
53+
"""
54+
abstract type AbstractFHIRModel <: AbstractHealthInformationModel
55+
end
56+
357
end # module

0 commit comments

Comments
 (0)