fhir_models 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/definitions/structures/profiles-types.json +23 -260
- data/fhir_models.gemspec +3 -1
- data/lib/bootstrap/xml.rb +1 -1
- data/lib/fhir_ext/StructureDefinition.rb +2 -2
- data/lib/fhir_models.rb +0 -1
- metadata +30 -3
- data/Gemfile.lock +0 -63
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bd18d41fb545e5c0d0d08f1fd6336a878564e7e
|
4
|
+
data.tar.gz: 560e2d3822efa5059a04cf41b4e3043afcde063c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4b78891715ea02f5f04fa39d8bad5bdaa0f9c87cb4820a61f8a6f3b6d81b93131d07e459c6d39fd3d846dcc69a77ec4931182ebf6d477da6ce559c34eefec70
|
7
|
+
data.tar.gz: e847a9cf9485e46256f4615b7cf9efc4523bda6108d323f5e7d3e9bad82adfbdfa804b87d282eaaa8521fc1e9f5b6aa30e4b6ed20e34984622b65088d4dad84b
|
data/.gitignore
CHANGED
@@ -2454,13 +2454,6 @@
|
|
2454
2454
|
"ele-1"
|
2455
2455
|
],
|
2456
2456
|
"constraint": [
|
2457
|
-
{
|
2458
|
-
"key": "ele-1",
|
2459
|
-
"severity": "error",
|
2460
|
-
"human": "All FHIR elements must have a @value or children",
|
2461
|
-
"expression": "children().count() > id.count()",
|
2462
|
-
"xpath": "@value|f:*|h:div"
|
2463
|
-
},
|
2464
2457
|
{
|
2465
2458
|
"key": "ref-1",
|
2466
2459
|
"severity": "error",
|
@@ -2611,13 +2604,6 @@
|
|
2611
2604
|
"ele-1"
|
2612
2605
|
],
|
2613
2606
|
"constraint": [
|
2614
|
-
{
|
2615
|
-
"key": "ele-1",
|
2616
|
-
"severity": "error",
|
2617
|
-
"human": "All FHIR elements must have a @value or children",
|
2618
|
-
"expression": "children().count() > id.count()",
|
2619
|
-
"xpath": "@value|f:*|h:div"
|
2620
|
-
},
|
2621
2607
|
{
|
2622
2608
|
"key": "qty-3",
|
2623
2609
|
"severity": "error",
|
@@ -2858,14 +2844,7 @@
|
|
2858
2844
|
"ele-1"
|
2859
2845
|
],
|
2860
2846
|
"constraint": [
|
2861
|
-
|
2862
|
-
"key": "ele-1",
|
2863
|
-
"severity": "error",
|
2864
|
-
"human": "All FHIR elements must have a @value or children",
|
2865
|
-
"expression": "children().count() > id.count()",
|
2866
|
-
"xpath": "@value|f:*|h:div"
|
2867
|
-
},
|
2868
|
-
{
|
2847
|
+
{
|
2869
2848
|
"key": "per-1",
|
2870
2849
|
"severity": "error",
|
2871
2850
|
"human": "If present, start SHALL have a lower value than end",
|
@@ -3023,14 +3002,7 @@
|
|
3023
3002
|
"ele-1"
|
3024
3003
|
],
|
3025
3004
|
"constraint": [
|
3026
|
-
|
3027
|
-
"key": "ele-1",
|
3028
|
-
"severity": "error",
|
3029
|
-
"human": "All FHIR elements must have a @value or children",
|
3030
|
-
"expression": "children().count() > id.count()",
|
3031
|
-
"xpath": "@value|f:*|h:div"
|
3032
|
-
},
|
3033
|
-
{
|
3005
|
+
{
|
3034
3006
|
"key": "att-1",
|
3035
3007
|
"severity": "error",
|
3036
3008
|
"human": "It the Attachment has data, it SHALL have a contentType",
|
@@ -3758,14 +3730,7 @@
|
|
3758
3730
|
"ele-1"
|
3759
3731
|
],
|
3760
3732
|
"constraint": [
|
3761
|
-
|
3762
|
-
"key": "ele-1",
|
3763
|
-
"severity": "error",
|
3764
|
-
"human": "All FHIR elements must have a @value or children",
|
3765
|
-
"expression": "children().count() > id.count()",
|
3766
|
-
"xpath": "@value|f:*|h:div"
|
3767
|
-
},
|
3768
|
-
{
|
3733
|
+
{
|
3769
3734
|
"key": "rng-2",
|
3770
3735
|
"severity": "error",
|
3771
3736
|
"human": "If present, low SHALL have a lower value than high",
|
@@ -3925,13 +3890,6 @@
|
|
3925
3890
|
"ele-1"
|
3926
3891
|
],
|
3927
3892
|
"constraint": [
|
3928
|
-
{
|
3929
|
-
"key": "ele-1",
|
3930
|
-
"severity": "error",
|
3931
|
-
"human": "All FHIR elements must have a @value or children",
|
3932
|
-
"expression": "children().count() > id.count()",
|
3933
|
-
"xpath": "@value|f:*|h:div"
|
3934
|
-
}
|
3935
3893
|
]
|
3936
3894
|
},
|
3937
3895
|
{
|
@@ -4302,15 +4260,7 @@
|
|
4302
4260
|
"condition": [
|
4303
4261
|
"ele-1"
|
4304
4262
|
],
|
4305
|
-
"constraint": [
|
4306
|
-
{
|
4307
|
-
"key": "ele-1",
|
4308
|
-
"severity": "error",
|
4309
|
-
"human": "All FHIR elements must have a @value or children",
|
4310
|
-
"expression": "children().count() > id.count()",
|
4311
|
-
"xpath": "@value|f:*|h:div"
|
4312
|
-
}
|
4313
|
-
]
|
4263
|
+
"constraint": [ ]
|
4314
4264
|
},
|
4315
4265
|
{
|
4316
4266
|
"id": "Identifier.id",
|
@@ -4569,15 +4519,7 @@
|
|
4569
4519
|
"condition": [
|
4570
4520
|
"ele-1"
|
4571
4521
|
],
|
4572
|
-
"constraint": [
|
4573
|
-
{
|
4574
|
-
"key": "ele-1",
|
4575
|
-
"severity": "error",
|
4576
|
-
"human": "All FHIR elements must have a @value or children",
|
4577
|
-
"expression": "children().count() > id.count()",
|
4578
|
-
"xpath": "@value|f:*|h:div"
|
4579
|
-
}
|
4580
|
-
]
|
4522
|
+
"constraint": [ ]
|
4581
4523
|
},
|
4582
4524
|
{
|
4583
4525
|
"id": "Coding.id",
|
@@ -4776,15 +4718,7 @@
|
|
4776
4718
|
"condition": [
|
4777
4719
|
"ele-1"
|
4778
4720
|
],
|
4779
|
-
"constraint": [
|
4780
|
-
{
|
4781
|
-
"key": "ele-1",
|
4782
|
-
"severity": "error",
|
4783
|
-
"human": "All FHIR elements must have a @value or children",
|
4784
|
-
"expression": "children().count() > id.count()",
|
4785
|
-
"xpath": "@value|f:*|h:div"
|
4786
|
-
}
|
4787
|
-
]
|
4721
|
+
"constraint": [ ]
|
4788
4722
|
},
|
4789
4723
|
{
|
4790
4724
|
"id": "Signature.id",
|
@@ -5109,15 +5043,7 @@
|
|
5109
5043
|
"condition": [
|
5110
5044
|
"ele-1"
|
5111
5045
|
],
|
5112
|
-
"constraint": [
|
5113
|
-
{
|
5114
|
-
"key": "ele-1",
|
5115
|
-
"severity": "error",
|
5116
|
-
"human": "All FHIR elements must have a @value or children",
|
5117
|
-
"expression": "children().count() > id.count()",
|
5118
|
-
"xpath": "@value|f:*|h:div"
|
5119
|
-
}
|
5120
|
-
]
|
5046
|
+
"constraint": [ ]
|
5121
5047
|
},
|
5122
5048
|
{
|
5123
5049
|
"id": "SampledData.id",
|
@@ -5367,13 +5293,6 @@
|
|
5367
5293
|
"ele-1"
|
5368
5294
|
],
|
5369
5295
|
"constraint": [
|
5370
|
-
{
|
5371
|
-
"key": "ele-1",
|
5372
|
-
"severity": "error",
|
5373
|
-
"human": "All FHIR elements must have a @value or children",
|
5374
|
-
"expression": "children().count() > id.count()",
|
5375
|
-
"xpath": "@value|f:*|h:div"
|
5376
|
-
},
|
5377
5296
|
{
|
5378
5297
|
"key": "rat-1",
|
5379
5298
|
"severity": "error",
|
@@ -5911,15 +5830,7 @@
|
|
5911
5830
|
"condition": [
|
5912
5831
|
"ele-1"
|
5913
5832
|
],
|
5914
|
-
"constraint": [
|
5915
|
-
{
|
5916
|
-
"key": "ele-1",
|
5917
|
-
"severity": "error",
|
5918
|
-
"human": "All FHIR elements must have a @value or children",
|
5919
|
-
"expression": "children().count() > id.count()",
|
5920
|
-
"xpath": "@value|f:*|h:div"
|
5921
|
-
}
|
5922
|
-
]
|
5833
|
+
"constraint": [ ]
|
5923
5834
|
},
|
5924
5835
|
{
|
5925
5836
|
"id": "CodeableConcept.id",
|
@@ -6047,13 +5958,6 @@
|
|
6047
5958
|
"ele-1"
|
6048
5959
|
],
|
6049
5960
|
"constraint": [
|
6050
|
-
{
|
6051
|
-
"key": "ele-1",
|
6052
|
-
"severity": "error",
|
6053
|
-
"human": "All FHIR elements must have a @value or children",
|
6054
|
-
"expression": "children().count() > id.count()",
|
6055
|
-
"xpath": "@value|f:*|h:div"
|
6056
|
-
},
|
6057
5961
|
{
|
6058
5962
|
"key": "ext-1",
|
6059
5963
|
"severity": "error",
|
@@ -6421,15 +6325,7 @@
|
|
6421
6325
|
"condition": [
|
6422
6326
|
"ele-1"
|
6423
6327
|
],
|
6424
|
-
"constraint": [
|
6425
|
-
{
|
6426
|
-
"key": "ele-1",
|
6427
|
-
"severity": "error",
|
6428
|
-
"human": "All FHIR elements must have a @value or children",
|
6429
|
-
"expression": "children().count() > id.count()",
|
6430
|
-
"xpath": "@value|f:*|h:div"
|
6431
|
-
}
|
6432
|
-
]
|
6328
|
+
"constraint": [ ]
|
6433
6329
|
},
|
6434
6330
|
{
|
6435
6331
|
"id": "BackboneElement.id",
|
@@ -6534,15 +6430,7 @@
|
|
6534
6430
|
"condition": [
|
6535
6431
|
"ele-1"
|
6536
6432
|
],
|
6537
|
-
"constraint": [
|
6538
|
-
{
|
6539
|
-
"key": "ele-1",
|
6540
|
-
"severity": "error",
|
6541
|
-
"human": "All FHIR elements must have a @value or children",
|
6542
|
-
"expression": "children().count() > id.count()",
|
6543
|
-
"xpath": "@value|f:*|h:div"
|
6544
|
-
}
|
6545
|
-
]
|
6433
|
+
"constraint": [ ]
|
6546
6434
|
},
|
6547
6435
|
{
|
6548
6436
|
"id": "Narrative.id",
|
@@ -6717,15 +6605,7 @@
|
|
6717
6605
|
"condition": [
|
6718
6606
|
"ele-1"
|
6719
6607
|
],
|
6720
|
-
"constraint": [
|
6721
|
-
{
|
6722
|
-
"key": "ele-1",
|
6723
|
-
"severity": "error",
|
6724
|
-
"human": "All FHIR elements must have a @value or children",
|
6725
|
-
"expression": "children().count() > id.count()",
|
6726
|
-
"xpath": "@value|f:*|h:div"
|
6727
|
-
}
|
6728
|
-
]
|
6608
|
+
"constraint": [ ]
|
6729
6609
|
},
|
6730
6610
|
{
|
6731
6611
|
"id": "Element.id",
|
@@ -6764,15 +6644,7 @@
|
|
6764
6644
|
"condition": [
|
6765
6645
|
"ele-1"
|
6766
6646
|
],
|
6767
|
-
"constraint": [
|
6768
|
-
{
|
6769
|
-
"key": "ele-1",
|
6770
|
-
"severity": "error",
|
6771
|
-
"human": "All FHIR elements must have a @value or children",
|
6772
|
-
"expression": "children().count() > id.count()",
|
6773
|
-
"xpath": "@value|f:*|h:div"
|
6774
|
-
}
|
6775
|
-
]
|
6647
|
+
"constraint": [ ]
|
6776
6648
|
},
|
6777
6649
|
{
|
6778
6650
|
"id": "Element.id",
|
@@ -6831,15 +6703,7 @@
|
|
6831
6703
|
"condition": [
|
6832
6704
|
"ele-1"
|
6833
6705
|
],
|
6834
|
-
"constraint": [
|
6835
|
-
{
|
6836
|
-
"key": "ele-1",
|
6837
|
-
"severity": "error",
|
6838
|
-
"human": "All FHIR elements must have a @value or children",
|
6839
|
-
"expression": "children().count() > id.count()",
|
6840
|
-
"xpath": "@value|f:*|h:div"
|
6841
|
-
}
|
6842
|
-
]
|
6706
|
+
"constraint": [ ]
|
6843
6707
|
},
|
6844
6708
|
{
|
6845
6709
|
"id": "Meta.id",
|
@@ -7066,15 +6930,7 @@
|
|
7066
6930
|
"condition": [
|
7067
6931
|
"ele-1"
|
7068
6932
|
],
|
7069
|
-
"constraint": [
|
7070
|
-
{
|
7071
|
-
"key": "ele-1",
|
7072
|
-
"severity": "error",
|
7073
|
-
"human": "All FHIR elements must have a @value or children",
|
7074
|
-
"expression": "children().count() > id.count()",
|
7075
|
-
"xpath": "@value|f:*|h:div"
|
7076
|
-
}
|
7077
|
-
]
|
6933
|
+
"constraint": [ ]
|
7078
6934
|
},
|
7079
6935
|
{
|
7080
6936
|
"id": "RelatedResource.id",
|
@@ -7313,15 +7169,7 @@
|
|
7313
7169
|
"condition": [
|
7314
7170
|
"ele-1"
|
7315
7171
|
],
|
7316
|
-
"constraint": [
|
7317
|
-
{
|
7318
|
-
"key": "ele-1",
|
7319
|
-
"severity": "error",
|
7320
|
-
"human": "All FHIR elements must have a @value or children",
|
7321
|
-
"expression": "children().count() > id.count()",
|
7322
|
-
"xpath": "@value|f:*|h:div"
|
7323
|
-
}
|
7324
|
-
]
|
7172
|
+
"constraint": [ ]
|
7325
7173
|
},
|
7326
7174
|
{
|
7327
7175
|
"id": "Address.id",
|
@@ -7692,15 +7540,7 @@
|
|
7692
7540
|
"condition": [
|
7693
7541
|
"ele-1"
|
7694
7542
|
],
|
7695
|
-
"constraint": [
|
7696
|
-
{
|
7697
|
-
"key": "ele-1",
|
7698
|
-
"severity": "error",
|
7699
|
-
"human": "All FHIR elements must have a @value or children",
|
7700
|
-
"expression": "children().count() > id.count()",
|
7701
|
-
"xpath": "@value|f:*|h:div"
|
7702
|
-
}
|
7703
|
-
]
|
7543
|
+
"constraint": [ ]
|
7704
7544
|
},
|
7705
7545
|
{
|
7706
7546
|
"id": "TriggerDefinition.id",
|
@@ -7909,15 +7749,7 @@
|
|
7909
7749
|
"condition": [
|
7910
7750
|
"ele-1"
|
7911
7751
|
],
|
7912
|
-
"constraint": [
|
7913
|
-
{
|
7914
|
-
"key": "ele-1",
|
7915
|
-
"severity": "error",
|
7916
|
-
"human": "All FHIR elements must have a @value or children",
|
7917
|
-
"expression": "children().count() > id.count()",
|
7918
|
-
"xpath": "@value|f:*|h:div"
|
7919
|
-
}
|
7920
|
-
]
|
7752
|
+
"constraint": [ ]
|
7921
7753
|
},
|
7922
7754
|
{
|
7923
7755
|
"id": "Contributor.id",
|
@@ -8082,15 +7914,7 @@
|
|
8082
7914
|
"condition": [
|
8083
7915
|
"ele-1"
|
8084
7916
|
],
|
8085
|
-
"constraint": [
|
8086
|
-
{
|
8087
|
-
"key": "ele-1",
|
8088
|
-
"severity": "error",
|
8089
|
-
"human": "All FHIR elements must have a @value or children",
|
8090
|
-
"expression": "children().count() > id.count()",
|
8091
|
-
"xpath": "@value|f:*|h:div"
|
8092
|
-
}
|
8093
|
-
]
|
7917
|
+
"constraint": [ ]
|
8094
7918
|
},
|
8095
7919
|
{
|
8096
7920
|
"id": "DataRequirement.id",
|
@@ -8563,15 +8387,7 @@
|
|
8563
8387
|
"condition": [
|
8564
8388
|
"ele-1"
|
8565
8389
|
],
|
8566
|
-
"constraint": [
|
8567
|
-
{
|
8568
|
-
"key": "ele-1",
|
8569
|
-
"severity": "error",
|
8570
|
-
"human": "All FHIR elements must have a @value or children",
|
8571
|
-
"expression": "children().count() > id.count()",
|
8572
|
-
"xpath": "@value|f:*|h:div"
|
8573
|
-
}
|
8574
|
-
]
|
8390
|
+
"constraint": [ ]
|
8575
8391
|
},
|
8576
8392
|
{
|
8577
8393
|
"id": "ContactDetail.id",
|
@@ -8698,15 +8514,7 @@
|
|
8698
8514
|
"condition": [
|
8699
8515
|
"ele-1"
|
8700
8516
|
],
|
8701
|
-
"constraint": [
|
8702
|
-
{
|
8703
|
-
"key": "ele-1",
|
8704
|
-
"severity": "error",
|
8705
|
-
"human": "All FHIR elements must have a @value or children",
|
8706
|
-
"expression": "children().count() > id.count()",
|
8707
|
-
"xpath": "@value|f:*|h:div"
|
8708
|
-
}
|
8709
|
-
]
|
8517
|
+
"constraint": [ ]
|
8710
8518
|
},
|
8711
8519
|
{
|
8712
8520
|
"id": "HumanName.id",
|
@@ -8970,13 +8778,6 @@
|
|
8970
8778
|
"ele-1"
|
8971
8779
|
],
|
8972
8780
|
"constraint": [
|
8973
|
-
{
|
8974
|
-
"key": "ele-1",
|
8975
|
-
"severity": "error",
|
8976
|
-
"human": "All FHIR elements must have a @value or children",
|
8977
|
-
"expression": "children().count() > id.count()",
|
8978
|
-
"xpath": "@value|f:*|h:div"
|
8979
|
-
},
|
8980
8781
|
{
|
8981
8782
|
"key": "cpt-2",
|
8982
8783
|
"severity": "error",
|
@@ -9228,15 +9029,7 @@
|
|
9228
9029
|
"condition": [
|
9229
9030
|
"ele-1"
|
9230
9031
|
],
|
9231
|
-
"constraint": [
|
9232
|
-
{
|
9233
|
-
"key": "ele-1",
|
9234
|
-
"severity": "error",
|
9235
|
-
"human": "All FHIR elements must have a @value or children",
|
9236
|
-
"expression": "children().count() > id.count()",
|
9237
|
-
"xpath": "@value|f:*|h:div"
|
9238
|
-
}
|
9239
|
-
]
|
9032
|
+
"constraint": [ ]
|
9240
9033
|
},
|
9241
9034
|
{
|
9242
9035
|
"id": "UsageContext.id",
|
@@ -9535,15 +9328,7 @@
|
|
9535
9328
|
"condition": [
|
9536
9329
|
"ele-1"
|
9537
9330
|
],
|
9538
|
-
"constraint": [
|
9539
|
-
{
|
9540
|
-
"key": "ele-1",
|
9541
|
-
"severity": "error",
|
9542
|
-
"human": "All FHIR elements must have a @value or children",
|
9543
|
-
"expression": "children().count() > id.count()",
|
9544
|
-
"xpath": "@value|f:*|h:div"
|
9545
|
-
}
|
9546
|
-
]
|
9331
|
+
"constraint": [ ]
|
9547
9332
|
},
|
9548
9333
|
{
|
9549
9334
|
"id": "Timing.id",
|
@@ -10242,13 +10027,6 @@
|
|
10242
10027
|
"ele-1"
|
10243
10028
|
],
|
10244
10029
|
"constraint": [
|
10245
|
-
{
|
10246
|
-
"key": "ele-1",
|
10247
|
-
"severity": "error",
|
10248
|
-
"human": "All FHIR elements must have a @value or children",
|
10249
|
-
"expression": "children().count() > id.count()",
|
10250
|
-
"xpath": "@value|f:*|h:div"
|
10251
|
-
},
|
10252
10030
|
{
|
10253
10031
|
"key": "eld-2",
|
10254
10032
|
"severity": "error",
|
@@ -13308,15 +13086,7 @@
|
|
13308
13086
|
"condition": [
|
13309
13087
|
"ele-1"
|
13310
13088
|
],
|
13311
|
-
"constraint": [
|
13312
|
-
{
|
13313
|
-
"key": "ele-1",
|
13314
|
-
"severity": "error",
|
13315
|
-
"human": "All FHIR elements must have a @value or children",
|
13316
|
-
"expression": "children().count() > id.count()",
|
13317
|
-
"xpath": "@value|f:*|h:div"
|
13318
|
-
}
|
13319
|
-
]
|
13089
|
+
"constraint": [ ]
|
13320
13090
|
},
|
13321
13091
|
{
|
13322
13092
|
"id": "ParameterDefinition.id",
|
@@ -13600,13 +13370,6 @@
|
|
13600
13370
|
"ele-1"
|
13601
13371
|
],
|
13602
13372
|
"constraint": [
|
13603
|
-
{
|
13604
|
-
"key": "ele-1",
|
13605
|
-
"severity": "error",
|
13606
|
-
"human": "All FHIR elements must have a @value or children",
|
13607
|
-
"expression": "children().count() > id.count()",
|
13608
|
-
"xpath": "@value|f:*|h:div"
|
13609
|
-
},
|
13610
13373
|
{
|
13611
13374
|
"key": "qty-3",
|
13612
13375
|
"severity": "error",
|
data/fhir_models.gemspec
CHANGED
@@ -7,9 +7,11 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.email = "jwalonoski@mitre.org"
|
8
8
|
s.homepage = "https://github.com/fhir-crucible/fhir_models"
|
9
9
|
s.authors = ["Jason Walonoski", "Andre Quina", "Michael O'Keefe"]
|
10
|
-
s.version = '1.6.
|
10
|
+
s.version = '1.6.3'
|
11
11
|
s.files = s.files = `git ls-files`.split("\n")
|
12
12
|
s.add_development_dependency 'pry'
|
13
|
+
s.add_development_dependency 'minitest'
|
14
|
+
s.add_development_dependency 'test-unit'
|
13
15
|
s.add_dependency 'rake', '>= 0.8.7'
|
14
16
|
s.add_dependency 'nokogiri', '>= 1.6'
|
15
17
|
s.add_dependency 'date_time_precision', '>= 0.8'
|
data/lib/bootstrap/xml.rb
CHANGED
@@ -24,7 +24,7 @@ module FHIR
|
|
24
24
|
# if hash contains resourceType
|
25
25
|
# create a child node with the name==resourceType
|
26
26
|
# fill that, and place the child under the above `node`
|
27
|
-
if hash['resourceType']
|
27
|
+
if hash['resourceType'] && hash['resourceType'].is_a?(String)
|
28
28
|
child_name = hash['resourceType']
|
29
29
|
hash.delete('resourceType')
|
30
30
|
child = hash_to_xml_node(child_name, hash, doc)
|
@@ -423,7 +423,7 @@ module FHIR
|
|
423
423
|
nodes = get_json_nodes(json,path)
|
424
424
|
|
425
425
|
# special filtering on extension urls
|
426
|
-
extension_profile = element.type.find{|t|t.code=='Extension' && !t.profile.empty?}
|
426
|
+
extension_profile = element.type.find{|t|t.code=='Extension' && !t.profile.nil? && !t.profile.empty?}
|
427
427
|
if extension_profile
|
428
428
|
nodes.keep_if{|x| extension_profile.profile.include?(x['url']) }
|
429
429
|
end
|
@@ -681,7 +681,7 @@ module FHIR
|
|
681
681
|
matching_type-=1 if element.binding.strength=='required'
|
682
682
|
end
|
683
683
|
elsif valueset.nil?
|
684
|
-
@
|
684
|
+
@warnings << "#{element.path} has unknown ValueSet: '#{vsUri}'"
|
685
685
|
matching_type-=1 if element.binding.strength=='required'
|
686
686
|
elsif !valueset.values.flatten.include?(value)
|
687
687
|
message = "#{element.path} has invalid code '#{value}' from #{valueset}"
|
data/lib/fhir_models.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fhir_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Walonoski
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-09-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: pry
|
@@ -26,6 +26,34 @@ dependencies:
|
|
26
26
|
- - '>='
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: minitest
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: test-unit
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
29
57
|
- !ruby/object:Gem::Dependency
|
30
58
|
name: rake
|
31
59
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,7 +140,6 @@ files:
|
|
112
140
|
- .simplecov
|
113
141
|
- .travis.yml
|
114
142
|
- Gemfile
|
115
|
-
- Gemfile.lock
|
116
143
|
- README.md
|
117
144
|
- Rakefile
|
118
145
|
- definitions/schema/account.xsd
|
data/Gemfile.lock
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
fhir_models (1.6.1)
|
5
|
-
bcp47 (>= 0.3)
|
6
|
-
date_time_precision (>= 0.8)
|
7
|
-
mime-types (>= 1.16, < 3)
|
8
|
-
nokogiri (>= 1.6)
|
9
|
-
rake (>= 0.8.7)
|
10
|
-
|
11
|
-
GEM
|
12
|
-
remote: http://rubygems.org/
|
13
|
-
specs:
|
14
|
-
ansi (1.5.0)
|
15
|
-
awesome_print (1.7.0)
|
16
|
-
bcp47 (0.3.3)
|
17
|
-
i18n
|
18
|
-
coderay (1.1.1)
|
19
|
-
date_time_precision (0.8.1)
|
20
|
-
docile (1.1.5)
|
21
|
-
i18n (0.7.0)
|
22
|
-
json (2.0.2)
|
23
|
-
method_source (0.8.2)
|
24
|
-
mime-types (2.99.2)
|
25
|
-
mini_portile2 (2.1.0)
|
26
|
-
minitest (4.7.5)
|
27
|
-
nokogiri (1.6.8)
|
28
|
-
mini_portile2 (~> 2.1.0)
|
29
|
-
pkg-config (~> 1.1.7)
|
30
|
-
nokogiri-diff (0.2.0)
|
31
|
-
nokogiri (~> 1.5)
|
32
|
-
tdiff (~> 0.3, >= 0.3.2)
|
33
|
-
pkg-config (1.1.7)
|
34
|
-
pry (0.10.4)
|
35
|
-
coderay (~> 1.1.0)
|
36
|
-
method_source (~> 0.8.1)
|
37
|
-
slop (~> 3.4)
|
38
|
-
rake (11.2.2)
|
39
|
-
simplecov (0.12.0)
|
40
|
-
docile (~> 1.1.0)
|
41
|
-
json (>= 1.8, < 3)
|
42
|
-
simplecov-html (~> 0.10.0)
|
43
|
-
simplecov-html (0.10.0)
|
44
|
-
slop (3.6.0)
|
45
|
-
tdiff (0.3.3)
|
46
|
-
turn (0.9.7)
|
47
|
-
ansi
|
48
|
-
minitest (~> 4)
|
49
|
-
|
50
|
-
PLATFORMS
|
51
|
-
ruby
|
52
|
-
|
53
|
-
DEPENDENCIES
|
54
|
-
awesome_print
|
55
|
-
fhir_models!
|
56
|
-
minitest (~> 4.0)
|
57
|
-
nokogiri-diff
|
58
|
-
pry
|
59
|
-
simplecov
|
60
|
-
turn
|
61
|
-
|
62
|
-
BUNDLED WITH
|
63
|
-
1.12.5
|