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

FhirTerser cannot clone extensions #369

Virdulys opened this Issue May 20, 2016 · 1 comment


None yet
2 participants

Virdulys commented May 20, 2016

    public void testTerser() {
        Patient patient = new Patient();

        patient.addUndeclaredExtension(new ExtensionDt(false, "blahblah"));

        new FhirTerser(FhirContext.forDstu1()).cloneInto(patient, new Patient(), false);

FhirTerser:151 causes exception to be thrown if we use it to clone extension, no matter if extension is in root or child in, because the passed parameter value is simply "extension". Is this by design and am I doing something wrong? The same is happening when using xmlParser, when parsing to and from string.


This comment has been minimized.


jamesagnew commented May 23, 2016

Thanks for the report, and for providing a test case!

I'll check in a fix shortly.

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