forked from inferno-framework/client-fhir-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCapabilityStatement-db.rb
More file actions
40 lines (33 loc) · 895 Bytes
/
CapabilityStatement-db.rb
File metadata and controls
40 lines (33 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require 'dm-core'
require 'yaml'
opts = YAML.load_file(File.join(File.dirname(__FILE__), 'proxy.yml'))
DataMapper.setup :default, "sqlite://#{File.dirname(__FILE__)}/" + opts[:db]
class Interaction
include DataMapper::Resource
property :id, Serial
property :type, String
property :url, String
property :valueCode, String
property :code, String
end
class SearchParam
include DataMapper::Resource
property :id, Serial
property :type, String
property :url, String
property :valueCode, String
property :name, String
property :definition, String
property :stype, String
end
class SearchCriteria
include DataMapper::Resource
property :id, Serial
property :res_type, String
property :profiles, String
property :s_searches, String
property :c_searches, String
property :includes, String
property :revincludes, String
property :opterations, String
end