mirah-ruby 0.2.0 → 0.3.0

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
  SHA256:
3
- metadata.gz: 84889ff31445ea17565ffab2d6d20539e6ee29330d6b2c7962ac0909a45f6c14
4
- data.tar.gz: 8269903ad8c33be8de855d28ee9c8369cc6c3347abc84695df04fa0530558c48
3
+ metadata.gz: 3d6112c2bab9f017614f4ff32fec8d1a79bd53d3099f68a86679563dc6aae644
4
+ data.tar.gz: 49592ec2080f7af06bdb559f4f9d10cb3ee0acbbc12f9184a4a53544ac3fa429
5
5
  SHA512:
6
- metadata.gz: 2d6ff8c5c1f39d9d994909bd29f9a47c51a8d497961076f1baf0ecf9ce39eca15039f062e183bd3a5699e37676210f994b594afe6dd0ed3ca7637a6dfcaf0606
7
- data.tar.gz: 7315d6bf30af466e82a1375ad3545f83913a03495442ef3a959ba2f0035fe3e309ec99e73cbb562cdcf68e51c4b1ae19a1e8f39b58c16e5ba343ccf698a59384
6
+ metadata.gz: a913e4a74bea01d36cdd9b9a1045ba0af9872afd2caf75cbbaad6b251cc6d2f1466d134af9c1e97424dbbdb1a5f92bb9b7176a3d98a5fc9b41323cdb8a9c2119
7
+ data.tar.gz: 8d3743ef319ccdd90200993c78a201fa3003d07a28319c0666a5276a5cae0f4f2716dc4e691f985f4c8030edba1c87033f47fb639537501dfc5c17e53a0b4f3a
data/.circleci/config.yml CHANGED
@@ -5,15 +5,13 @@ orbs:
5
5
  jobs:
6
6
  test24:
7
7
  docker:
8
- - image: circleci/ruby:2.4.6-stretch-node
8
+ - image: cimg/ruby:2.4
9
9
  executor: ruby/default
10
10
  steps:
11
11
  - checkout
12
12
  - run:
13
13
  name: Configure Bundler
14
14
  command: |
15
- echo 'export BUNDLER_VERSION=1.16.6' >> $BASH_ENV
16
- source $BASH_ENV
17
15
  gem install bundler
18
16
  - run:
19
17
  name: Which bundler?
@@ -24,15 +22,13 @@ jobs:
24
22
  command: bundle exec rake spec
25
23
  test25:
26
24
  docker:
27
- - image: circleci/ruby:2.5-stretch-node
25
+ - image: cimg/ruby:2.5
28
26
  executor: ruby/default
29
27
  steps:
30
28
  - checkout
31
29
  - run:
32
30
  name: Configure Bundler
33
31
  command: |
34
- echo 'export BUNDLER_VERSION=1.16.6' >> $BASH_ENV
35
- source $BASH_ENV
36
32
  gem install bundler
37
33
  - run:
38
34
  name: Which bundler?
@@ -43,7 +39,7 @@ jobs:
43
39
  command: bundle exec rake spec
44
40
  test26:
45
41
  docker:
46
- - image: circleci/ruby:2.6-stretch-node
42
+ - image: cimg/ruby:2.6
47
43
  executor: ruby/default
48
44
  steps:
49
45
  - checkout
@@ -62,7 +58,26 @@ jobs:
62
58
  command: bundle exec rake spec
63
59
  test27:
64
60
  docker:
65
- - image: circleci/ruby:2.7-node
61
+ - image: cimg/ruby:2.7
62
+ executor: ruby/default
63
+ steps:
64
+ - checkout
65
+ - run:
66
+ name: Configure Bundler
67
+ command: |
68
+ echo 'export BUNDLER_VERSION=2.1.4' >> $BASH_ENV
69
+ source $BASH_ENV
70
+ gem install bundler
71
+ - run:
72
+ name: Which bundler?
73
+ command: bundle -v
74
+ - ruby/bundle-install
75
+ - run:
76
+ name: Tests
77
+ command: bundle exec rake spec
78
+ test31:
79
+ docker:
80
+ - image: cimg/ruby:3.1.2
66
81
  executor: ruby/default
67
82
  steps:
68
83
  - checkout
@@ -81,6 +96,7 @@ jobs:
81
96
  command: bundle exec rake spec
82
97
 
83
98
 
99
+
84
100
  workflows:
85
101
  version: 2
86
102
  test:
@@ -89,5 +105,6 @@ workflows:
89
105
  - test25
90
106
  - test26
91
107
  - test27
108
+ - test31
92
109
 
93
110
 
data/lib/mirah/client.rb CHANGED
@@ -104,6 +104,7 @@ module Mirah
104
104
  # @option input_values [String, nil] :primary_language see {Data::Patient#primary_language}
105
105
  # @option input_values [String, nil] :email see {Data::Patient#email}
106
106
  # @option input_values [String, nil] :phone_number see {Data::Patient#phone_number}
107
+ # @option input_values [String, nil] :external_managing_organization_id see {Data::Patient#external_managing_organization_id}
107
108
  # @return [PushResult<Data::Patient>] the operation result with a patient on success
108
109
  def push_patient(external_id:, **input_values)
109
110
  mutate(Graphql::Mutations::CreateOrUpdatePatientMutation,
@@ -15,12 +15,42 @@ module Mirah
15
15
 
16
16
  # @!attribute [r] given_name
17
17
  # @return [string] The patient's first or given name
18
+ # @deprecated use legal_given_name instead
18
19
  attribute :given_name
19
20
 
21
+ # @!attribute [r] legal_given_name
22
+ # @return [string] The patient's legal first or given name
23
+ attribute :legal_given_name
24
+
25
+ # @!attribute [r] preferred_given_name
26
+ # @return [string] The patient's preferred first or given name
27
+ attribute :preferred_given_name
28
+
20
29
  # @!attribute [r] family_name
21
30
  # @return [string] The patient's last or family name
31
+ # @deprecated use legal_family_name instead
22
32
  attribute :family_name
23
33
 
34
+ # @!attribute [r] legal_family_name
35
+ # @return [string] The patient's legal last or family name
36
+ attribute :legal_family_name
37
+
38
+ # @!attribute [r] preferred_family_name
39
+ # @return [string] The patient's preferred last or family name
40
+ attribute :preferred_family_name
41
+
42
+ # @!attribute [r] legal_name
43
+ # @return [string] The patient's full legal name.
44
+ attribute :legal_name
45
+
46
+ # @!attribute [r] preferred_name
47
+ # @return [string] The patient's full preferred name.
48
+ attribute :preferred_name
49
+
50
+ # @!attribute [r] preferred_pronouns
51
+ # @return [string] The patient's preferred pronouns.
52
+ attribute :preferred_pronouns
53
+
24
54
  # @!attribute [r] birth_date
25
55
  # @return [Date] The patient's date of birth.
26
56
  attribute :birth_date, serializer: Serializers::DateSerializer.new
@@ -29,6 +59,14 @@ module Mirah
29
59
  # @return [string] The patient's gender
30
60
  attribute :gender
31
61
 
62
+ # @!attribute [r] gender_identity
63
+ # @return [string] The patient's gender identity as free text
64
+ attribute :gender_identity
65
+
66
+ # @!attribute [r] gender_identity_fhir
67
+ # @return [string] The patient's gender identity as FHIR extension coded.
68
+ attribute :gender_identity_fhir
69
+
32
70
  # @!attribute [r] primary_language
33
71
  # @return [string] The patient's primary language
34
72
  attribute :primary_language
@@ -41,6 +79,19 @@ module Mirah
41
79
  # @return [string] The patient's primary phone number that is suitable for receiving text messages.
42
80
  # Please do not use a phone number which corresponds to a landline as text messages will not be received.
43
81
  attribute :phone_number
82
+
83
+ # @!attribute [r] timezone
84
+ # @return [string] The patient's timezone. If not specified, the organization's default will be used. Timezone
85
+ # should be formatted like: https://en.wikipedia.org/wiki/Tz_database
86
+ attribute :timezone
87
+
88
+ # @!attribute [r] managing_organization_id
89
+ # @return [string] The internal mirah id of the organization this patient is with
90
+ attribute :managing_organization_id, path: %w[managingOrganization], target: 'id'
91
+
92
+ # @!attribute [r] external_managing_organization_id
93
+ # @return [string] Your system identifier for the organization this patient is with
94
+ attribute :external_managing_organization_id, path: %w[managingOrganization], target: 'externalId'
44
95
  end
45
96
  end
46
97
  end
@@ -24,6 +24,11 @@ module Mirah
24
24
  primaryLanguage
25
25
  email
26
26
  phoneNumber
27
+ timezone
28
+ managingOrganization {
29
+ id
30
+ externalId
31
+ }
27
32
  identifier {
28
33
  value
29
34
  }
@@ -16,6 +16,34 @@ module Mirah
16
16
  # @return (see Mirah::Data::Patient#family_name)
17
17
  input :family_name, required: false
18
18
 
19
+ # @!attribute [r] preferred_given_name
20
+ # @return (see Mirah::Data::Patient#preferred_given_name)
21
+ input :preferred_given_name, required: false
22
+
23
+ # @!attribute [r] preferred_family_name
24
+ # @return (see Mirah::Data::Patient#preferred_family_name)
25
+ input :preferred_family_name, required: false
26
+
27
+ # @!attribute [r] legal_given_name
28
+ # @return (see Mirah::Data::Patient#legal_given_name)
29
+ input :legal_given_name, required: false
30
+
31
+ # @!attribute [r] legal_family_name
32
+ # @return (see Mirah::Data::Patient#legal_family_name)
33
+ input :legal_family_name, required: false
34
+
35
+ # @!attribute [r] preferred_name
36
+ # @return (see Mirah::Data::Patient#preferred_name)
37
+ input :preferred_name, required: false
38
+
39
+ # @!attribute [r] legal_name
40
+ # @return (see Mirah::Data::Patient#legal_name)
41
+ input :legal_name, required: false
42
+
43
+ # @!attribute [r] preferred_pronouns
44
+ # @return (see Mirah::Data::Patient#preferred_pronouns)
45
+ input :preferred_pronouns, required: false
46
+
19
47
  # @!attribute [r] birth_date
20
48
  # @return (see Mirah::Data::Patient#birth_date)
21
49
  input :birth_date, required: false, serializer: Serializers::DateSerializer.new
@@ -24,6 +52,14 @@ module Mirah
24
52
  # @return (see Mirah::Data::Patient#gender)
25
53
  input :gender, required: false
26
54
 
55
+ # @!attribute [r] gender_identity
56
+ # @return (see Mirah::Data::Patient#gender_identity)
57
+ input :gender_identity, required: false
58
+
59
+ # @!attribute [r] gender_identity_fhir
60
+ # @return (see Mirah::Data::Patient#gender_identity_fhir)
61
+ input :gender_identity_fhir, required: false
62
+
27
63
  # @!attribute [r] primary_language
28
64
  # @return (see Mirah::Data::Patient#primary_language)
29
65
  input :primary_language, required: false
@@ -35,6 +71,14 @@ module Mirah
35
71
  # @!attribute [r] phone_number
36
72
  # @return (see Mirah::Data::Patient#phone_number)
37
73
  input :phone_number, required: false
74
+
75
+ # @!attribute [r] phone_number
76
+ # @return (see Mirah::Data::Patient#timezone)
77
+ input :timezone, required: false
78
+
79
+ # @!attribute [r] external_managing_organization_id
80
+ # @return (see Mirah::Data::Patient#external_managing_organization_id)
81
+ input :external_managing_organization_id, required: false
38
82
  end
39
83
  end
40
84
  end
data/lib/mirah/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mirah
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
data/schema.json CHANGED
@@ -440,6 +440,24 @@
440
440
  "description": "No-show",
441
441
  "isDeprecated": false,
442
442
  "deprecationReason": null
443
+ },
444
+ {
445
+ "name": "ENTERED_IN_ERROR",
446
+ "description": "Entered in error",
447
+ "isDeprecated": false,
448
+ "deprecationReason": null
449
+ },
450
+ {
451
+ "name": "CHECKED_IN",
452
+ "description": "Checked in",
453
+ "isDeprecated": false,
454
+ "deprecationReason": null
455
+ },
456
+ {
457
+ "name": "WAIT_LIST",
458
+ "description": "Wait list",
459
+ "isDeprecated": false,
460
+ "deprecationReason": null
443
461
  }
444
462
  ],
445
463
  "possibleTypes": null
@@ -1004,6 +1022,16 @@
1004
1022
  "description": "Autogenerated input type of CreateOrUpdateAppointment",
1005
1023
  "fields": null,
1006
1024
  "inputFields": [
1025
+ {
1026
+ "name": "clientMutationId",
1027
+ "description": "A unique identifier for the client performing the mutation.",
1028
+ "type": {
1029
+ "kind": "SCALAR",
1030
+ "name": "String",
1031
+ "ofType": null
1032
+ },
1033
+ "defaultValue": null
1034
+ },
1007
1035
  {
1008
1036
  "name": "externalId",
1009
1037
  "description": "The external identifer for this appointment",
@@ -1097,16 +1125,6 @@
1097
1125
  "ofType": null
1098
1126
  },
1099
1127
  "defaultValue": null
1100
- },
1101
- {
1102
- "name": "clientMutationId",
1103
- "description": "A unique identifier for the client performing the mutation.",
1104
- "type": {
1105
- "kind": "SCALAR",
1106
- "name": "String",
1107
- "ofType": null
1108
- },
1109
- "defaultValue": null
1110
1128
  }
1111
1129
  ],
1112
1130
  "interfaces": null,
@@ -1204,6 +1222,16 @@
1204
1222
  "description": "Autogenerated input type of CreateOrUpdateOrganization",
1205
1223
  "fields": null,
1206
1224
  "inputFields": [
1225
+ {
1226
+ "name": "clientMutationId",
1227
+ "description": "A unique identifier for the client performing the mutation.",
1228
+ "type": {
1229
+ "kind": "SCALAR",
1230
+ "name": "String",
1231
+ "ofType": null
1232
+ },
1233
+ "defaultValue": null
1234
+ },
1207
1235
  {
1208
1236
  "name": "externalId",
1209
1237
  "description": "The external identifer for this organization",
@@ -1237,16 +1265,6 @@
1237
1265
  "ofType": null
1238
1266
  },
1239
1267
  "defaultValue": null
1240
- },
1241
- {
1242
- "name": "clientMutationId",
1243
- "description": "A unique identifier for the client performing the mutation.",
1244
- "type": {
1245
- "kind": "SCALAR",
1246
- "name": "String",
1247
- "ofType": null
1248
- },
1249
- "defaultValue": null
1250
1268
  }
1251
1269
  ],
1252
1270
  "interfaces": null,
@@ -1344,6 +1362,16 @@
1344
1362
  "description": "Autogenerated input type of CreateOrUpdatePatient",
1345
1363
  "fields": null,
1346
1364
  "inputFields": [
1365
+ {
1366
+ "name": "clientMutationId",
1367
+ "description": "A unique identifier for the client performing the mutation.",
1368
+ "type": {
1369
+ "kind": "SCALAR",
1370
+ "name": "String",
1371
+ "ofType": null
1372
+ },
1373
+ "defaultValue": null
1374
+ },
1347
1375
  {
1348
1376
  "name": "externalId",
1349
1377
  "description": "See Patient#mrn",
@@ -1369,18 +1397,18 @@
1369
1397
  "defaultValue": null
1370
1398
  },
1371
1399
  {
1372
- "name": "gender",
1373
- "description": "See Patient#gender",
1400
+ "name": "birthDate",
1401
+ "description": "See Patient#mrn",
1374
1402
  "type": {
1375
- "kind": "ENUM",
1376
- "name": "Gender",
1403
+ "kind": "SCALAR",
1404
+ "name": "String",
1377
1405
  "ofType": null
1378
1406
  },
1379
1407
  "defaultValue": null
1380
1408
  },
1381
1409
  {
1382
- "name": "birthDate",
1383
- "description": "See Patient#mrn",
1410
+ "name": "legalGivenName",
1411
+ "description": "See Patient#legalFivenName",
1384
1412
  "type": {
1385
1413
  "kind": "SCALAR",
1386
1414
  "name": "String",
@@ -1389,8 +1417,8 @@
1389
1417
  "defaultValue": null
1390
1418
  },
1391
1419
  {
1392
- "name": "givenName",
1393
- "description": "See Patient#givenName",
1420
+ "name": "legalFamilyName",
1421
+ "description": "See Patient#legalFamilyName",
1394
1422
  "type": {
1395
1423
  "kind": "SCALAR",
1396
1424
  "name": "String",
@@ -1399,8 +1427,68 @@
1399
1427
  "defaultValue": null
1400
1428
  },
1401
1429
  {
1402
- "name": "familyName",
1403
- "description": "See Patient#familyName",
1430
+ "name": "legalName",
1431
+ "description": "See Patient#legalName",
1432
+ "type": {
1433
+ "kind": "SCALAR",
1434
+ "name": "String",
1435
+ "ofType": null
1436
+ },
1437
+ "defaultValue": null
1438
+ },
1439
+ {
1440
+ "name": "preferredGivenName",
1441
+ "description": "See Patient#preferredFivenName",
1442
+ "type": {
1443
+ "kind": "SCALAR",
1444
+ "name": "String",
1445
+ "ofType": null
1446
+ },
1447
+ "defaultValue": null
1448
+ },
1449
+ {
1450
+ "name": "preferredFamilyName",
1451
+ "description": "See Patient#preferredFamilyName",
1452
+ "type": {
1453
+ "kind": "SCALAR",
1454
+ "name": "String",
1455
+ "ofType": null
1456
+ },
1457
+ "defaultValue": null
1458
+ },
1459
+ {
1460
+ "name": "preferredName",
1461
+ "description": "See Patient#preferredName",
1462
+ "type": {
1463
+ "kind": "SCALAR",
1464
+ "name": "String",
1465
+ "ofType": null
1466
+ },
1467
+ "defaultValue": null
1468
+ },
1469
+ {
1470
+ "name": "preferredPronouns",
1471
+ "description": "See Patient#preferredPronouns",
1472
+ "type": {
1473
+ "kind": "SCALAR",
1474
+ "name": "String",
1475
+ "ofType": null
1476
+ },
1477
+ "defaultValue": null
1478
+ },
1479
+ {
1480
+ "name": "gender",
1481
+ "description": "See Patient#gender",
1482
+ "type": {
1483
+ "kind": "ENUM",
1484
+ "name": "Gender",
1485
+ "ofType": null
1486
+ },
1487
+ "defaultValue": null
1488
+ },
1489
+ {
1490
+ "name": "genderIdentity",
1491
+ "description": "See Patient#gender_identity",
1404
1492
  "type": {
1405
1493
  "kind": "SCALAR",
1406
1494
  "name": "String",
@@ -1408,6 +1496,16 @@
1408
1496
  },
1409
1497
  "defaultValue": null
1410
1498
  },
1499
+ {
1500
+ "name": "genderIdentityFhir",
1501
+ "description": "See Patient#gender_identity_fhir",
1502
+ "type": {
1503
+ "kind": "ENUM",
1504
+ "name": "GenderIdentity",
1505
+ "ofType": null
1506
+ },
1507
+ "defaultValue": null
1508
+ },
1411
1509
  {
1412
1510
  "name": "primaryLanguage",
1413
1511
  "description": "See Patient#primaryLanguage",
@@ -1439,8 +1537,8 @@
1439
1537
  "defaultValue": null
1440
1538
  },
1441
1539
  {
1442
- "name": "externalManagingOrganizationId",
1443
- "description": "The external identifier for the managing organization. An error will be returned if this cannot be matched\n",
1540
+ "name": "timezone",
1541
+ "description": "See Patient#timezone",
1444
1542
  "type": {
1445
1543
  "kind": "SCALAR",
1446
1544
  "name": "String",
@@ -1449,8 +1547,8 @@
1449
1547
  "defaultValue": null
1450
1548
  },
1451
1549
  {
1452
- "name": "clientMutationId",
1453
- "description": "A unique identifier for the client performing the mutation.",
1550
+ "name": "externalManagingOrganizationId",
1551
+ "description": "The external identifier for the managing organization. An error will be returned if this cannot be matched\n",
1454
1552
  "type": {
1455
1553
  "kind": "SCALAR",
1456
1554
  "name": "String",
@@ -1554,6 +1652,16 @@
1554
1652
  "description": "Autogenerated input type of CreateOrUpdatePractitioner",
1555
1653
  "fields": null,
1556
1654
  "inputFields": [
1655
+ {
1656
+ "name": "clientMutationId",
1657
+ "description": "A unique identifier for the client performing the mutation.",
1658
+ "type": {
1659
+ "kind": "SCALAR",
1660
+ "name": "String",
1661
+ "ofType": null
1662
+ },
1663
+ "defaultValue": null
1664
+ },
1557
1665
  {
1558
1666
  "name": "externalId",
1559
1667
  "description": "The external identifer for this practitioner",
@@ -1655,16 +1763,6 @@
1655
1763
  }
1656
1764
  },
1657
1765
  "defaultValue": null
1658
- },
1659
- {
1660
- "name": "clientMutationId",
1661
- "description": "A unique identifier for the client performing the mutation.",
1662
- "type": {
1663
- "kind": "SCALAR",
1664
- "name": "String",
1665
- "ofType": null
1666
- },
1667
- "defaultValue": null
1668
1766
  }
1669
1767
  ],
1670
1768
  "interfaces": null,
@@ -1799,13 +1897,9 @@
1799
1897
 
1800
1898
  ],
1801
1899
  "type": {
1802
- "kind": "NON_NULL",
1803
- "name": null,
1804
- "ofType": {
1805
- "kind": "SCALAR",
1806
- "name": "ISO8601DateTime",
1807
- "ofType": null
1808
- }
1900
+ "kind": "SCALAR",
1901
+ "name": "ISO8601DateTime",
1902
+ "ofType": null
1809
1903
  },
1810
1904
  "isDeprecated": false,
1811
1905
  "deprecationReason": null
@@ -2613,6 +2707,12 @@
2613
2707
  "inputFields": null,
2614
2708
  "interfaces": null,
2615
2709
  "enumValues": [
2710
+ {
2711
+ "name": "ASSESSMENT_IN_PROGRESS",
2712
+ "description": "Measurement In Progress",
2713
+ "isDeprecated": false,
2714
+ "deprecationReason": null
2715
+ },
2616
2716
  {
2617
2717
  "name": "NEW",
2618
2718
  "description": "New",
@@ -2695,7 +2795,7 @@
2695
2795
  {
2696
2796
  "kind": "ENUM",
2697
2797
  "name": "Gender",
2698
- "description": "Administrative gender as defined by https://www.hl7.org/fhir/valueset-administrative-gender.html",
2798
+ "description": "Administrative sex as defined by https://www.hl7.org/fhir/valueset-administrative-gender.html",
2699
2799
  "fields": null,
2700
2800
  "inputFields": null,
2701
2801
  "interfaces": null,
@@ -2727,6 +2827,59 @@
2727
2827
  ],
2728
2828
  "possibleTypes": null
2729
2829
  },
2830
+ {
2831
+ "kind": "ENUM",
2832
+ "name": "GenderIdentity",
2833
+ "description": "Gender Identity as defined by http://hl7.org/fhir/R4/valueset-gender-identity.html",
2834
+ "fields": null,
2835
+ "inputFields": null,
2836
+ "interfaces": null,
2837
+ "enumValues": [
2838
+ {
2839
+ "name": "MALE",
2840
+ "description": "The patient identifies as male",
2841
+ "isDeprecated": false,
2842
+ "deprecationReason": null
2843
+ },
2844
+ {
2845
+ "name": "FEMALE",
2846
+ "description": "The patient identifies as female",
2847
+ "isDeprecated": false,
2848
+ "deprecationReason": null
2849
+ },
2850
+ {
2851
+ "name": "NON_BINARY",
2852
+ "description": "The patient identifies with neither/both female and male",
2853
+ "isDeprecated": false,
2854
+ "deprecationReason": null
2855
+ },
2856
+ {
2857
+ "name": "TRANSGENDER_MALE",
2858
+ "description": "The patient identifies as transgender female-to-male",
2859
+ "isDeprecated": false,
2860
+ "deprecationReason": null
2861
+ },
2862
+ {
2863
+ "name": "TRANSGENDER_FEMALE",
2864
+ "description": "The patient identifies as transgender male-to-female",
2865
+ "isDeprecated": false,
2866
+ "deprecationReason": null
2867
+ },
2868
+ {
2869
+ "name": "OTHER",
2870
+ "description": "Other gender identity",
2871
+ "isDeprecated": false,
2872
+ "deprecationReason": null
2873
+ },
2874
+ {
2875
+ "name": "NON_DISCLOSE",
2876
+ "description": "The patient does not wish to disclose his gender identity",
2877
+ "isDeprecated": false,
2878
+ "deprecationReason": null
2879
+ }
2880
+ ],
2881
+ "possibleTypes": null
2882
+ },
2730
2883
  {
2731
2884
  "kind": "SCALAR",
2732
2885
  "name": "ID",
@@ -3306,6 +3459,18 @@
3306
3459
  "description": "The invitation was not started and has expired",
3307
3460
  "isDeprecated": false,
3308
3461
  "deprecationReason": null
3462
+ },
3463
+ {
3464
+ "name": "PARTIAL",
3465
+ "description": "The invitation was started but not completed and has now expired",
3466
+ "isDeprecated": false,
3467
+ "deprecationReason": null
3468
+ },
3469
+ {
3470
+ "name": "CANCELED",
3471
+ "description": "The invitation was canceled",
3472
+ "isDeprecated": false,
3473
+ "deprecationReason": null
3309
3474
  }
3310
3475
  ],
3311
3476
  "possibleTypes": null
@@ -3321,7 +3486,7 @@
3321
3486
  "args": [
3322
3487
  {
3323
3488
  "name": "input",
3324
- "description": null,
3489
+ "description": "Parameters for CreateOrUpdateAppointment",
3325
3490
  "type": {
3326
3491
  "kind": "NON_NULL",
3327
3492
  "name": null,
@@ -3348,7 +3513,7 @@
3348
3513
  "args": [
3349
3514
  {
3350
3515
  "name": "input",
3351
- "description": null,
3516
+ "description": "Parameters for CreateOrUpdateOrganization",
3352
3517
  "type": {
3353
3518
  "kind": "NON_NULL",
3354
3519
  "name": null,
@@ -3375,7 +3540,7 @@
3375
3540
  "args": [
3376
3541
  {
3377
3542
  "name": "input",
3378
- "description": null,
3543
+ "description": "Parameters for CreateOrUpdatePatient",
3379
3544
  "type": {
3380
3545
  "kind": "NON_NULL",
3381
3546
  "name": null,
@@ -3402,7 +3567,7 @@
3402
3567
  "args": [
3403
3568
  {
3404
3569
  "name": "input",
3405
- "description": null,
3570
+ "description": "Parameters for CreateOrUpdatePractitioner",
3406
3571
  "type": {
3407
3572
  "kind": "NON_NULL",
3408
3573
  "name": null,
@@ -4589,13 +4754,9 @@
4589
4754
 
4590
4755
  ],
4591
4756
  "type": {
4592
- "kind": "NON_NULL",
4593
- "name": null,
4594
- "ofType": {
4595
- "kind": "SCALAR",
4596
- "name": "String",
4597
- "ofType": null
4598
- }
4757
+ "kind": "SCALAR",
4758
+ "name": "String",
4759
+ "ofType": null
4599
4760
  },
4600
4761
  "isDeprecated": false,
4601
4762
  "deprecationReason": null
@@ -4614,6 +4775,34 @@
4614
4775
  "isDeprecated": false,
4615
4776
  "deprecationReason": null
4616
4777
  },
4778
+ {
4779
+ "name": "genderIdentity",
4780
+ "description": "The patient's gender identity as a string",
4781
+ "args": [
4782
+
4783
+ ],
4784
+ "type": {
4785
+ "kind": "SCALAR",
4786
+ "name": "String",
4787
+ "ofType": null
4788
+ },
4789
+ "isDeprecated": false,
4790
+ "deprecationReason": null
4791
+ },
4792
+ {
4793
+ "name": "genderIdentityFhir",
4794
+ "description": "The patient's gender identity as expressed by the FHIR enum",
4795
+ "args": [
4796
+
4797
+ ],
4798
+ "type": {
4799
+ "kind": "ENUM",
4800
+ "name": "GenderIdentity",
4801
+ "ofType": null
4802
+ },
4803
+ "isDeprecated": false,
4804
+ "deprecationReason": null
4805
+ },
4617
4806
  {
4618
4807
  "name": "givenName",
4619
4808
  "description": "The patient's first or given name",
@@ -4621,13 +4810,9 @@
4621
4810
 
4622
4811
  ],
4623
4812
  "type": {
4624
- "kind": "NON_NULL",
4625
- "name": null,
4626
- "ofType": {
4627
- "kind": "SCALAR",
4628
- "name": "String",
4629
- "ofType": null
4630
- }
4813
+ "kind": "SCALAR",
4814
+ "name": "String",
4815
+ "ofType": null
4631
4816
  },
4632
4817
  "isDeprecated": false,
4633
4818
  "deprecationReason": null
@@ -4690,6 +4875,48 @@
4690
4875
  "isDeprecated": false,
4691
4876
  "deprecationReason": null
4692
4877
  },
4878
+ {
4879
+ "name": "legalFamilyName",
4880
+ "description": "The patient's legal last or family name",
4881
+ "args": [
4882
+
4883
+ ],
4884
+ "type": {
4885
+ "kind": "SCALAR",
4886
+ "name": "String",
4887
+ "ofType": null
4888
+ },
4889
+ "isDeprecated": false,
4890
+ "deprecationReason": null
4891
+ },
4892
+ {
4893
+ "name": "legalGivenName",
4894
+ "description": "The patient's legal first or given name",
4895
+ "args": [
4896
+
4897
+ ],
4898
+ "type": {
4899
+ "kind": "SCALAR",
4900
+ "name": "String",
4901
+ "ofType": null
4902
+ },
4903
+ "isDeprecated": false,
4904
+ "deprecationReason": null
4905
+ },
4906
+ {
4907
+ "name": "legalName",
4908
+ "description": "The patient's legal last or family name",
4909
+ "args": [
4910
+
4911
+ ],
4912
+ "type": {
4913
+ "kind": "SCALAR",
4914
+ "name": "String",
4915
+ "ofType": null
4916
+ },
4917
+ "isDeprecated": false,
4918
+ "deprecationReason": null
4919
+ },
4693
4920
  {
4694
4921
  "name": "managingOrganization",
4695
4922
  "description": "The managing organization for this patient record. This is used most commonly in situations where there are\ndata firewalls between organizations and the patient is not in active treatment. In this case, managing\n organization can be used to show who has access to the patient record.\n",
@@ -4732,11 +4959,81 @@
4732
4959
  "isDeprecated": false,
4733
4960
  "deprecationReason": null
4734
4961
  },
4962
+ {
4963
+ "name": "preferredFamilyName",
4964
+ "description": "The patient's preferred last or family name",
4965
+ "args": [
4966
+
4967
+ ],
4968
+ "type": {
4969
+ "kind": "SCALAR",
4970
+ "name": "String",
4971
+ "ofType": null
4972
+ },
4973
+ "isDeprecated": false,
4974
+ "deprecationReason": null
4975
+ },
4976
+ {
4977
+ "name": "preferredGivenName",
4978
+ "description": "The patient's preferred first or given name",
4979
+ "args": [
4980
+
4981
+ ],
4982
+ "type": {
4983
+ "kind": "SCALAR",
4984
+ "name": "String",
4985
+ "ofType": null
4986
+ },
4987
+ "isDeprecated": false,
4988
+ "deprecationReason": null
4989
+ },
4990
+ {
4991
+ "name": "preferredName",
4992
+ "description": "The patient's preferred last or family name",
4993
+ "args": [
4994
+
4995
+ ],
4996
+ "type": {
4997
+ "kind": "SCALAR",
4998
+ "name": "String",
4999
+ "ofType": null
5000
+ },
5001
+ "isDeprecated": false,
5002
+ "deprecationReason": null
5003
+ },
5004
+ {
5005
+ "name": "preferredPronouns",
5006
+ "description": "The patient's preferred pronouns",
5007
+ "args": [
5008
+
5009
+ ],
5010
+ "type": {
5011
+ "kind": "SCALAR",
5012
+ "name": "String",
5013
+ "ofType": null
5014
+ },
5015
+ "isDeprecated": false,
5016
+ "deprecationReason": null
5017
+ },
4735
5018
  {
4736
5019
  "name": "primaryLanguage",
4737
5020
  "description": "The patient's primary language",
4738
5021
  "args": [
4739
5022
 
5023
+ ],
5024
+ "type": {
5025
+ "kind": "SCALAR",
5026
+ "name": "String",
5027
+ "ofType": null
5028
+ },
5029
+ "isDeprecated": false,
5030
+ "deprecationReason": null
5031
+ },
5032
+ {
5033
+ "name": "timezone",
5034
+ "description": "This user's timezone, used for localizing assessment notifications. If not specified, the institutional default will be used",
5035
+ "args": [
5036
+
4740
5037
  ],
4741
5038
  "type": {
4742
5039
  "kind": "SCALAR",
@@ -8616,7 +8913,16 @@
8616
8913
  "name": "args",
8617
8914
  "description": null,
8618
8915
  "args": [
8619
-
8916
+ {
8917
+ "name": "includeDeprecated",
8918
+ "description": null,
8919
+ "type": {
8920
+ "kind": "SCALAR",
8921
+ "name": "Boolean",
8922
+ "ofType": null
8923
+ },
8924
+ "defaultValue": "false"
8925
+ }
8620
8926
  ],
8621
8927
  "type": {
8622
8928
  "kind": "NON_NULL",
@@ -8652,6 +8958,20 @@
8652
8958
  "isDeprecated": false,
8653
8959
  "deprecationReason": null
8654
8960
  },
8961
+ {
8962
+ "name": "isRepeatable",
8963
+ "description": null,
8964
+ "args": [
8965
+
8966
+ ],
8967
+ "type": {
8968
+ "kind": "SCALAR",
8969
+ "name": "Boolean",
8970
+ "ofType": null
8971
+ },
8972
+ "isDeprecated": false,
8973
+ "deprecationReason": null
8974
+ },
8655
8975
  {
8656
8976
  "name": "locations",
8657
8977
  "description": null,
@@ -8873,6 +9193,12 @@
8873
9193
  "description": "Location adjacent to an input object field definition.",
8874
9194
  "isDeprecated": false,
8875
9195
  "deprecationReason": null
9196
+ },
9197
+ {
9198
+ "name": "VARIABLE_DEFINITION",
9199
+ "description": "Location adjacent to a variable definition.",
9200
+ "isDeprecated": false,
9201
+ "deprecationReason": null
8876
9202
  }
8877
9203
  ],
8878
9204
  "possibleTypes": null
@@ -8963,7 +9289,16 @@
8963
9289
  "name": "args",
8964
9290
  "description": null,
8965
9291
  "args": [
8966
-
9292
+ {
9293
+ "name": "includeDeprecated",
9294
+ "description": null,
9295
+ "type": {
9296
+ "kind": "SCALAR",
9297
+ "name": "Boolean",
9298
+ "ofType": null
9299
+ },
9300
+ "defaultValue": "false"
9301
+ }
8967
9302
  ],
8968
9303
  "type": {
8969
9304
  "kind": "NON_NULL",
@@ -9094,6 +9429,20 @@
9094
9429
  "isDeprecated": false,
9095
9430
  "deprecationReason": null
9096
9431
  },
9432
+ {
9433
+ "name": "deprecationReason",
9434
+ "description": null,
9435
+ "args": [
9436
+
9437
+ ],
9438
+ "type": {
9439
+ "kind": "SCALAR",
9440
+ "name": "String",
9441
+ "ofType": null
9442
+ },
9443
+ "isDeprecated": false,
9444
+ "deprecationReason": null
9445
+ },
9097
9446
  {
9098
9447
  "name": "description",
9099
9448
  "description": null,
@@ -9108,6 +9457,24 @@
9108
9457
  "isDeprecated": false,
9109
9458
  "deprecationReason": null
9110
9459
  },
9460
+ {
9461
+ "name": "isDeprecated",
9462
+ "description": null,
9463
+ "args": [
9464
+
9465
+ ],
9466
+ "type": {
9467
+ "kind": "NON_NULL",
9468
+ "name": null,
9469
+ "ofType": {
9470
+ "kind": "SCALAR",
9471
+ "name": "Boolean",
9472
+ "ofType": null
9473
+ }
9474
+ },
9475
+ "isDeprecated": false,
9476
+ "deprecationReason": null
9477
+ },
9111
9478
  {
9112
9479
  "name": "name",
9113
9480
  "description": null,
@@ -9157,6 +9524,20 @@
9157
9524
  "name": "__Schema",
9158
9525
  "description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",
9159
9526
  "fields": [
9527
+ {
9528
+ "name": "description",
9529
+ "description": null,
9530
+ "args": [
9531
+
9532
+ ],
9533
+ "type": {
9534
+ "kind": "SCALAR",
9535
+ "name": "String",
9536
+ "ofType": null
9537
+ },
9538
+ "isDeprecated": false,
9539
+ "deprecationReason": null
9540
+ },
9160
9541
  {
9161
9542
  "name": "directives",
9162
9543
  "description": "A list of all directives supported by this server.",
@@ -9348,7 +9729,16 @@
9348
9729
  "name": "inputFields",
9349
9730
  "description": null,
9350
9731
  "args": [
9351
-
9732
+ {
9733
+ "name": "includeDeprecated",
9734
+ "description": null,
9735
+ "type": {
9736
+ "kind": "SCALAR",
9737
+ "name": "Boolean",
9738
+ "ofType": null
9739
+ },
9740
+ "defaultValue": "false"
9741
+ }
9352
9742
  ],
9353
9743
  "type": {
9354
9744
  "kind": "LIST",
@@ -9455,6 +9845,20 @@
9455
9845
  },
9456
9846
  "isDeprecated": false,
9457
9847
  "deprecationReason": null
9848
+ },
9849
+ {
9850
+ "name": "specifiedByURL",
9851
+ "description": null,
9852
+ "args": [
9853
+
9854
+ ],
9855
+ "type": {
9856
+ "kind": "SCALAR",
9857
+ "name": "String",
9858
+ "ofType": null
9859
+ },
9860
+ "isDeprecated": false,
9861
+ "deprecationReason": null
9458
9862
  }
9459
9863
  ],
9460
9864
  "inputFields": null,
@@ -9580,7 +9984,9 @@
9580
9984
  "description": "Marks an element of a GraphQL schema as no longer supported.",
9581
9985
  "locations": [
9582
9986
  "FIELD_DEFINITION",
9583
- "ENUM_VALUE"
9987
+ "ENUM_VALUE",
9988
+ "ARGUMENT_DEFINITION",
9989
+ "INPUT_FIELD_DEFINITION"
9584
9990
  ],
9585
9991
  "args": [
9586
9992
  {
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mirah-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Jones
8
8
  - Hugh Barrigan
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-06-16 00:00:00.000000000 Z
12
+ date: 2022-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -199,7 +199,7 @@ metadata:
199
199
  homepage_uri: https://www.mirah.com
200
200
  source_code_uri: https://www.mirah.com
201
201
  changelog_uri: https://www.mirah.com
202
- post_install_message:
202
+ post_install_message:
203
203
  rdoc_options: []
204
204
  require_paths:
205
205
  - lib
@@ -214,8 +214,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.1.2
218
- signing_key:
217
+ rubygems_version: 3.2.15
218
+ signing_key:
219
219
  specification_version: 4
220
220
  summary: Connect to your data on Mirah.
221
221
  test_files: []