Skip to content

Commit

Permalink
Add models
Browse files Browse the repository at this point in the history
  • Loading branch information
ir4y committed Nov 18, 2023
1 parent c0755fe commit 7297e80
Show file tree
Hide file tree
Showing 17 changed files with 34,070 additions and 0 deletions.
19 changes: 19 additions & 0 deletions fhirpathpy/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import os
from collections import defaultdict
import json

import pathlib

current_dir = pathlib.Path(__file__).parent.resolve()

models = defaultdict(dict)

dirs = [f for f in os.listdir(current_dir)]

for d in dirs:
pd = os.path.join(current_dir, d)
if os.path.isdir(pd):
print(d)
for f in os.listdir(pd):
with open(os.path.join(pd, f)) as fd:
models[d][f[:-5]] = json.loads(fd.read())
Loading

0 comments on commit 7297e80

Please sign in to comment.