Skip to content

Commit 4070b1c

Browse files
authored
Merge pull request #15 from NHSDigital/update/QCChecker
Update/qc checker
2 parents df2ebd5 + ff9cd20 commit 4070b1c

3 files changed

Lines changed: 10 additions & 280 deletions

File tree

QualityControlChecker/QualityControlChecker.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@
3030
error=False
3131

3232
paths = ['structuredefinitions','valuesets','codesystems']
33-
currentProfiles = [] #Used for checking against CapbilityStatement
33+
currentProfiles = [] #Used for checking against CapabilityStatement
3434
for path in paths:
35-
files = os.listdir('./'+path)
35+
try:
36+
files = os.listdir('./'+path)
37+
except:
38+
continue
3639
print(path)
3740
for file in files:
3841
'''open file to find element values'''
@@ -147,8 +150,11 @@
147150
print(x)
148151

149152
'''check example filenames'''
150-
examplesPath = os.listdir('./examples')
151-
print('examples')
153+
try:
154+
examplesPath = os.listdir('./examples')
155+
print('examples')
156+
except:
157+
examplesPath = []
152158
for example in examplesPath:
153159
if not example.endswith("-Example.xml"):
154160
error=True

QualityControlChecker/QualityControlCheckerNHSE.py

Lines changed: 0 additions & 104 deletions
This file was deleted.

QualityControlChecker/QualityControlCheckerUKCore.py

Lines changed: 0 additions & 172 deletions
This file was deleted.

0 commit comments

Comments
 (0)