You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diagnostics=f"Invalid type system: {coding.system} Type system must be either 'http://snomed.info/sct' or 'https://nicip.nhs.uk'",
362
+
field="type.coding[0].system",
363
+
)
364
+
return
365
+
366
+
type_id=f"{coding.system}|{coding.code}"
367
+
iftype_idnotinTYPE_ATTRIBUTES.keys():
368
+
self.result.add_error(
369
+
issue_code="value",
370
+
error_code="INVALID_RESOURCE",
371
+
diagnostics=f"Invalid type code: {coding.code} Type must be a member of the England-NRLRecordCategory value set (https://fhir.nhs.uk/England/CodeSystem/England-NRLRecordType)",
372
+
field="type.coding[0].code",
373
+
)
374
+
return
375
+
376
+
type_attributes=TYPE_ATTRIBUTES.get(type_id, {})
377
+
ifcoding.display!=type_attributes.get("display"):
378
+
self.result.add_error(
379
+
issue_code="value",
380
+
error_code="INVALID_RESOURCE",
381
+
diagnostics=f"type code '{coding.code}' must have a display value of '{type_attributes.get('display')}'",
diagnostics=f"Invalid category code: {coding.code} Category must be a member of the England-NRLRecordCategory value set (https://fhir.nhs.uk/England/CodeSystem/England-NRLRecordCategory)",
0 commit comments