-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespace reset on narrative elements #81
Comments
Did you upload the Encounter yourself and see that Spark removed the namespaces, or is this just an example of a resource you found where the namespaces are empty? |
When I upload this to spark: {
"resourceType": "Encounter",
"id": "nehta-f001",
"text": {
"status": "generated",
"div": "<div><p><b>Generated Narrative with Details</b></p><p><b>id</b>: nehta-f001</p><p><b>identifier</b>: v1451 (OFFICIAL)</p><p><b>status</b>: finished</p><p><b>class</b>: outpatient</p><p><b>type</b>: Patient-initiated encounter <span>(Details : {SNOMED CT code '270427003' = 'Patient-initiated encounter (procedure)', given as 'Patient-initiated encounter'})</span></p><p><b>priority</b>: Non-urgent cardiological admission <span>(Details : {SNOMED CT code '310361003' = 'Non-urgent cardiological admission (procedure)', given as 'Non-urgent cardiological admission'})</span></p><p><b>patient</b>: <a>P. van de Heuvel</a></p><h3>Participants</h3><table><tr><td>-</td><td><b>Individual</b></td></tr><tr><td>*</td><td><a>P. Voigt</a></td></tr></table><p><b>length</b>: 140 min<span> (Details: http://unitsofmeasure.org code min = 'min')</span></p><p><b>reason</b>: Heart valve replacement <span>(Details : {SNOMED CT code '34068001' = 'Heart valve replacement (procedure)', given as 'Heart valve replacement'})</span></p><h3>Hospitalizations</h3><table><tr><td>-</td><td><b>PreAdmissionIdentifier</b></td><td><b>AdmitSource</b></td><td><b>DischargeDisposition</b></td></tr><tr><td>*</td><td>93042 (OFFICIAL)</td><td>Referral by physician <span>(Details : {SNOMED CT code '305956004' = 'Referral by physician (procedure)', given as 'Referral by physician'})</span></td><td>Discharge to home <span>(Details : {SNOMED CT code '306689006' = 'Discharge to home (procedure)', given as 'Discharge to home'})</span></td></tr></table><p><b>serviceProvider</b>: <a>Burgers University Medical Center</a></p></div>"
},
"identifier": [
{
"use": "official",
"system": "http://www.amc.nl/zorgportal/identifiers/visits",
"value": "v1451"
}
],
"status": "finished",
"class": "outpatient",
"type": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "270427003",
"display": "Patient-initiated encounter"
}
]
}
],
"priority": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "310361003",
"display": "Non-urgent cardiological admission"
}
]
},
"patient": {
"reference": "Patient/nehta-f001",
"display": "P. van de Heuvel"
},
"participant": [
{
"individual": {
"reference": "Practitioner/nehta-f002",
"display": "P. Voigt"
}
}
],
"length": {
"value": 140,
"unit": "min",
"system": "http://unitsofmeasure.org",
"code": "min"
},
"reason": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "34068001",
"display": "Heart valve replacement"
}
]
}
],
"hospitalization": {
"preAdmissionIdentifier": {
"use": "official",
"system": "http://www.amc.nl/zorgportal/identifiers/pre-admissions",
"value": "93042"
},
"admitSource": {
"fhir_comments": [
" <preAdmissionTest>\n <coding>\n <system value=\"http://snomed.info/sct\"/>\n <code value=\"164847006\"/>\n <display value=\"Standard ECG\"/>\n </coding>\n <coding>\n <system value=\"http://snomed.info/sct\"/>\n <code value=\"396550006\"/>\n <display value=\"Blood test\"/>\n </coding>\n </preAdmissionTest> "
],
"coding": [
{
"system": "http://snomed.info/sct",
"code": "305956004",
"display": "Referral by physician"
}
]
},
"dischargeDisposition": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "306689006",
"display": "Discharge to home"
}
]
}
},
"serviceProvider": {
"reference": "Organization/nehta-f001",
"display": "Burgers University Medical Center"
}
} and ask for XML back, some elements in the narrative obtain |
So it seems to be in the json-xml roundtripping, which is the responsibility of the parser and serializer in the Hl7.Fhir API. I will close this issue here, but have created issue #193 on the API. |
OK! Thanks :) |
In this example, the div doesn't have the xhtml namespace defined in the json example, so are you expecting the server to replace it? |
Doing a query like http://spark.furore.com/fhir/Encounter?patient=spark2653 to sparks returns elements in the narrative with the namespace removed, like
xmlns=""
. This isn't correct as all elements need to be in the xhtml namespace.The text was updated successfully, but these errors were encountered: