Skip to content

Conversation

@KazeemHamzat
Copy link
Contributor

Re-writing the Resource validation block

Re-writing the Resource validation block
@KazeemHamzat KazeemHamzat self-assigned this Apr 25, 2025
Copy link
Contributor

@ryma2fhir ryma2fhir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested this on file you expect to pass and expect to fail?


// Log validation issues if status is 400
if (response.status === 400 && response.data?.issue) {
console.warn('🔍 FHIR Validation Issues:');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the emoji


} catch (error) {
// Handle unexpected validation errors directly in the catch block
console.error('❌ Unexpected Validation Error:', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants