-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from MeasureAuthoringTool/feature/mat-7190-qrd…
…a-content-corrections [MAT-7190] Set HQMF ID and Display Data Element ID's as simple strings
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Override the as_json method to ensure the _id is displayed as | ||
# just the _id value as a string in the QRDA XML, "<_id>". | ||
# Without this override it will be serialized as extended | ||
# BSON::JSON, "{$oid => "<_id>"}" | ||
module BSON | ||
class ObjectId | ||
def as_json(*args) | ||
to_s.as_json | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters