Skip to content
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

Closed
Virdulys opened this issue May 20, 2016 · 1 comment
Closed

FhirTerser cannot clone extensions #369

Virdulys opened this issue May 20, 2016 · 1 comment

Comments

@Virdulys
Copy link
Contributor

    @Test
    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 RuntimeChildChoiceDefinition.java:78, 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.

@jamesagnew
Copy link
Collaborator

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants