temporary support for NamingSystem.url

This commit is contained in:
Grahame Grieve 2019-12-19 10:47:41 +11:00
parent 86a905114d
commit 78c736173d
1 changed files with 5 additions and 1 deletions

View File

@ -16511,7 +16511,11 @@ public class XmlParser extends XmlParserBase {
}
protected boolean parseNamingSystemContent(int eventType, XmlPullParser xpp, NamingSystem res) throws XmlPullParserException, IOException, FHIRFormatError {
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) {
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("url")) {
res.setUrlElement(parseUri(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("version")) {
res.setVersionElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) {
res.setNameElement(parseString(xpp));
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
res.setStatusElement(parseEnumeration(xpp, Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory()));