fhir-sheets 1.2.1__py3-none-any.whl → 1.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of fhir-sheets might be problematic. Click here for more details.

@@ -32,6 +32,13 @@ def initialize_bundle():
32
32
  root_bundle = {}
33
33
  root_bundle['resourceType'] = 'Bundle'
34
34
  root_bundle['id'] = str(uuid.uuid4())
35
+ root_bundle['meta'] = {
36
+ 'security': [{
37
+ 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActReason',
38
+ 'code': 'HTEST',
39
+ 'display': 'test health data'
40
+ }]
41
+ }
35
42
  root_bundle['type'] = 'transaction'
36
43
  root_bundle['entry'] = []
37
44
  return root_bundle
@@ -43,7 +50,12 @@ def initialize_resource(resource_definition):
43
50
  initial_resource['id'] = str(uuid.uuid4()).strip()
44
51
  if resource_definition.profiles:
45
52
  initial_resource['meta'] = {
46
- 'profile': resource_definition.profiles
53
+ 'profile': resource_definition.profiles,
54
+ 'security': [{
55
+ 'system': 'http://terminology.hl7.org/CodeSystem/v3-ActReason',
56
+ 'code': 'HTEST',
57
+ 'display': 'test health data'
58
+ }]
47
59
  }
48
60
  return initial_resource
49
61
 
@@ -196,7 +196,7 @@ def parse_flexible_address(address):
196
196
  country_pattern = r'(?:\s*(?P<country>[\w\s]+|))?$'
197
197
 
198
198
  # Compile the full pattern to match the postal code, state, and country
199
- full_pattern = rf'^(?P<line>.*?)\^(?P<city>.*?)\^(?P<district>.*?)\^{state_pattern}\^{postal_code_pattern}\^{country_pattern}'
199
+ full_pattern = rf'^(?P<line>.*?)\^(?P<city>.*?)\^(?P<district>.*?)\^{postal_code_pattern}\^{state_pattern}\^{country_pattern}'
200
200
 
201
201
  match = re.search(full_pattern, address)
202
202
 
@@ -1,12 +1,14 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: fhir-sheets
3
- Version: 1.2.1
3
+ Version: 1.3.0
4
4
  Summary: FhirSheets is a command-line tool that reads an Excel file in FHIR cohort format and generates FHIR bundle JSON files from it. Each row in the template Excel file is used to create an individual JSON file, outputting them to a specified folder.
5
+ License-File: LICENSE
5
6
  Author: Michael Riley
6
7
  Author-email: Michael.Riley@gtri.gatech.edu
7
8
  Requires-Python: >=3.13
8
9
  Classifier: Programming Language :: Python :: 3
9
10
  Classifier: Programming Language :: Python :: 3.13
11
+ Classifier: Programming Language :: Python :: 3.14
10
12
  Requires-Dist: et-xmlfile (==1.1.0)
11
13
  Requires-Dist: jsonpath-ng (==1.6.1)
12
14
  Requires-Dist: openpyxl (==3.1.5)
@@ -2,15 +2,15 @@ fhir_sheets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  fhir_sheets/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  fhir_sheets/cli/main.py,sha256=UlQn3i_aaZEpCk7DaOQwiRRQoL7-lup_HepbR7x-Qkc,2668
4
4
  fhir_sheets/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- fhir_sheets/core/conversion.py,sha256=AkhAlQceI3U1Ho8711TPTmP-msY65XjpgbTYNq91mj0,18482
6
- fhir_sheets/core/fhir_formatting.py,sha256=kGnXZe3RusafxuCz_tp4bBZbdIAFWXJ4ZRrnG2iQYfo,13011
5
+ fhir_sheets/core/conversion.py,sha256=a1ZkKZ2fEdGQLyThZNyOBcOT0r9DARCxeFcbL9Dnhfk,18911
6
+ fhir_sheets/core/fhir_formatting.py,sha256=eNM38Cp7TEdND1fIKhp2HTwzGYDqgWtr13A1qRT06cY,13011
7
7
  fhir_sheets/core/model/cohort_data_entity.py,sha256=rcPwn_FecsYkX0wgi7DaZMBXJ43S8a5tg4Lxnp6PCyQ,3308
8
8
  fhir_sheets/core/model/resource_definition_entity.py,sha256=NYOBjGz2LyfjI9LVl7j34fcAp-qEmzrBTg9ZLpFfDxA,738
9
9
  fhir_sheets/core/model/resource_link_entity.py,sha256=-iCzGaKJt5ZISTSwBVmEuLIKzgRtbL_I7JRpoEc89h0,812
10
10
  fhir_sheets/core/read_input.py,sha256=08MFs_dxv-QidrloSS1w40CH-4__1M5Loq_rufb8aBc,5810
11
11
  fhir_sheets/core/special_values.py,sha256=KwpJLggH3-BSH8NrGtRTtVBz0fl-iH7swxPwBb3iMx4,15513
12
12
  fhir_sheets/core/util.py,sha256=gudEPi_xTDC9YHqUlGEkn_tA26HbhNjuqGgjtuOEINk,9
13
- fhir_sheets-1.2.1.dist-info/LICENSE,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
14
- fhir_sheets-1.2.1.dist-info/METADATA,sha256=c7OU2j9oCuYtb5CHWV3B05PHP2oGqUxcIJbpPvrT_zQ,2838
15
- fhir_sheets-1.2.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
16
- fhir_sheets-1.2.1.dist-info/RECORD,,
13
+ fhir_sheets-1.3.0.dist-info/METADATA,sha256=bdnzbYz0J2kVTDMxc4CFrXdPrfgpXWySUOFypmJZw84,2911
14
+ fhir_sheets-1.3.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
15
+ fhir_sheets-1.3.0.dist-info/licenses/LICENSE,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
16
+ fhir_sheets-1.3.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.3
2
+ Generator: poetry-core 2.2.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any