<commit_before># fhir_scorecard

Scorecard for a FHIR Patient Record (as Bundle)

# Prerequisites<commit_msg>Add example to readme.<commit_after># fhir_scorecard

Scorecard for a FHIR Patient Record (as Bundle)

```ruby
bundle_json = "{\"entry\":[{\"resource\":{\"resourceType\":\"Patient\"}}],\"resourceType\":\"Bundle\"}"
scorecard = FHIR::Scorecard.new
report = scorecard.score(bundle_json)
=> {:bundle=>{:points=>10, :message=>"Patient Record is a FHIR Bundle."},
    :patient=>{:points=>10, :message=>"Patient Record contains one FHIR Patient."},
    :points=>20}
```

# Prerequisites (Not Yet Required)
{'fraction_non_alphanumeric': 0.18092105263157895, 'fraction_numerical': 0.009868421052631578, 'mean_word_length': 6.0813953488372094, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4949604', 'n_tokens_mistral': 218, 'n_tokens_neox': 194, 'n_words': 49}