pathling 9.6.0.dev0__py3-none-any.whl → 9.7.0.dev0__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.
Files changed (38) hide show
  1. pathling/__init__.py +13 -11
  2. pathling/_version.py +2 -2
  3. pathling/bulk.py +13 -11
  4. pathling/coding.py +13 -11
  5. pathling/context.py +13 -11
  6. pathling/core.py +13 -11
  7. pathling/datasink.py +13 -11
  8. pathling/datasource.py +13 -11
  9. pathling/fhir.py +13 -11
  10. pathling/functions.py +13 -11
  11. pathling/spark.py +13 -12
  12. pathling/udfs.py +13 -11
  13. {pathling-9.6.0.dev0.data → pathling-9.7.0.dev0.data}/data/share/pathling/examples/bulk.py +13 -11
  14. pathling-9.7.0.dev0.data/data/share/pathling/examples/designation.py +40 -0
  15. pathling-9.7.0.dev0.data/data/share/pathling/examples/display.py +32 -0
  16. pathling-9.7.0.dev0.data/data/share/pathling/examples/encode_bundles.py +37 -0
  17. pathling-9.7.0.dev0.data/data/share/pathling/examples/encode_resources.py +34 -0
  18. pathling-9.7.0.dev0.data/data/share/pathling/examples/fhir_search.py +32 -0
  19. {pathling-9.6.0.dev0.data → pathling-9.7.0.dev0.data}/data/share/pathling/examples/fhir_view.py +13 -11
  20. {pathling-9.6.0.dev0.data → pathling-9.7.0.dev0.data}/data/share/pathling/examples/member_of.py +13 -11
  21. {pathling-9.6.0.dev0.data → pathling-9.7.0.dev0.data}/data/share/pathling/examples/property_of.py +13 -11
  22. {pathling-9.6.0.dev0.data → pathling-9.7.0.dev0.data}/data/share/pathling/examples/subsumes.py +13 -11
  23. {pathling-9.6.0.dev0.data → pathling-9.7.0.dev0.data}/data/share/pathling/examples/translate.py +13 -11
  24. {pathling-9.6.0.dev0.dist-info → pathling-9.7.0.dev0.dist-info}/METADATA +1 -1
  25. pathling-9.7.0.dev0.dist-info/RECORD +32 -0
  26. pathling-9.6.0.dev0.data/data/share/pathling/examples/designation.py +0 -38
  27. pathling-9.6.0.dev0.data/data/share/pathling/examples/display.py +0 -30
  28. pathling-9.6.0.dev0.data/data/share/pathling/examples/encode_bundles.py +0 -35
  29. pathling-9.6.0.dev0.data/data/share/pathling/examples/encode_resources.py +0 -32
  30. pathling-9.6.0.dev0.data/data/share/pathling/examples/fhir_search.py +0 -30
  31. pathling-9.6.0.dev0.dist-info/RECORD +0 -32
  32. {pathling-9.6.0.dev0.data → pathling-9.7.0.dev0.data}/data/share/pathling/examples/data/bundles/Bennett146_Swaniawski813_704c9750-f6e6-473b-ee83-fbd48e07fe3f.json +0 -0
  33. {pathling-9.6.0.dev0.data → pathling-9.7.0.dev0.data}/data/share/pathling/examples/data/bundles/Dino214_Parisian75_40d82b80-b682-cd8b-da6d-396809878641.json +0 -0
  34. {pathling-9.6.0.dev0.data → pathling-9.7.0.dev0.data}/data/share/pathling/examples/data/csv/conditions.csv +0 -0
  35. {pathling-9.6.0.dev0.data → pathling-9.7.0.dev0.data}/data/share/pathling/examples/data/resources/Condition.ndjson +0 -0
  36. {pathling-9.6.0.dev0.data → pathling-9.7.0.dev0.data}/data/share/pathling/examples/data/resources/Patient.ndjson +0 -0
  37. {pathling-9.6.0.dev0.dist-info → pathling-9.7.0.dev0.dist-info}/WHEEL +0 -0
  38. {pathling-9.6.0.dev0.dist-info → pathling-9.7.0.dev0.dist-info}/licenses/LICENSE +0 -0
pathling/__init__.py CHANGED
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  from .coding import Coding
17
19
  from .context import PathlingContext, StorageType
pathling/_version.py CHANGED
@@ -2,8 +2,8 @@
2
2
  # Auto generated from POM project version.
3
3
  # Please do not modify.
4
4
  #
5
- __version__="9.6.0.dev0"
6
- __java_version__="9.6.0-SNAPSHOT"
5
+ __version__="9.7.0.dev0"
6
+ __java_version__="9.7.0-SNAPSHOT"
7
7
  __scala_version__="2.13"
8
8
  __delta_version__="4.0.0"
9
9
  __hadoop_version__="3.4.1"
pathling/bulk.py CHANGED
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  from dataclasses import dataclass
17
19
  from datetime import datetime, timezone
pathling/coding.py CHANGED
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  from typing import Optional
17
19
 
pathling/context.py CHANGED
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  # noinspection PyPackageRequirements
17
19
 
pathling/core.py CHANGED
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  from typing import Any, Callable, Optional, Sequence, Tuple, Union
17
19
 
pathling/datasink.py CHANGED
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  from dataclasses import dataclass
17
19
  from typing import TYPE_CHECKING, Callable, List, Optional
pathling/datasource.py CHANGED
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  from datetime import datetime
17
19
  from json import dumps, loads
pathling/fhir.py CHANGED
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
 
17
19
  class MimeType:
pathling/functions.py CHANGED
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  import urllib.parse
17
19
  from typing import Optional
pathling/spark.py CHANGED
@@ -1,18 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
17
 
17
18
  import uuid
18
19
 
pathling/udfs.py CHANGED
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  from typing import Any, Collection, Optional, Union
17
19
 
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  import os
17
19
  import tempfile
@@ -0,0 +1,40 @@
1
+ #
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+
18
+ import os
19
+
20
+ from pathling import Coding, PathlingContext, designation, to_snomed_coding
21
+
22
+ HERE = os.path.abspath(os.path.dirname(__file__))
23
+
24
+ pc = PathlingContext.create()
25
+
26
+ csv = pc.spark.read.options(header=True).csv(
27
+ f"file://{os.path.join(HERE, 'data/csv/conditions.csv')}"
28
+ )
29
+
30
+ # Obtain display name for snomed codes
31
+
32
+ SNOMED_FULLY_SPECIFIED_NAME = Coding.of_snomed("900000000000003001")
33
+
34
+ result = csv.withColumn(
35
+ "FULL_NAME",
36
+ designation(to_snomed_coding(csv.CODE), SNOMED_FULLY_SPECIFIED_NAME, "en").getItem(
37
+ 0
38
+ ),
39
+ )
40
+ result.select("CODE", "DESCRIPTION", "FULL_NAME").show()
@@ -0,0 +1,32 @@
1
+ #
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+
18
+ import os
19
+
20
+ from pathling import PathlingContext, display, to_snomed_coding
21
+
22
+ HERE = os.path.abspath(os.path.dirname(__file__))
23
+
24
+ pc = PathlingContext.create()
25
+
26
+ csv = pc.spark.read.options(header=True).csv(
27
+ f"file://{os.path.join(HERE, 'data/csv/conditions.csv')}"
28
+ )
29
+
30
+ # Obtain display name for snomed codes
31
+ result = csv.withColumn("DISPLAY_NAME", display(to_snomed_coding(csv.CODE)))
32
+ result.select("CODE", "DESCRIPTION", "DISPLAY_NAME").show()
@@ -0,0 +1,37 @@
1
+ #
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+
18
+ import os
19
+
20
+ from pathling import PathlingContext
21
+
22
+ HERE = os.path.abspath(os.path.dirname(__file__))
23
+
24
+ pc = PathlingContext.create()
25
+
26
+ # Read each Bundle into a row within a Spark data set.
27
+ bundles_dir = os.path.join(HERE, "data/bundles/")
28
+ bundles = pc.spark.read.text(bundles_dir, wholetext=True)
29
+
30
+ # Convert the data set of strings into a structured FHIR data set.
31
+ patients = pc.encode_bundle(bundles, "Patient")
32
+
33
+ # JSON is the default format, XML Bundles can be encoded using input type.
34
+ # patients = pc.encodeBundle(bundles, 'Patient', inputType=MimeType.FHIR_XML)
35
+
36
+ # Do some stuff.
37
+ patients.select("id", "gender", "birthDate").show()
@@ -0,0 +1,34 @@
1
+ #
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+
18
+ import os
19
+
20
+ from pathling import PathlingContext
21
+
22
+ HERE = os.path.abspath(os.path.dirname(__file__))
23
+
24
+ pc = PathlingContext.create()
25
+
26
+ # Read each line from the NDJSON into a row within a Spark data set.
27
+ ndjson_dir = os.path.join(HERE, "data/resources/")
28
+ json_resources = pc.spark.read.text(ndjson_dir)
29
+
30
+ # Convert the data set of strings into a structured FHIR data set.
31
+ patients = pc.encode(json_resources, "Patient")
32
+
33
+ # Do some stuff.
34
+ patients.select("id", "gender", "birthDate").show()
@@ -0,0 +1,32 @@
1
+ #
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+
18
+ import os
19
+
20
+ from pathling import PathlingContext
21
+
22
+ HERE = os.path.abspath(os.path.dirname(__file__))
23
+ DATA_DIR = os.path.join(HERE, "data")
24
+ NDJSON_DIR = os.path.join(DATA_DIR, "resources")
25
+
26
+ pc = PathlingContext.create()
27
+ datasource = pc.read.ndjson(NDJSON_DIR)
28
+
29
+ search_filter = pc.search_to_column("Patient", "gender=male&family=MacGyver")
30
+ datasource.read("Patient").filter(search_filter).select(
31
+ "id", "gender", "name.family"
32
+ ).show()
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  import os
17
19
 
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  import os
17
19
 
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  import os
17
19
 
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  import os
17
19
 
@@ -1,17 +1,19 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
1
  #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
2
+ # Copyright © 2018-2026 Commonwealth Scientific and Industrial Research
3
+ # Organisation (CSIRO) ABN 41 687 119 230.
7
4
  #
8
- # http://www.apache.org/licenses/LICENSE-2.0
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
9
16
  #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
17
 
16
18
  import os
17
19
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pathling
3
- Version: 9.6.0.dev0
3
+ Version: 9.7.0.dev0
4
4
  Summary: Python API for Pathling
5
5
  Project-URL: Homepage, https://github.com/aehrc/pathling
6
6
  Author-email: "Australian e-Health Research Centre, CSIRO" <pathling@csiro.au>
@@ -0,0 +1,32 @@
1
+ pathling/__init__.py,sha256=4zBdn3eV3qbfpE3mGyB1saKSook5YY_xF6lbmP566Zs,1520
2
+ pathling/_version.py,sha256=r-yjX1HnSvkUYHUaXCFfCts_IdhRAJOzVkbpBpjqmLc,208
3
+ pathling/bulk.py,sha256=epKxz2fzJKZS2kJRQpaZ-QVMeZfCgfi5CKJV2KBjFE4,13829
4
+ pathling/coding.py,sha256=W-O8XhRLEiO4RsCrUvVr_AfCHjpAtRtQ4ZIDQmr65Go,3135
5
+ pathling/context.py,sha256=xylI5KkOamSYbi0lb9CvVO2Z37tiVYGFc5a6fQpQN8A,23664
6
+ pathling/core.py,sha256=7L0_JIhq7kWj2Y0kCZUp9Jn5RDauBLdNIGH0nlvTcs4,7586
7
+ pathling/datasink.py,sha256=NijQCojOFfIT40kkjR6t_lvniJJ7xqLJsORkDTD5mdA,6520
8
+ pathling/datasource.py,sha256=wwWfSuo96u0HDbhAqhtaA55CSR1kX1knH4lt4XoPeIU,14267
9
+ pathling/fhir.py,sha256=GxbpeCP75275bumdwRFmZVbEcxrBV0nV_vcwXo_2Zv8,919
10
+ pathling/functions.py,sha256=_MUwZ6EJ8EztqXRjOQSjZhKgVMeq1Blm-NJ_880jR00,3201
11
+ pathling/spark.py,sha256=F5tYizb0qQNXXHwtUTr_lPTViJyHzSUEYvy2mJeVnmE,3809
12
+ pathling/udfs.py,sha256=-TscOZjEgkwijFmjAo4xyYJ1iheAZPBU9qfsUb6UQdE,9687
13
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/bulk.py,sha256=t3GCJNu5JxBdTIe1FHQDBTcJOMVUNb63bBRdk7FcLVU,9561
14
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/designation.py,sha256=XeWev3hpnFjSWZraNQxUNHPLFNHVjcHWYvG8CTk1QoY,1264
15
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/display.py,sha256=l4KHBKPHHSz3MlJJg1tyMbyD-sRvtb28eviC2L5zIfY,1112
16
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/encode_bundles.py,sha256=uLpiwIJ9Q_oys8nAm40mkE5ZmMeNCURZKqwQ_5pJMgE,1301
17
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/encode_resources.py,sha256=7oKFsNUc_dRd508wtx2MMqXQ2E4OKniOuU0BBQGxg5I,1152
18
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/fhir_search.py,sha256=TDiODXnhaYZwl5A220-0BuN1xgOtxILgWj0kO1DiTBw,1103
19
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/fhir_view.py,sha256=OXesHnavozrAfkvozrN166vWVbZRZKnRisVYlLA0V-o,1863
20
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/member_of.py,sha256=r2JvCVdoBQIIfy9N8Sn0XZyT1XW8598AaDF97hRHsVQ,1607
21
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/property_of.py,sha256=OkTcayxFyG-xTM2-7cKD19lhGU1da9ROJ6SxTa6y5DQ,1500
22
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/subsumes.py,sha256=1MjFCzE4kfMU5-w5vhrG-eaWY51A-A8PNhtqfAf3ANI,1689
23
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/translate.py,sha256=UIBoajcyV75zTCGckA11bbr-Lnrn4BJ4-FgQmAJXUVA,1348
24
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/data/bundles/Bennett146_Swaniawski813_704c9750-f6e6-473b-ee83-fbd48e07fe3f.json,sha256=LOTPodITfN-U27CwII1ctTjRwNoteL9kHnBR8XKccg0,86431
25
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/data/bundles/Dino214_Parisian75_40d82b80-b682-cd8b-da6d-396809878641.json,sha256=rtid-iALtd9hnXHRkqlaG9pApzg2j9_iYWOOdePUqFM,66676
26
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/data/csv/conditions.csv,sha256=nY9kOVIRcdhWHDT0YRXw_GmQLnUg4p97cVPsUdZgYSI,2452
27
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/data/resources/Condition.ndjson,sha256=Qczj6C7Bjl6k_mGn5suIerTcXDSoNASSYB1vkrTHZKQ,18048
28
+ pathling-9.7.0.dev0.data/data/share/pathling/examples/data/resources/Patient.ndjson,sha256=4v8dp9XGhpoCVl32YqYQwjZ0_TuklGuACy0TOskP_j8,29641
29
+ pathling-9.7.0.dev0.dist-info/METADATA,sha256=pWMx5kgna2g0BGm2tVPTK1-DfSzLQDxhF28p5RdVzS0,14681
30
+ pathling-9.7.0.dev0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
+ pathling-9.7.0.dev0.dist-info/licenses/LICENSE,sha256=F5VycCoNECCJmuHJhj_srdpUfu60QTDoh0VTNyJYPoQ,15244
32
+ pathling-9.7.0.dev0.dist-info/RECORD,,
@@ -1,38 +0,0 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- import os
17
-
18
- from pathling import Coding, PathlingContext, designation, to_snomed_coding
19
-
20
- HERE = os.path.abspath(os.path.dirname(__file__))
21
-
22
- pc = PathlingContext.create()
23
-
24
- csv = pc.spark.read.options(header=True).csv(
25
- f"file://{os.path.join(HERE, 'data/csv/conditions.csv')}"
26
- )
27
-
28
- # Obtain display name for snomed codes
29
-
30
- SNOMED_FULLY_SPECIFIED_NAME = Coding.of_snomed("900000000000003001")
31
-
32
- result = csv.withColumn(
33
- "FULL_NAME",
34
- designation(to_snomed_coding(csv.CODE), SNOMED_FULLY_SPECIFIED_NAME, "en").getItem(
35
- 0
36
- ),
37
- )
38
- result.select("CODE", "DESCRIPTION", "FULL_NAME").show()
@@ -1,30 +0,0 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- import os
17
-
18
- from pathling import PathlingContext, display, to_snomed_coding
19
-
20
- HERE = os.path.abspath(os.path.dirname(__file__))
21
-
22
- pc = PathlingContext.create()
23
-
24
- csv = pc.spark.read.options(header=True).csv(
25
- f"file://{os.path.join(HERE, 'data/csv/conditions.csv')}"
26
- )
27
-
28
- # Obtain display name for snomed codes
29
- result = csv.withColumn("DISPLAY_NAME", display(to_snomed_coding(csv.CODE)))
30
- result.select("CODE", "DESCRIPTION", "DISPLAY_NAME").show()
@@ -1,35 +0,0 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- import os
17
-
18
- from pathling import PathlingContext
19
-
20
- HERE = os.path.abspath(os.path.dirname(__file__))
21
-
22
- pc = PathlingContext.create()
23
-
24
- # Read each Bundle into a row within a Spark data set.
25
- bundles_dir = os.path.join(HERE, "data/bundles/")
26
- bundles = pc.spark.read.text(bundles_dir, wholetext=True)
27
-
28
- # Convert the data set of strings into a structured FHIR data set.
29
- patients = pc.encode_bundle(bundles, "Patient")
30
-
31
- # JSON is the default format, XML Bundles can be encoded using input type.
32
- # patients = pc.encodeBundle(bundles, 'Patient', inputType=MimeType.FHIR_XML)
33
-
34
- # Do some stuff.
35
- patients.select("id", "gender", "birthDate").show()
@@ -1,32 +0,0 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- import os
17
-
18
- from pathling import PathlingContext
19
-
20
- HERE = os.path.abspath(os.path.dirname(__file__))
21
-
22
- pc = PathlingContext.create()
23
-
24
- # Read each line from the NDJSON into a row within a Spark data set.
25
- ndjson_dir = os.path.join(HERE, "data/resources/")
26
- json_resources = pc.spark.read.text(ndjson_dir)
27
-
28
- # Convert the data set of strings into a structured FHIR data set.
29
- patients = pc.encode(json_resources, "Patient")
30
-
31
- # Do some stuff.
32
- patients.select("id", "gender", "birthDate").show()
@@ -1,30 +0,0 @@
1
- # Copyright © 2018-2025 Commonwealth Scientific and Industrial Research
2
- # Organisation (CSIRO) ABN 41 687 119 230.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- import os
17
-
18
- from pathling import PathlingContext
19
-
20
- HERE = os.path.abspath(os.path.dirname(__file__))
21
- DATA_DIR = os.path.join(HERE, "data")
22
- NDJSON_DIR = os.path.join(DATA_DIR, "resources")
23
-
24
- pc = PathlingContext.create()
25
- datasource = pc.read.ndjson(NDJSON_DIR)
26
-
27
- search_filter = pc.search_to_column("Patient", "gender=male&family=MacGyver")
28
- datasource.read("Patient").filter(search_filter).select(
29
- "id", "gender", "name.family"
30
- ).show()
@@ -1,32 +0,0 @@
1
- pathling/__init__.py,sha256=9bUYjEm0Thx0lTyaNZ4TJyXS6Q9xcZAcPDSDAudRNIk,1527
2
- pathling/_version.py,sha256=5XoAFlYD_zgKqG-xGbCdJ_ZNsPEfxHSdBDQU7pLmcsQ,208
3
- pathling/bulk.py,sha256=T_MldloapsT7CeV_IjCO2wPfY5O8rdISapSue3C1S-Y,13836
4
- pathling/coding.py,sha256=cJNJP48OYI-J7Y96T73MoSax515lYluN7tTc_jpJTTw,3142
5
- pathling/context.py,sha256=ArRu6YQryeCDTa3ORfS4LD4qJPN8AKPtHYFVm5X3XZI,23671
6
- pathling/core.py,sha256=NRr6L7zkECeQYYXGa4wf7esorsZIqmrsLBltD0iwuno,7593
7
- pathling/datasink.py,sha256=BIQSMFthlCeh6XR034r8InHkNiz4btDF88ZCvkiEZcE,6527
8
- pathling/datasource.py,sha256=a9HssDcBlHqXD7cMUJzJA8-JYmzXicCB8X3rtp5PVQU,14274
9
- pathling/fhir.py,sha256=Y4UFClPf_7lVozisJEVApmgPt5id01xkNUb1CQPCunc,926
10
- pathling/functions.py,sha256=ANIsyeC2NONZjARA-EnGOSaKqDA7MHjHoLjigkq1V68,3208
11
- pathling/spark.py,sha256=yadQeCzHLnYvvg8URCnyZm6FY9LvNePV6FptKtLlCb0,3817
12
- pathling/udfs.py,sha256=g3MQDzxKh9L6B0hMPYsUs3QLmzMXrlVFzDr0c1L_z-U,9694
13
- pathling-9.6.0.dev0.data/data/share/pathling/examples/bulk.py,sha256=H_0lcKfbnk7-ZSD91qYb1qE5_ujqJhbSXAlN2k63xY0,9568
14
- pathling-9.6.0.dev0.data/data/share/pathling/examples/designation.py,sha256=pO08B05s58ojyUqZ6nMsLLlmchHtXhflCJafitJ76Es,1271
15
- pathling-9.6.0.dev0.data/data/share/pathling/examples/display.py,sha256=fMfBZ7uiQUiVvV14wPl3OAaw4g3q0r1g84OcFPqBMeE,1119
16
- pathling-9.6.0.dev0.data/data/share/pathling/examples/encode_bundles.py,sha256=IUPw2XyQuUdEvQ42aQCXxlYLN-6Tz4_uLLCtb3cvH88,1308
17
- pathling-9.6.0.dev0.data/data/share/pathling/examples/encode_resources.py,sha256=orrH7BDoOWqSUUJ8NjuvAquDmeRAzvPh8s8UgWj9YiY,1159
18
- pathling-9.6.0.dev0.data/data/share/pathling/examples/fhir_search.py,sha256=dkTSXsRftlNsYC3ba8yAQ4DFWCrKdJHTJSGR_aEJexk,1110
19
- pathling-9.6.0.dev0.data/data/share/pathling/examples/fhir_view.py,sha256=l7KcwuPkErv_avTwfsSCkh0LNhsKk5JPR_BrlhOWzW8,1870
20
- pathling-9.6.0.dev0.data/data/share/pathling/examples/member_of.py,sha256=vBovX5OgAnea0DxKjPegGmNq7cjXixs2HqJd_fgyyGw,1614
21
- pathling-9.6.0.dev0.data/data/share/pathling/examples/property_of.py,sha256=bDSziPoY5G9Q7h7VOl3wD5NtwzeDfcWAeZsCaPvxBtM,1507
22
- pathling-9.6.0.dev0.data/data/share/pathling/examples/subsumes.py,sha256=vICIJsr7e3eAOYJFCG49s9BLkoBU3TJQaNzjvapxHXM,1696
23
- pathling-9.6.0.dev0.data/data/share/pathling/examples/translate.py,sha256=5wmzs2vvmpCHGTv-GYXNz56NhS5kSueUhDUOKBCTtqU,1355
24
- pathling-9.6.0.dev0.data/data/share/pathling/examples/data/bundles/Bennett146_Swaniawski813_704c9750-f6e6-473b-ee83-fbd48e07fe3f.json,sha256=LOTPodITfN-U27CwII1ctTjRwNoteL9kHnBR8XKccg0,86431
25
- pathling-9.6.0.dev0.data/data/share/pathling/examples/data/bundles/Dino214_Parisian75_40d82b80-b682-cd8b-da6d-396809878641.json,sha256=rtid-iALtd9hnXHRkqlaG9pApzg2j9_iYWOOdePUqFM,66676
26
- pathling-9.6.0.dev0.data/data/share/pathling/examples/data/csv/conditions.csv,sha256=nY9kOVIRcdhWHDT0YRXw_GmQLnUg4p97cVPsUdZgYSI,2452
27
- pathling-9.6.0.dev0.data/data/share/pathling/examples/data/resources/Condition.ndjson,sha256=Qczj6C7Bjl6k_mGn5suIerTcXDSoNASSYB1vkrTHZKQ,18048
28
- pathling-9.6.0.dev0.data/data/share/pathling/examples/data/resources/Patient.ndjson,sha256=4v8dp9XGhpoCVl32YqYQwjZ0_TuklGuACy0TOskP_j8,29641
29
- pathling-9.6.0.dev0.dist-info/METADATA,sha256=Cy-jZWQiP2T4AhygOmUOETkfGqH-AURyzCyxYw4ZK1w,14681
30
- pathling-9.6.0.dev0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
- pathling-9.6.0.dev0.dist-info/licenses/LICENSE,sha256=F5VycCoNECCJmuHJhj_srdpUfu60QTDoh0VTNyJYPoQ,15244
32
- pathling-9.6.0.dev0.dist-info/RECORD,,