lifen_fhir 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ff83240349a82a1baf58f72f9e8da8e88fd5578
4
- data.tar.gz: d133e7733803dfb73aef7473840d093969e9d701
3
+ metadata.gz: b4a0ed993d46baf68edddbda17ef20c4140ddf0d
4
+ data.tar.gz: 7b45c21f3d3a4b98518b36a2550d99ecd538c196
5
5
  SHA512:
6
- metadata.gz: 31aa76ec4ebf4b495ffdec8569c53221c95b32fc961d1c6a09655369526aca76ae593af06b55cfff7d781c8c2508a5e7aaa1a7ebf7dddd14d50a633700d574fd
7
- data.tar.gz: 73f4eaf5948b53a131fd0d470cc9e20a2065d549019897e9b9a6e8ce21ecbaf21ece57adb4ea34193c42e850b713fd22fd854ef26153cdaf95abb45c6d4f0285
6
+ metadata.gz: 785f0ce96c4bd01f49958de43f553162619f41ec6fba062fbad1426e8737d743eba9c6b7bff2d07cd684dab13591fd8693d63f49700e5a58260b32c0a1ab705d
7
+ data.tar.gz: 1949b2369f4c939fb7979d55635ed4142a4c45bac6bd26e96988ffb95e2dee573c17ca49b0dca96b8d0b913a0f3e99de77a2b54331caa1179d85b2a7e7ef231b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.4.1
2
+ -----
3
+
4
+ - Fixed incorrect FHIR payload for Patient
5
+
1
6
  0.4.0
2
7
  -----
3
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lifen_fhir (0.3.0)
4
+ lifen_fhir (0.4.1)
5
5
  faraday (>= 0.9)
6
6
  inflecto
7
7
  virtus (>= 1.0)
@@ -37,12 +37,8 @@ module LifenFhir
37
37
  resourceType: "Patient",
38
38
  name: [
39
39
  {
40
- family: [
41
- last_name
42
- ],
43
- given: [
44
- first_name
45
- ]
40
+ family: last_name,
41
+ given: first_name
46
42
  }
47
43
  ],
48
44
  birthDate: birth_date.to_s
@@ -1,3 +1,3 @@
1
1
  module LifenFhir
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://develop.lifen.fr/fhir/CommunicationRequest
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"resourceType":"CommunicationRequest","sender":[{"reference":"Practitioner/valid-sender-uuid"}],"recipient":[{"reference":"Practitioner/valid-recipient-uuid-1"},{"reference":"Practitioner/valid-recipient-uuid-2"}],"contained":[{"id":"patient","resourceType":"Patient","name":[{"family":["Dupond"],"given":["Jean"]}],"birthDate":"2000-01-01"}],"medium":[{"coding":[{"id":"invalid-medium-uuid"}]},{"coding":[{"id":"valid-medium-uuid-2"}]}],"category":[{"coding":[{"system":"http://honestica.com/fhir/communication/category","code":"MEDICAL_REPORT"}]}],"payload":[{"contentReference":{"reference":"Binary/valid-binary-uuid"}}],"subject":[{"reference":"patient"}]}'
8
+ string: '{"resourceType":"CommunicationRequest","sender":[{"reference":"Practitioner/valid-sender-uuid"}],"recipient":[{"reference":"Practitioner/valid-recipient-uuid-1"},{"reference":"Practitioner/valid-recipient-uuid-2"}],"contained":[{"id":"patient","resourceType":"Patient","name":[{"family":"Dupond","given":["Jean"]}],"birthDate":"2000-01-01"}],"medium":[{"coding":[{"id":"invalid-medium-uuid"}]},{"coding":[{"id":"valid-medium-uuid-2"}]}],"category":[{"coding":[{"system":"http://honestica.com/fhir/communication/category","code":"MEDICAL_REPORT"}]}],"payload":[{"contentReference":{"reference":"Binary/valid-binary-uuid"}}],"subject":[{"reference":"patient"}]}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - Faraday v0.11.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://develop.lifen.fr/fhir/CommunicationRequest
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"resourceType":"CommunicationRequest","sender":[{"reference":"Practitioner/valid-sender-uuid"}],"recipient":[{"reference":"Patient/valid-patient-id"}],"contained":[{"id":"patient","resourceType":"Patient","name":[{"family":["Dupond"],"given":[["Jean"]]}],"birthDate":"2000-01-01"}],"medium":[],"category":[{"coding":[{"system":"http://honestica.com/fhir/communication/category","code":"MEDICAL_REPORT"}]}],"payload":[{"contentReference":{"reference":"Binary/valid-binary-uuid"}}],"subject":[{"reference":"patient"}]}'
8
+ string: '{"resourceType":"CommunicationRequest","sender":[{"reference":"Practitioner/valid-sender-uuid"}],"recipient":[{"reference":"Patient/valid-patient-id"}],"contained":[],"medium":[],"category":[{"coding":[{"system":"http://honestica.com/fhir/communication/category","code":"MEDICAL_REPORT"}]}],"payload":[{"contentReference":{"reference":"Binary/valid-binary-uuid"}}]}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - Faraday v0.12.1
@@ -37,19 +37,21 @@ http_interactions:
37
37
  X-Powered-By:
38
38
  - HAPI FHIR 2.4 REST Server (FHIR Server; FHIR 3.0.1/DSTU3)
39
39
  Location:
40
- - http://rc.lifen.fr:10133/fhir/OperationOutcome/22d87145-79f3-4a06-9c4e-6dde586a865d
40
+ - https://develop.lifen.fr/fhir/OperationOutcome/bbab38b1-c865-4b0d-aa34-2f1142966fe9
41
41
  Content-Type:
42
42
  - application/json+fhir;charset=UTF-8
43
43
  Transfer-Encoding:
44
44
  - chunked
45
45
  Date:
46
- - Tue, 30 May 2017 10:04:04 GMT
46
+ - Thu, 01 Jun 2017 09:11:48 GMT
47
+ Access-Control-Allow-Credentials:
48
+ - 'true'
47
49
  body:
48
50
  encoding: UTF-8
49
51
  string: |-
50
52
  {
51
53
  "resourceType": "OperationOutcome",
52
- "id": "22d87145-79f3-4a06-9c4e-6dde586a865d",
54
+ "id": "bbab38b1-c865-4b0d-aa34-2f1142966fe9",
53
55
  "issue": [
54
56
  {
55
57
  "severity": "information",
@@ -58,5 +60,5 @@ http_interactions:
58
60
  ]
59
61
  }
60
62
  http_version:
61
- recorded_at: Tue, 30 May 2017 10:03:47 GMT
63
+ recorded_at: Thu, 01 Jun 2017 09:11:26 GMT
62
64
  recorded_with: VCR 3.0.3